Ticket #37292: Portfile-help2man.diff

File Portfile-help2man.diff, 2.3 KB (added by larryv (Lawrence Velázquez), 12 years ago)

diff with whitespace changes removed

  • trunk/dports/textproc/help2man/Portfile

    diff --git a/trunk/dports/textproc/help2man/Portfile b/trunk/dports/textproc/help2man/Portfile
    a b  
    1 # $Id$
    2 
    31PortSystem 1.0
    42
    53name                    help2man
     
    2018checksums           rmd160  52ef3e50f49e0449dd7c89209775ad3a0849eb7e \
    2119                    sha256  f7c85b9af84a87d7da912b62dadf426118841750ed1e4598787a54fddaf82b9c
    2220
    23 depends_lib             port:perl5.12 port:p5.12-locale-gettext \
    24                                 port:gettext port:libiconv
     21if {[variant_isset perl5_8]} {
     22    set branch 5.8
     23} elseif {[variant_isset perl5_10]} {
     24    set branch 5.10
     25} elseif {[variant_isset perl5_14]} {
     26    set branch 5.14
     27} elseif {[variant_isset perl5_16]} {
     28    set branch 5.16
     29} else {
     30    set branch 5.12
     31    default_variants +perl5_12
     32}
    2533
    26 configure.perl  ${prefix}/bin/perl5.12
     34variant perl5_8 conflicts perl5_10 perl5_12 perl5_14 perl5_16 description {use perl 5.8} {
     35    depends_lib-append  port:perl5.8 port:p5.8-locale-gettext \
     36                                port:gettext port:libiconv
     37        configure.perl  ${prefix}/bin/perl5.8
     38}
    2739
     40variant perl5_10 conflicts perl5_8 perl5_12 perl5_14 perl5_16 description {use perl 5.10} {
     41    depends_lib-append  port:perl5.10 port:p5.10-locale-gettext \
     42                                port:gettext port:libiconv
     43        configure.perl  ${prefix}/bin/perl5.10
     44}
     45
     46variant perl5_12 conflicts perl5_8 perl5_10 perl5_14 perl5_16 description {use perl 5.12} {
     47    depends_lib-append  port:perl5.12 port:p5.12-locale-gettext \
     48                                port:gettext port:libiconv
     49        configure.perl  ${prefix}/bin/perl5.12
     50}
     51
     52variant perl5_14 conflicts perl5_8 perl5_10 perl5_12 perl5_16 description {use perl 5.14} {
     53    depends_lib-append  port:perl5.14 port:p5.14-locale-gettext \
     54                                port:gettext port:libiconv
     55        configure.perl  ${prefix}/bin/perl5.14
     56}
     57
     58variant perl5_16 conflicts perl5_8 perl5_10 perl5_12 perl5_14 description {use perl 5.16} {
     59    depends_lib-append  port:perl5.16 port:p5.16-locale-gettext \
     60                                port:gettext port:libiconv
     61        configure.perl  ${prefix}/bin/perl5.16
     62}
     63
    2864configure.args  --enable-nls
    2965
    3066configure.universal_args-delete --disable-dependency-tracking