[132667] trunk/dports/perl/eperl/Portfile
cal at macports.org
cal at macports.org
Fri Feb 6 14:52:13 PST 2015
Revision: 132667
https://trac.macports.org/changeset/132667
Author: cal at macports.org
Date: 2015-02-06 14:52:13 -0800 (Fri, 06 Feb 2015)
Log Message:
-----------
eperl: Use perl5 PortGroup to generate variants, use correct configure arg to choose perl (requires revbump), fix conflicts with nonexistent ports, closes #46780
Modified Paths:
--------------
trunk/dports/perl/eperl/Portfile
Modified: trunk/dports/perl/eperl/Portfile
===================================================================
--- trunk/dports/perl/eperl/Portfile 2015-02-06 22:33:27 UTC (rev 132666)
+++ trunk/dports/perl/eperl/Portfile 2015-02-06 22:52:13 UTC (rev 132667)
@@ -2,9 +2,11 @@
# $Id$
PortSystem 1.0
+PortGroup perl5 1.0
name eperl
version 2.2.14
+revision 1
maintainers cal openmaintainer
categories perl www
@@ -43,7 +45,12 @@
file attributes "${worksrcpath}/etc/shtool" -permissions +x
}
+perl5.require_variant yes
+perl5.branches 5.16 5.18 5.20
+perl5.create_variants ${perl5.branches}
+
configure.args --enable-debug \
+ --with-perl=${perl5.bin} \
CC=\"${configure.cc} [get_canonical_archflags cc]\" \
LD=\"${configure.cc} [get_canonical_archflags ld]\"
@@ -52,44 +59,6 @@
test.run yes
-# Choose the perl versions to support
-set perlversions {5.16 5.18 5.20}
-# Set the version that should be used as default
-set defaultversion 5.16
-
-# Internal helper variables
-set default_version [string map {. _} $defaultversion]
-set nondefault_set no
-
-# Generate the perl variants
-foreach perlversion $perlversions {
- set variantname "perl[string map {. _} $perlversion]"
-
- # so, if Tcl did support map… http://wiki.tcl.tk/12848
- set conflicts [list]
- foreach otherversion [lsearch -all -inline -not -exact -sorted $perlversions $perlversion] {
- lappend conflicts "perl[string map {. _} $otherversion]"
- }
-
- variant $variantname description "Use perl ${perlversion}" conflicts {*}$conflicts [subst {
- depends_lib-append port:perl${perlversion}
-
- configure.args-append ${prefix}/bin/perl${perlversion}
- }]
-
- if {[variant_isset $variantname] && $perlversion ne $defaultversion} {
- set nondefault_set yes
- }
-}
-
-if {![tbool nondefault_set]} {
- default_variants +perl${default_version}
- if {![variant_isset perl${default_version}]} {
- ui_error "${name}: You must choose at least one perl variant"
- error "Error evaluating variants"
- }
-}
-
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex {class="heavy">(\d+(?:\.\d+)*)<}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150206/091afa25/attachment.html>
More information about the macports-changes
mailing list