[82705] trunk/dports/games/ship84/Portfile
ryandesign at macports.org
ryandesign at macports.org
Thu Aug 18 12:16:08 PDT 2011
Revision: 82705
http://trac.macports.org/changeset/82705
Author: ryandesign at macports.org
Date: 2011-08-18 12:16:07 -0700 (Thu, 18 Aug 2011)
Log Message:
-----------
ship84: fix line endings so patching works
Modified Paths:
--------------
trunk/dports/games/ship84/Portfile
Modified: trunk/dports/games/ship84/Portfile
===================================================================
--- trunk/dports/games/ship84/Portfile 2011-08-18 19:15:39 UTC (rev 82704)
+++ trunk/dports/games/ship84/Portfile 2011-08-18 19:16:07 UTC (rev 82705)
@@ -26,6 +26,19 @@
extract.mkdir yes
+post-extract {
+ # DOS to UNIX line endings so we can patch properly.
+ fs-traverse file ${worksrcpath} {
+ switch [file extension ${file}] {
+ .c -
+ .h -
+ .txt {
+ reinplace "s|\r||g" ${file}
+ }
+ }
+ }
+}
+
patchfiles patch-GNUmakefile.diff \
patch-shipsdl.c.diff \
patch-shippy.c.diff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110818/b4cd64b5/attachment-0001.html>
More information about the macports-changes
mailing list