Ignore:
Timestamp:
Jul 5, 2015, 1:03:32 PM (5 years ago)
Author:
jmr@…
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/db_select/Portfile

    r114431 r138309  
    22
    33PortSystem 1.0
    4 PortGroup select 1.0
    54
    65name                db_select
    76version             0.1
    8 revision            2
     7revision            3
    98categories          sysutils
    109platforms           darwin
     
    1211maintainers         nomaintainer
    1312supported_archs     noarch
    14 description         common files for selecting default db version
    15 long_description    db_select installs files that allow 'port select' to \
    16             switch the default version of db. \
    17             It symlinks the standard compiler executables \
    18             in the MacPorts prefix to the selected version.
     13description         stub port
     14long_description    This port is only a stub.
    1915
    2016homepage        http://www.macports.org/
     
    2420build                   {}
    2521destroot {
    26     select::install db ${filespath}/base
    27     select::install db ${filespath}/none
     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    }
    2836}
    2937
Note: See TracChangeset for help on using the changeset viewer.