[148562] trunk/dports/lang/perl5/Portfile

mojca at macports.org mojca at macports.org
Wed May 11 09:14:45 PDT 2016


Revision: 148562
          https://trac.macports.org/changeset/148562
Author:   mojca at macports.org
Date:     2016-05-11 09:14:45 -0700 (Wed, 11 May 2016)
Log Message:
-----------
perl5.24: new subport

* add perl5.24
* -Dccflags should be -Accflags (needs to be changed for older versions as well)
* env MACOSX_DEPLOYMENT_TARGET no longer needed
* support installation of RC versions (some version definitions fixed)

Modified Paths:
--------------
    trunk/dports/lang/perl5/Portfile

Modified: trunk/dports/lang/perl5/Portfile
===================================================================
--- trunk/dports/lang/perl5/Portfile	2016-05-11 16:13:22 UTC (rev 148561)
+++ trunk/dports/lang/perl5/Portfile	2016-05-11 16:14:45 UTC (rev 148562)
@@ -35,13 +35,17 @@
     5.18 4 1 d97181a98f7acc80125b0d2a182a6a2cd7542ceb  1fb4d27b75cd244e849f253320260efe1750641aaff4a18ce0d67556ff1b96a5
     5.20 3 0 499846a1c92e00dd357cb782bc14787b8cd47051  1b40068166c242e34a536836286e70b78410602a80615143301e52aa2901493b
     5.22 2 0 203afca8995ca426db0af48b78eb606b5d24011a  f2322b9b04fe0cdbca9fe755360da04892cb6483d44959457cfebc0bcddc8058
+    5.24 0 0 756bf07069e91eabe3dac3a47aec5097d48f8963  62328a53d157e8153b33e137594155f6f8b64418f7f9238210feb809585290e0
 }
-#   5.24 0-RC5 0 3d5f971240ffe48ea152118e4376d3572c6aa78c  98ecd17bc8b56283bad106b133965916aabdbe1370ab51fb0d67a71f8199540b
+#   5.25 0 0 543c60ab51bd0e84e3f04cedbab72077b81f2b9f  70750d287b7a6607c35ab0d2073c78ab7d437eef2f1a78b74afca577605e39f2
 
+# NOTE: if you need to revbump perl, please consult with maintainer first
+#       to change the configure flags at the same time
+
 foreach {perl5.v perl5.subversion perl5.revision perl5.rmd160 perl5.sha256} ${perl5.versions_info} {
     subport perl${perl5.v} {
         set perl5.major     ${perl5.v}
-        version             ${perl5.major}.${perl5.subversion}
+        version             ${perl5.major}.[string range ${perl5.subversion} 0 0]
         set minor           [lrange [split ${version} .] 1 1]
         revision            ${perl5.revision}
         checksums           rmd160 ${perl5.rmd160} sha256 ${perl5.sha256}
@@ -55,7 +59,7 @@
 
         depends_lib-append  port:gdbm
 
-        distname            perl-${version}
+        distname            perl-${perl5.major}.${perl5.subversion}
         dist_subdir         perl${perl5.major}
         use_bzip2           yes
 
@@ -98,15 +102,11 @@
         configure.post_args -des \
                             -Dprefix='${prefix}' \
                             -Dscriptdir='${prefix}/bin' \
-                           {-Dcppflags="$CPPFLAGS"} \
-                           {-Dccflags="$CFLAGS"} \
-                           {-Dldflags="$LDFLAGS"} \
                             -Dvendorprefix='${prefix}' \
                             -Dusemultiplicity=y \
                             -Dusethreads \
                             -Duseshrplib \
                            {-Dcc="$CC"} \
-                           {-Dld="env MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET $CC"} \
                             -Dman1ext=1pm \
                             -Dman3ext=3pm \
                             -Dman1dir='${prefix}/share/man/man1p' \
@@ -120,6 +120,21 @@
                             -Dpager='/usr/bin/less -sR' \
                             -Dperlpath="${perl5.bin}" \
                             -Dstartperl="#!${perl5.bin}"
+        # flags with -A should be used for all versions of perl,
+        # but for the time being we wanted to avoid rebuilding (revbumping) old perl version
+        # so changing the flags is scheduled for later
+        if {${version} > 5.22} {
+            configure.post_args-append \
+                            {-Acppflags="$CPPFLAGS"} \
+                            {-Accflags="$CFLAGS"} \
+                            {-Aldflags="$LDFLAGS"} \
+        } else {
+            configure.post_args-append \
+                            {-Dcppflags="$CPPFLAGS"} \
+                            {-Dccflags="$CFLAGS"} \
+                            {-Dldflags="$LDFLAGS"} \
+                            {-Dld="env MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET $CC"}
+        }
 
         if {[variant_isset universal]} {
             post-configure {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160511/c87d24ae/attachment.html>


More information about the macports-changes mailing list