[144214] trunk/dports/gnome

mojca at macports.org mojca at macports.org
Mon Jan 4 14:05:50 PST 2016


Revision: 144214
          https://trac.macports.org/changeset/144214
Author:   mojca at macports.org
Date:     2016-01-04 14:05:50 -0800 (Mon, 04 Jan 2016)
Log Message:
-----------
gnucash[-devel]: use the perl5 portgroup variables (#48365)

Modified Paths:
--------------
    trunk/dports/gnome/gnucash/Portfile
    trunk/dports/gnome/gnucash-devel/Portfile

Modified: trunk/dports/gnome/gnucash/Portfile
===================================================================
--- trunk/dports/gnome/gnucash/Portfile	2016-01-04 21:51:33 UTC (rev 144213)
+++ trunk/dports/gnome/gnucash/Portfile	2016-01-04 22:05:50 UTC (rev 144214)
@@ -2,9 +2,11 @@
 # $Id$
 
 PortSystem        1.0
+PortGroup         perl5 1.0
 
 name              gnucash
 version           2.6.10
+perl5.branches    5.22
 conflicts         gnucash-devel
 categories        gnome x11
 license           GPL-2+
@@ -35,7 +37,7 @@
 post-patch {
     # gnc-fq-dump needs to be patched to use MacPorts perl.
     # (autoconf takes care of the other perl scripts.)
-    reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl5.22|" ${worksrcpath}/src/quotes/gnc-fq-dump
+    reinplace "s|^#!/usr/bin/perl|#!${perl5.bin}|" ${worksrcpath}/src/quotes/gnc-fq-dump
 
     # patch source files to include guile18 header instead of guile.
     # (Note that gnucash's autoconf scripts prefer guile18 over guile
@@ -58,7 +60,7 @@
                   port:libgnomeui \
                   path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk \
                   port:goffice08 \
-                  port:p5.22-finance-quote
+                  port:p${perl5.major}-finance-quote
 
 # yelp currently requires X11 to build so disable dependency if building
 # with +quartz
@@ -95,7 +97,7 @@
                   --disable-ofx \
                   --disable-dbi \
                   --with-html-engine=webkit
-configure.perl    ${prefix}/bin/perl5.22
+configure.perl    ${perl5.bin}
 configure.env \
     GUILE=${prefix}/bin/guile18 \
     GUILE_CONFIG=${prefix}/bin/guile18-config \

Modified: trunk/dports/gnome/gnucash-devel/Portfile
===================================================================
--- trunk/dports/gnome/gnucash-devel/Portfile	2016-01-04 21:51:33 UTC (rev 144213)
+++ trunk/dports/gnome/gnucash-devel/Portfile	2016-01-04 22:05:50 UTC (rev 144214)
@@ -2,11 +2,13 @@
 # $Id$
 
 PortSystem        1.0
+PortGroup         perl5 1.0
 
 name              gnucash-devel
 conflicts         gnucash
 set my_name       gnucash
 version           2.6.10
+perl5.branches    5.22
 categories        gnome x11
 license           GPL-2+
 maintainers       dports openmaintainer
@@ -40,7 +42,7 @@
 post-patch {
     # gnc-fq-dump needs to be patched to use MacPorts perl.
     # (autoconf takes care of the other perl scripts.)
-    reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl5.22|" ${worksrcpath}/src/quotes/gnc-fq-dump
+    reinplace "s|^#!/usr/bin/perl|#!${perl5.bin}|" ${worksrcpath}/src/quotes/gnc-fq-dump
 
     # patch source files to include guile18 header instead of guile.
     # (Note that gnucash's autoconf scripts prefer guile18 over guile
@@ -63,7 +65,7 @@
                   port:libgnomeui \
                   path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk \
                   port:goffice08 \
-                  port:p5.22-finance-quote
+                  port:p${perl5.major}-finance-quote
 
 # yelp currently requires X11 to build so disable dependency if building
 # with +quartz
@@ -100,7 +102,7 @@
                   --disable-ofx \
                   --disable-dbi \
                   --with-html-engine=webkit
-configure.perl    ${prefix}/bin/perl5.22
+configure.perl    ${perl5.bin}
 configure.env \
     GUILE=${prefix}/bin/guile18 \
     GUILE_CONFIG=${prefix}/bin/guile18-config \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160104/2f6af7ab/attachment.html>


More information about the macports-changes mailing list