Ignore:
Timestamp:
Jan 19, 2015, 10:20:59 AM (5 years ago)
Author:
mojca@…
Message:

intltool: use PortGroup to create Perl variants (#46570)

File:
1 edited

Legend:

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

    r131815 r131816  
    33
    44PortSystem          1.0
     5PortGroup           perl5 1.0
    56
    67name                intltool
     
    3031                    sha256  67f25c5c6fb71d095793a7f895b245e65e829e8bde68c6c8b4c912144ff34406
    3132
     33perl5.require_variant   yes
     34perl5.conflict_variants yes
     35perl5.branches          5.16 5.18 5.20
     36perl5.create_variants   ${perl5.branches}
     37
    3238depends_build       port:gnome-common
    33 depends_lib         port:expat
     39
     40depends_lib-append  port:expat \
     41                    port:p${perl5.major}-getopt-long \
     42                    port:p${perl5.major}-pathtools \
     43                    port:p${perl5.major}-scalar-list-utils \
     44                    port:p${perl5.major}-xml-parser
    3445
    3546patchfiles          patch-remove-intltool-perl-hack.diff
    3647
    37 # TODO: This perlver cruft should be done in the perl5 PortGroup
    38 if {[variant_isset perl5_18]} {
    39     set perlver 5.18
    40 } elseif {[variant_isset perl5_20]} {
    41     set perlver 5.20
    42 } else {
    43     set perlver 5.16
    44     default_variants +perl5_16
    45 }
    46 
    47 variant perl5_16 conflicts perl5_18 perl5_20 description {use perl 5.16} {}
    48 variant perl5_18 conflicts perl5_16 perl5_20 description {use perl 5.18} {}
    49 variant perl5_20 conflicts perl5_16 perl5_18 description {use perl 5.20} {}
    50 
    51 depends_lib-append  port:perl${perlver} \
    52                     port:p${perlver}-xml-parser \
    53                     port:p${perlver}-getopt-long \
    54                     port:p${perlver}-pathtools \
    55                     port:p${perlver}-scalar-list-utils
    56 
    57 configure.perl      ${prefix}/bin/perl${perlver}
     48configure.perl      ${prefix}/bin/perl${perl5.major}
    5849
    5950test.run            yes
Note: See TracChangeset for help on using the changeset viewer.