Ticket #46570: openbrowser-perl-variants.diff
File openbrowser-perl-variants.diff, 1.7 KB (added by mojca (Mojca Miklavec), 10 years ago) |
---|
-
Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup perl5 1.0 5 6 6 7 name openbrowser 7 8 version 1.0.1 … … 24 25 25 26 distfiles 26 27 27 variant perl5_12 conflicts perl5_14 perl5_16 perl5_18 description {use perl 5.12} {} 28 variant perl5_14 conflicts perl5_12 perl5_16 perl5_18 description {use perl 5.14} {} 29 variant perl5_16 conflicts perl5_12 perl5_14 perl5_18 description {use perl 5.16} {} 30 variant perl5_18 conflicts perl5_12 perl5_14 perl5_16 description {use perl 5.18} {} 31 if {![variant_isset perl5_12] && ![variant_isset perl5_14] && ![variant_isset perl5_16] && ![variant_isset perl5_18]} { 32 default_variants +perl5_16 33 } 28 perl5.require_variant yes 29 perl5.conflict_variants yes 30 perl5.branches 5.16 5.18 5.20 31 perl5.create_variants ${perl5.branches} 34 32 35 if {[variant_isset perl5_12]} { 36 set perl_version 5.12 37 } elseif {[variant_isset perl5_14]} { 38 set perl_version 5.14 39 } elseif {[variant_isset perl5_16]} { 40 set perl_version 5.16 41 } elseif {[variant_isset perl5_18]} { 42 set perl_version 5.18 43 } 33 depends_lib 34 depends_run-append port:perl${perl5.major} \ 35 port:p${perl5.major}-mac-propertylist 44 36 45 depends_run-append port:p${perl_version}-mac-propertylist46 47 37 extract.mkdir yes 48 38 49 39 configure { … … 51 41 } 52 42 53 43 build { 54 reinplace "s|/usr/bin/env perl|${prefix}/bin/perl${perl _version}|g" ${worksrcpath}/${name}44 reinplace "s|/usr/bin/env perl|${prefix}/bin/perl${perl5.major}|g" ${worksrcpath}/${name} 55 45 } 56 46 57 47 destroot {