[MacPorts] #43193: perl PortGroup: add support for multiple Perl versions

MacPorts noreply at macports.org
Thu Apr 3 06:21:56 PDT 2014


#43193: perl PortGroup: add support for multiple Perl versions
-------------------------+--------------------------------
 Reporter:  mojca@…      |      Owner:  macports-tickets@…
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:  perl5
-------------------------+--------------------------------
 Perl recently switched to `+perl5_16`. Now there's a lot of ports with
 hardcoded dependencies on Perl 5.12. It would be nice to remove those and
 use variants instead (similar to what is done for python, even though the
 situation is a tiny bit different there).

 Related tickets:
   * #43004
   * #43191
   * #43191

 From
 [http://trac.macports.org/browser/trunk/dports/textproc/intltool/Portfile
 intltool]:

 {{{
 # TODO: This perlver cruft should be done in the perl5 PortGroup
 if {[variant_isset perl5_8]} {
     set perlver 5.8
 } elseif {[variant_isset perl5_10]} {
     set perlver 5.10
 } elseif {[variant_isset perl5_12]} {
     set perlver 5.12
 } elseif {[variant_isset perl5_14]} {
     set perlver 5.14
 } elseif {[variant_isset perl5_18]} {
     set perlver 5.18
 } else {
     set perlver 5.16
     default_variants +perl5_16
 }

 variant perl5_8 conflicts perl5_10 perl5_12 perl5_14 perl5_16 perl5_18
 description {use perl 5.8} {}
 variant perl5_10 conflicts perl5_8 perl5_12 perl5_14 perl5_16 perl5_18
 description {use perl 5.10} {}
 variant perl5_12 conflicts perl5_8 perl5_10 perl5_14 perl5_16 perl5_18
 description {use perl 5.12} {}
 variant perl5_14 conflicts perl5_8 perl5_10 perl5_12 perl5_16 perl5_18
 description {use perl 5.14} {}
 variant perl5_16 conflicts perl5_8 perl5_10 perl5_12 perl5_14 perl5_18
 description {use perl 5.16} {}
 variant perl5_18 conflicts perl5_8 perl5_10 perl5_12 perl5_14 perl5_16
 description {use perl 5.18} {}
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/43193>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list