[123814] trunk/dports/devel/myrepos/Portfile

mojca at macports.org mojca at macports.org
Thu Aug 14 14:43:22 PDT 2014


Revision: 123814
          https://trac.macports.org/changeset/123814
Author:   mojca at macports.org
Date:     2014-08-14 14:43:21 -0700 (Thu, 14 Aug 2014)
Log Message:
-----------
myrepos: add variable perl_version, switch to perl 5.16 (#44405)

Modified Paths:
--------------
    trunk/dports/devel/myrepos/Portfile

Modified: trunk/dports/devel/myrepos/Portfile
===================================================================
--- trunk/dports/devel/myrepos/Portfile	2014-08-14 21:42:12 UTC (rev 123813)
+++ trunk/dports/devel/myrepos/Portfile	2014-08-14 21:43:21 UTC (rev 123814)
@@ -5,6 +5,7 @@
 PortGroup           github 1.0
 
 github.setup        joeyh myrepos 1.20130826
+revision            1
 
 categories          devel
 platforms           darwin
@@ -28,14 +29,15 @@
 use_configure       no
 build.target        build
 
-depends_lib         port:perl5.12
+set perl_version    5.16
+depends_lib         port:perl${perl_version}
 
-depends_run         port:p5.12-html-parser \
-                    port:p5.12-libwww-perl \
-                    port:p5.12-getopt-long
+depends_run         port:p${perl_version}-html-parser \
+                    port:p${perl_version}-libwww-perl \
+                    port:p${perl_version}-getopt-long
 
 post-patch {
-    reinplace -locale C "s|^#!.*perl|#!${prefix}/bin/perl5.12|" ${worksrcpath}/mr ${worksrcpath}/webcheckout
+    reinplace -locale C "s|^#!.*perl|#!${prefix}/bin/perl${perl_version}|" ${worksrcpath}/mr ${worksrcpath}/webcheckout
 }
 
 destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140814/3906f821/attachment.html>


More information about the macports-changes mailing list