Modified: trunk/dports/lang/qore/Portfile (90131 => 90132)
--- trunk/dports/lang/qore/Portfile 2012-02-23 06:10:31 UTC (rev 90131)
+++ trunk/dports/lang/qore/Portfile 2012-02-23 07:15:22 UTC (rev 90132)
@@ -30,3 +30,6 @@
# the autoconf check for iconv() in libiconv fails with GNU iconv, but we need it, so we turn it on anyway
configure.ldflags -liconv
+
+# to fix: https://trac.macports.org/ticket/31830
+patchfiles patch-next_build.sh.diff
Added: trunk/dports/lang/qore/files/patch-next_build.sh.diff (0 => 90132)
--- trunk/dports/lang/qore/files/patch-next_build.sh.diff (rev 0)
+++ trunk/dports/lang/qore/files/patch-next_build.sh.diff 2012-02-23 07:15:22 UTC (rev 90132)
@@ -0,0 +1,13 @@
+--- next_build.sh.orig 2012-02-23 08:03:52.000000000 +0100
++++ next_build.sh 2012-02-23 08:05:36.000000000 +0100
+@@ -56,8 +56,8 @@
+ # see if svnversion is available
+ which svnversion >/dev/null 2>/dev/null
+ if [ $? -eq 0 ]; then
+- build=`svnversion|sed s/M//|sed s/:.*$//`
+- if [ "$build" != "exported" ]; then
++ build=`svnversion|sed -e s/M// -e s/:.*$// -e 's/ .*$//'`
++ if [ "$build" != "exported" -a "$build" != "Unversioned" ]; then
+ make_file $file
+ ok=1
+ fi