[142198] trunk/dports/audio/flac2mp3/Portfile
mojca at macports.org
mojca at macports.org
Sat Dec 12 04:44:42 PST 2015
Revision: 142198
https://trac.macports.org/changeset/142198
Author: mojca at macports.org
Date: 2015-11-06 06:20:53 -0800 (Fri, 06 Nov 2015)
Log Message:
-----------
flac2mp3: use the perl PortGroup
Modified Paths:
--------------
trunk/dports/audio/flac2mp3/Portfile
Modified: trunk/dports/audio/flac2mp3/Portfile
===================================================================
--- trunk/dports/audio/flac2mp3/Portfile 2015-11-06 14:17:45 UTC (rev 142197)
+++ trunk/dports/audio/flac2mp3/Portfile 2015-11-06 14:20:53 UTC (rev 142198)
@@ -2,6 +2,7 @@
# $Id$
PortSystem 1.0
+PortGroup perl5 1.0
name flac2mp3
@@ -26,14 +27,11 @@
distname ${name}
-# set pbranch to desired perl version
-# currently 5.22 (#48365)
+perl5.branches 5.22
-set pbranch 5.22
-
depends_run port:flac \
port:lame \
- port:p${pbranch}-mp3-info
+ port:p${perl5.major}-mp3-info
extract.suffix .pl
extract.only
@@ -44,6 +42,6 @@
destroot {
xinstall ${distpath}/${name}${extract.suffix} ${destroot}${prefix}/bin
- reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl${pbranch}|g" \
+ reinplace "s|#!/usr/bin/perl|#!${perl5.bin}|g" \
"${destroot}${prefix}/bin/${name}${extract.suffix}"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/dd358cf4/attachment.html>
More information about the macports-changes
mailing list