[114984] trunk/dports/devel/git-core/Portfile

ciserlohn at macports.org ciserlohn at macports.org
Fri Dec 20 02:07:22 PST 2013


Revision: 114984
          https://trac.macports.org/changeset/114984
Author:   ciserlohn at macports.org
Date:     2013-12-20 02:07:22 -0800 (Fri, 20 Dec 2013)
Log Message:
-----------
git-core: add variants for perl 5.12, 5.14, an 5.16 (closes ##34461)

Modified Paths:
--------------
    trunk/dports/devel/git-core/Portfile

Modified: trunk/dports/devel/git-core/Portfile
===================================================================
--- trunk/dports/devel/git-core/Portfile	2013-12-20 09:53:49 UTC (rev 114983)
+++ trunk/dports/devel/git-core/Portfile	2013-12-20 10:07:22 UTC (rev 114984)
@@ -26,17 +26,29 @@
                     rmd160  cf04d9ee09f15455d2ccf7843c417097decb65b7 \
                     sha256  e3f04ee3fa05fc82c584297a51d2baba42c65265687494a7bf0d828d0a9d156c \
 
-depends_run         port:rsync \
-                    port:p5.12-error \
-                    port:p5.12-net-smtp-ssl
+depends_run         port:rsync
 
-depends_lib         port:perl5.12 \
-                    port:curl \
+depends_lib         port:curl \
                     port:zlib \
                     port:openssl \
                     port:expat \
                     port:libiconv
 
+if {[variant_isset perl5_16]} {
+    set perl_version 5.16
+} elseif {[variant_isset perl5_14]} {
+    set perl_version 5.14
+} else {
+    set perl_version 5.12
+    default_variants +perl5_12
+}
+
+
+depends_run-append  port:p${perl_version}-error \
+                    port:p${perl_version}-net-smtp-ssl
+
+depends_lib-append  port:perl${perl_version}
+
 patchfiles          patch-Makefile.diff git-subtree.1.diff
 patch.pre_args      -p1
 
@@ -57,7 +69,7 @@
                     CURLDIR=${prefix} \
                     OPENSSLDIR=${prefix} \
                     ICONVDIR=${prefix} \
-                    PERL_PATH="${prefix}/bin/perl5.12" \
+                    PERL_PATH="${prefix}/bin/perl${perl_version}" \
                     NO_FINK=1 \
                     NO_DARWIN_PORTS=1 \
                     NO_R_TO_GCC_LINKER=1 \
@@ -130,6 +142,10 @@
     depends_lib-append      port:python27
 }
 
+variant perl5_16 conflicts perl5_14 perl5_12 description {use perl 5.16} {}
+variant perl5_14 conflicts perl5_16 perl5_12 description {use perl 5.14} {}
+variant perl5_12 conflicts perl5_16 perl5_14 description {use perl 5.12} {}
+
 variant pcre {
     build.args-append       LIBPCREDIR=${prefix} USE_LIBPCRE=1
     depends_lib-append      port:pcre
@@ -185,8 +201,8 @@
 
 variant svn description {Bi-directional subversion repository support} {
     depends_run-append  port:subversion \
-                        port:p5.12-libwww-perl \
-                        port:p5.12-svn-simple
+                        port:p${perl_version}-libwww-perl \
+                        port:p${perl_version}-svn-simple
 }
 
 variant bash_completion {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131220/ad9e89e1/attachment.html>


More information about the macports-changes mailing list