Ignore:
Timestamp:
Apr 1, 2007, 11:17:25 PM (13 years ago)
Author:
blair@…
Message:
  • Rename share/info/which.info to share/info/gwhich.info.
  • Add the +with_default_names variant to gwhich, code copied from findutils' Portfile.
File:
1 edited

Legend:

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

    r22478 r23473  
    44name            gwhich
    55version         2.16
    6 revision        1
     6revision        2
    77categories      sysutils
    88maintainers     nomaintainer@macports.org
     
    2727                --program-prefix=g
    2828
     29post-destroot {
     30    cd ${destroot}${prefix}/share/info
     31    file rename which.info gwhich.info
     32    if {[variant_isset with_default_names]} {
     33        foreach d {bin share/info share/man/man1} {
     34            cd ${destroot}${prefix}/$d
     35            foreach a [glob g*] {
     36                regexp g(.+) $a dummy b
     37                file link -hard $b g$b
     38            }
     39        }
     40    }
     41}
     42
    2943test.run        yes
    3044test.target     check
     45
     46variant with_default_names {}
Note: See TracChangeset for help on using the changeset viewer.