[40669] trunk/dports/net/netwag

ryandesign at macports.org ryandesign at macports.org
Fri Oct 10 00:01:40 PDT 2008


Revision: 40669
          http://trac.macports.org/changeset/40669
Author:   ryandesign at macports.org
Date:     2008-10-10 00:01:37 -0700 (Fri, 10 Oct 2008)
Log Message:
-----------
netwag: do patching in the patch phase, not the configure phase

Modified Paths:
--------------
    trunk/dports/net/netwag/Portfile

Added Paths:
-----------
    trunk/dports/net/netwag/files/
    trunk/dports/net/netwag/files/patch-config.dat.diff

Modified: trunk/dports/net/netwag/Portfile
===================================================================
--- trunk/dports/net/netwag/Portfile	2008-10-10 06:58:22 UTC (rev 40668)
+++ trunk/dports/net/netwag/Portfile	2008-10-10 07:01:37 UTC (rev 40669)
@@ -30,10 +30,10 @@
 
 worksrcdir	${distname}-src/src
 
-pre-configure	{
+patchfiles	patch-config.dat.diff
+
+post-patch	{
 		reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/config.dat
-		reinplace "s|man|share/man|g" ${worksrcpath}/config.dat
-		reinplace "s|share/man1|man1|g" ${worksrcpath}/config.dat			
 }
 
 configure.pre_args	{}

Added: trunk/dports/net/netwag/files/patch-config.dat.diff
===================================================================
--- trunk/dports/net/netwag/files/patch-config.dat.diff	                        (rev 0)
+++ trunk/dports/net/netwag/files/patch-config.dat.diff	2008-10-10 07:01:37 UTC (rev 40669)
@@ -0,0 +1,11 @@
+--- config.dat	2005-03-30 13:56:31.000000000 -0600
++++ config.dat	2008-10-10 01:53:40.000000000 -0500
+@@ -20,7 +20,7 @@
+ ### directories where netwag will be installed
+ NETWAGDEF_INSTPREFIX=/usr/local
+ NETWAGDEF_INSTBIN=${NETWAGDEF_INSTPREFIX}/bin
+-NETWAGDEF_INSTMAN=${NETWAGDEF_INSTPREFIX}/man
++NETWAGDEF_INSTMAN=${NETWAGDEF_INSTPREFIX}/share/man
+ NETWAGDEF_INSTMAN1=${NETWAGDEF_INSTMAN}/man1
+ 
+ ### installation destination directory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081010/ed7f01df/attachment.html 


More information about the macports-changes mailing list