[98496] trunk/dports/textproc/mosesdecoder
ryandesign at macports.org
ryandesign at macports.org
Sat Oct 6 20:21:08 PDT 2012
Revision: 98496
http://trac.macports.org//changeset/98496
Author: ryandesign at macports.org
Date: 2012-10-06 20:21:08 -0700 (Sat, 06 Oct 2012)
Log Message:
-----------
mosesdecoder: don't delete /dev/null (!) at build time; see http://lists.macosforge.org/pipermail/macports-dev/2012-October/020685.html
Modified Paths:
--------------
trunk/dports/textproc/mosesdecoder/Portfile
Added Paths:
-----------
trunk/dports/textproc/mosesdecoder/files/
trunk/dports/textproc/mosesdecoder/files/patch_jam-files_sanity.jam.diff
Modified: trunk/dports/textproc/mosesdecoder/Portfile
===================================================================
--- trunk/dports/textproc/mosesdecoder/Portfile 2012-10-07 03:07:24 UTC (rev 98495)
+++ trunk/dports/textproc/mosesdecoder/Portfile 2012-10-07 03:21:08 UTC (rev 98496)
@@ -28,6 +28,8 @@
depends_lib port:boost \
port:zlib
+patchfiles patch_jam-files_sanity.jam.diff
+
use_configure no
build.cmd ./bjam
Added: trunk/dports/textproc/mosesdecoder/files/patch_jam-files_sanity.jam.diff
===================================================================
--- trunk/dports/textproc/mosesdecoder/files/patch_jam-files_sanity.jam.diff (rev 0)
+++ trunk/dports/textproc/mosesdecoder/files/patch_jam-files_sanity.jam.diff 2012-10-07 03:21:08 UTC (rev 98496)
@@ -0,0 +1,12 @@
+Don't delete /dev/null
+--- jam-files/sanity.jam.orig 2012-10-06 21:34:09.000000000 -0500
++++ jam-files/sanity.jam 2012-10-06 21:59:12.000000000 -0500
+@@ -29,7 +29,7 @@
+ #Run g++ with empty main and these arguments to see if it passes.
+ rule test_flags ( flags * ) {
+ flags = $(cxxflags) $(ldflags) $(flags) ;
+- local cmd = "bash -c \"g++ "$(flags:J=" ")" -x c++ - <<<'int main() {}' -o /dev/null >/dev/null 2>/dev/null\"" ;
++ local cmd = "bash -c \"g++ "$(flags:J=" ")" -x c++ - <<<'int main() {}' -o dummy >/dev/null 2>/dev/null\"" ;
+ local ret = [ SHELL $(cmd) : exit-status ] ;
+ if --debug-configuration in [ modules.peek : ARGV ] {
+ echo $(cmd) ;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121006/593d7e14/attachment.html>
More information about the macports-changes
mailing list