[84702] trunk/dports/tex/kde4-kile/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Sep 29 16:23:34 PDT 2011


Revision: 84702
          http://trac.macports.org/changeset/84702
Author:   ryandesign at macports.org
Date:     2011-09-29 16:23:33 -0700 (Thu, 29 Sep 2011)
Log Message:
-----------
kde4-kile: patch in post-patch, not pre-configure; consolidate multiple separate reinplaces

Modified Paths:
--------------
    trunk/dports/tex/kde4-kile/Portfile

Modified: trunk/dports/tex/kde4-kile/Portfile
===================================================================
--- trunk/dports/tex/kde4-kile/Portfile	2011-09-29 22:44:26 UTC (rev 84701)
+++ trunk/dports/tex/kde4-kile/Portfile	2011-09-29 23:23:33 UTC (rev 84702)
@@ -40,11 +40,9 @@
 patchfiles          patch-kilestdtools.rc.macports.diff \
                     patch-runTests.sh.macports.diff
 
-build.asroot        yes
+post-patch {
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/data/kilestdtools.rc ${worksrcpath}/src/test/runTests.sh
+    reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" ${worksrcpath}/src/data/kilestdtools.rc ${worksrcpath}/src/test/runTests.sh
+}
 
-pre-configure {
-    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/data/kilestdtools.rc
-    reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" ${worksrcpath}/src/data/kilestdtools.rc
-    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/test/runTests.sh
-    reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" ${worksrcpath}/src/test/runTests.sh
-}
\ No newline at end of file
+build.asroot        yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110929/61c6ff8c/attachment.html>


More information about the macports-changes mailing list