[94795] trunk/dports/perl/p5-eperl/Portfile

cal at macports.org cal at macports.org
Fri Jun 29 14:58:28 PDT 2012


Revision: 94795
          https://trac.macports.org/changeset/94795
Author:   cal at macports.org
Date:     2012-06-29 14:58:28 -0700 (Fri, 29 Jun 2012)
Log Message:
-----------
p5-eperl: simplify, add 5.16 support

Modified Paths:
--------------
    trunk/dports/perl/p5-eperl/Portfile

Modified: trunk/dports/perl/p5-eperl/Portfile
===================================================================
--- trunk/dports/perl/p5-eperl/Portfile	2012-06-29 21:40:28 UTC (rev 94794)
+++ trunk/dports/perl/p5-eperl/Portfile	2012-06-29 21:58:28 UTC (rev 94795)
@@ -7,7 +7,7 @@
 # replicate perl5.setup to create the subports
 name                    p5-eperl
 version                 2.2.14
-revision                3
+revision                4
 distname                eperl-${version}
 license                 {Artistic GPL}
 platforms               darwin
@@ -30,40 +30,8 @@
 
 use_configure           yes
 
-# mostly copied from the perl5 port group
-options perl5.default_branch perl5.branches
-default perl5.branches {"5.8 5.10 5.12 5.14"}
-default perl5.deafult_branch {[perl5_get_default_branch]}
-proc perl5_get_default_branch {} {
-    # use whatever ${prefix}/bin/perl5 was chosen, and if none, fall back to 5.12
-    if {![catch {set val [lindex [split [exec ${prefix}/bin/perl5 -V:version] {'}] 1]}]} {
-        return [join [lrange [split $val .] 0 1] .]
-    } else {
-        return 5.12
-    }
-}
+perl5.branches          5.8 5.10 5.12 5.14 5.16
 
-proc perl5.extract_config {var {default ""}} {
-    global perl5.bin
-
-    if {[catch {set val [lindex [split [exec ${perl5.bin} -V:${var}] {'}] 1]}]} {
-        set val ${default}
-    }
-
-    return $val
-}
-
-# Set some variables.
-options perl5.version perl5.major perl5.arch perl5.lib perl5.archlib perl5.bin
-default perl5.version {[perl5.extract_config version]}
-default perl5.major {${perl5.default_branch}}
-default perl5.arch {[perl5.extract_config archname ${os.platform}]}
-default perl5.bin {${prefix}/bin/perl${perl5.major}}
-
-# define installation libraries as vendor location
-default perl5.lib {${prefix}/lib/perl5/vendor_perl/${perl5.version}}
-default perl5.archlib {${perl5.lib}/${perl5.arch}}
-
 ## Most patches are copied from the Debian distribution, which uses patch
 ## files with a prefix
 patch.pre_args          -p1
@@ -91,13 +59,6 @@
 
 test.run                yes
 
-pre-configure {
-   if ![exec ${perl5.bin} -MConfig -e "print \$Config{'useshrplib'} || 0"] {
-        ui_error "${name} requires perl5 to be installed with the +shared variant."
-        return -code error "perl5 must be +shared"
-   }
-}
-
 # replaced_by and subport magic
 if {[string match p5-* $name]} {
     set rootname        [string range $name 3 end]
@@ -123,6 +84,4 @@
             system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README"
         }
     }
-} else {
-    depends_lib port:perl${perl5.default_branch}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120629/22b3208f/attachment.html>


More information about the macports-changes mailing list