[131840] trunk/dports/sysutils/openbrowser/Portfile
mojca at macports.org
mojca at macports.org
Mon Jan 19 10:31:50 PST 2015
Revision: 131840
https://trac.macports.org/changeset/131840
Author: mojca at macports.org
Date: 2015-01-19 10:31:50 -0800 (Mon, 19 Jan 2015)
Log Message:
-----------
openbrowser: use PortGroup to create Perl variants (#46570)
Modified Paths:
--------------
trunk/dports/sysutils/openbrowser/Portfile
Modified: trunk/dports/sysutils/openbrowser/Portfile
===================================================================
--- trunk/dports/sysutils/openbrowser/Portfile 2015-01-19 18:30:09 UTC (rev 131839)
+++ trunk/dports/sysutils/openbrowser/Portfile 2015-01-19 18:31:50 UTC (rev 131840)
@@ -2,6 +2,7 @@
# $Id$
PortSystem 1.0
+PortGroup perl5 1.0
name openbrowser
version 1.0.1
@@ -24,26 +25,15 @@
distfiles
-variant perl5_12 conflicts perl5_14 perl5_16 perl5_18 description {use perl 5.12} {}
-variant perl5_14 conflicts perl5_12 perl5_16 perl5_18 description {use perl 5.14} {}
-variant perl5_16 conflicts perl5_12 perl5_14 perl5_18 description {use perl 5.16} {}
-variant perl5_18 conflicts perl5_12 perl5_14 perl5_16 description {use perl 5.18} {}
-if {![variant_isset perl5_12] && ![variant_isset perl5_14] && ![variant_isset perl5_16] && ![variant_isset perl5_18]} {
- default_variants +perl5_16
-}
+perl5.require_variant yes
+perl5.conflict_variants yes
+perl5.branches 5.16 5.18 5.20
+perl5.create_variants ${perl5.branches}
-if {[variant_isset perl5_12]} {
- set perl_version 5.12
-} elseif {[variant_isset perl5_14]} {
- set perl_version 5.14
-} elseif {[variant_isset perl5_16]} {
- set perl_version 5.16
-} elseif {[variant_isset perl5_18]} {
- set perl_version 5.18
-}
+depends_lib
+depends_run-append port:perl${perl5.major} \
+ port:p${perl5.major}-mac-propertylist
-depends_run-append port:p${perl_version}-mac-propertylist
-
extract.mkdir yes
configure {
@@ -51,7 +41,7 @@
}
build {
- reinplace "s|/usr/bin/env perl|${prefix}/bin/perl${perl_version}|g" ${worksrcpath}/${name}
+ reinplace "s|/usr/bin/env perl|${prefix}/bin/perl${perl5.major}|g" ${worksrcpath}/${name}
}
destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150119/60b49375/attachment.html>
More information about the macports-changes
mailing list