Ignore:
Timestamp:
Mar 24, 2007, 8:37:05 PM (13 years ago)
Author:
pipping@…
Message:
  • add variant with_default_names
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/gsed/Portfile

    r23053 r23091  
    2929depends_lib     port:gettext port:libiconv
    3030
     31post-destroot {
     32    cd ${destroot}${prefix}/share/info/
     33    foreach i [glob *.info*] {
     34        file rename ${i} gnu${i}
     35    }
     36    if {[variant_isset with_default_names]} {
     37        foreach d {bin share/info share/man/man1} {
     38            cd ${destroot}${prefix}/$d
     39            foreach a [glob gnu*] {
     40                regexp gnu(.+) $a crap b
     41                file link -hard $b gnu$b
     42            }
     43        }
     44    }
     45}
     46
    3147test.run        yes
    3248test.target     check
     49
     50variant with_default_names {}
Note: See TracChangeset for help on using the changeset viewer.