[123037] trunk/dports/science/metar/Portfile
khindenburg at macports.org
khindenburg at macports.org
Sun Aug 3 18:46:19 PDT 2014
Revision: 123037
https://trac.macports.org/changeset/123037
Author: khindenburg at macports.org
Date: 2014-08-03 18:46:19 -0700 (Sun, 03 Aug 2014)
Log Message:
-----------
metar: add dependency/replace hardcoded perl bin #40514
Modified Paths:
--------------
trunk/dports/science/metar/Portfile
Modified: trunk/dports/science/metar/Portfile
===================================================================
--- trunk/dports/science/metar/Portfile 2014-08-04 01:02:00 UTC (rev 123036)
+++ trunk/dports/science/metar/Portfile 2014-08-04 01:46:19 UTC (rev 123037)
@@ -2,9 +2,11 @@
# $Id$
PortSystem 1.0
+PortGroup perl5 1.0
name metar
version 0.2
+revision 1
categories science
platforms darwin linux
maintainers gmail.com:fernando.iazeolla
@@ -22,6 +24,7 @@
sha1 4e8401f89a3db0434505633d9244e324b953daea \
rmd160 28644bc6b2507352236b2e2cf8e0975724678b77
+depends_lib-append port:p${perl5.default_branch}-libwww-perl
worksrcdir ${name}
use_configure no
@@ -30,6 +33,10 @@
destroot.destdir DEST_DIR=${destroot}${prefix}/bin
+pre-destroot {
+ reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl${perl5.default_branch}|g" ${worksrcpath}/${name}.pl
+}
+
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140803/0fcec9f3/attachment-0001.html>
More information about the macports-changes
mailing list