Ticket #30938: Portfile-help2man.diff

File Portfile-help2man.diff, 1.4 KB (added by ccarey@…, 13 years ago)

Patch to add perl variants to help2man

  • Portfile

    old new  
    2121                    sha1    628ead3a4624b764c45ff9ea66fa3bdf9dacf95e \
    2222                    rmd160  dc3f283bceb8216d571ca879a37e7f83255dc412
    2323
    24 depends_lib             port:perl5.12 port:p5.12-locale-gettext \
    25                                 port:gettext port:libiconv
     24if {[variant_isset perl5_8]} {
     25    set perl_major 5.8
     26} elseif {[variant_isset perl5_10]} {
     27    set perl_major 5.10
     28} elseif {[variant_isset perl5_14]} {
     29    set perl_major 5.14
     30} else {
     31    set perl_major 5.12
     32    default_variants +perl5_12
     33}
     34
     35variant perl5_8 conflicts perl5_10 perl5_12 perl5_14 description { use perl 5.8 instead of perl 5.10, perl 5.12, or perl 5.14} {
     36}
     37
     38variant perl5_10 conflicts perl5_8 perl5_12 perl5_14 description { use perl 5.10 instead of perl 5.8, perl 5.12, or perl 5.14} {
     39}
     40
     41variant perl5_12 conflicts perl5_8 perl5_10 perl5_14 description { use perl 5.12 instead of perl 5.8, perl 5.10, or perl 5.14} {
     42}
     43
     44variant perl5_14 conflicts perl5_8 perl5_10 perl5_12 description { use perl 5.14 instead of perl 5.8, perl 5.10, or perl 5.12} {
     45}
     46
     47depends_lib     port:perl${perl_major} port:p${perl_major}-locale-gettext \
     48                port:gettext port:libiconv
    2649
    27 configure.perl  ${prefix}/bin/perl5.12
     50configure.perl  ${prefix}/bin/perl${perl_major}
    2851
    2952configure.args  --enable-nls
    3053