[94622] trunk/dports/graphics/xv/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Jun 25 02:10:39 PDT 2012


Revision: 94622
          https://trac.macports.org/changeset/94622
Author:   ryandesign at macports.org
Date:     2012-06-25 02:10:38 -0700 (Mon, 25 Jun 2012)
Log Message:
-----------
xv: use patchfiles for the normal patch files; only patch ourselves for the separately-downloaded jumbo patch

Modified Paths:
--------------
    trunk/dports/graphics/xv/Portfile

Modified: trunk/dports/graphics/xv/Portfile
===================================================================
--- trunk/dports/graphics/xv/Portfile	2012-06-25 09:09:38 UTC (rev 94621)
+++ trunk/dports/graphics/xv/Portfile	2012-06-25 09:10:38 UTC (rev 94622)
@@ -54,12 +54,13 @@
                         port:zlib \
                         port:xpm
 
-patch {
-    system "cd '${worksrcpath}' && patch -p1 < ${workpath}/${distname}-jumbo-fix-enh-patch-${jumbo_version}.txt"
-    system "cd '${worksrcpath}' && patch -p0 < ${filespath}/patch-Makefile.diff"
-    system "cd '${worksrcpath}' && patch -p0 < ${filespath}/patch-xv.h.diff"
+pre-patch {
+    system -W ${worksrcpath} "patch -p1 < ${workpath}/${distname}-jumbo-fix-enh-patch-${jumbo_version}.txt"
 }
 
+patchfiles              patch-Makefile.diff \
+                        patch-xv.h.diff
+
 use_configure           no
 
 variant universal {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120625/81d5cb6e/attachment.html>


More information about the macports-changes mailing list