[43416] trunk/dports/net/network-weathermap/Portfile

markd at macports.org markd at macports.org
Wed Dec 10 12:09:21 PST 2008


Revision: 43416
          http://trac.macports.org/changeset/43416
Author:   markd at macports.org
Date:     2008-12-10 12:09:20 -0800 (Wed, 10 Dec 2008)
Log Message:
-----------
Remove absentminded hardcode prefixes.

Modified Paths:
--------------
    trunk/dports/net/network-weathermap/Portfile

Modified: trunk/dports/net/network-weathermap/Portfile
===================================================================
--- trunk/dports/net/network-weathermap/Portfile	2008-12-10 20:01:47 UTC (rev 43415)
+++ trunk/dports/net/network-weathermap/Portfile	2008-12-10 20:09:20 UTC (rev 43416)
@@ -4,7 +4,7 @@
 
 name			network-weathermap
 version			0.95b
-revision		2
+revision		3
 categories		net
 maintainers		markd
 platforms		darwin
@@ -37,12 +37,12 @@
 
 post-patch {
 # Set the rrdtool & php paths to point to the MacPorts versions
-	reinplace "s|/usr/local/|/opt/local/|g" \
+	reinplace "s|/usr/local|${prefix}|g" \
 		${worksrcpath}/weathermap \
 		${worksrcpath}/weathermap-cacti-rebuild.php
 
 # Set perl location
-	reinplace "s|/usr/bin/perl|/opt/local/bin/perl|g" \
+	reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \
 		${worksrcpath}/random-bits/auto-overlib.pl
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081210/488d399c/attachment.html>


More information about the macports-changes mailing list