source: trunk/dports/sysutils/db_select/Portfile

Last change on this file was 138309, checked in by jmr@…, 2 years ago

Make db_select into a stub that just cleans up the symlinks it formerly enabled, because actually using it caused breakage. (#47921) No rev bumps for db46 and db48; reinstalling them is neither necessary nor sufficient to fix the problem.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1# $Id: Portfile 138309 2015-07-05 13:03:32Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                db_select
6version             0.1
7revision            3
8categories          sysutils
9platforms           darwin
10license             BSD
11maintainers         nomaintainer
12supported_archs     noarch
13description         stub port
14long_description    This port is only a stub.
15
16homepage        http://www.macports.org/
17distfiles
18
19use_configure           no
20build                   {}
21destroot {
22    xinstall -d ${destroot}${prefix}/share/doc/${name}
23    system "echo '$long_description' > ${destroot}${prefix}/share/doc/${name}/README.txt"
24}
25
26# Clean up symlinks from using 'port select db'
27# https://trac.macports.org/ticket/47921
28post-activate {
29    set file_list [list include/db.h include/db_cxx.h lib/libdb.a lib/libdb.dylib lib/libdb_cxx.a lib/libdb_cxx.dylib]
30    foreach f $file_list {
31        set fullpath ${prefix}/${f}
32        if {![catch {file type $fullpath}] && [registry_file_registered $fullpath] == "0"} {
33            file delete -force $fullpath
34        }
35    }
36}
37
38livecheck.type  none
Note: See TracBrowser for help on using the repository browser.