pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/swig Fix portability-check.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fad8e2b3a84a
branches:  trunk
changeset: 522137:fad8e2b3a84a
user:      obache <obache%pkgsrc.org@localhost>
date:      Sun Dec 03 23:55:14 2006 +0000

description:
Fix portability-check.

diffstat:

 devel/swig/distinfo         |   3 ++-
 devel/swig/patches/patch-ab |  29 +++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r 5628aa0409ae -r fad8e2b3a84a devel/swig/distinfo
--- a/devel/swig/distinfo       Sun Dec 03 22:18:16 2006 +0000
+++ b/devel/swig/distinfo       Sun Dec 03 23:55:14 2006 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2006/12/02 10:15:46 wulf Exp $
+$NetBSD: distinfo,v 1.8 2006/12/03 23:55:14 obache Exp $
 
 SHA1 (swig-1.3.31.tar.gz) = 3369543fa178bdeaa597dba806be04b9c8d0f12c
 RMD160 (swig-1.3.31.tar.gz) = 7f2c8edec5875bd21138bb00070f214d14ed1894
 Size (swig-1.3.31.tar.gz) = 4177499 bytes
 SHA1 (patch-aa) = 27c6fdcb0394fa6b5f307cc8b46ff4516a2d2fd9
+SHA1 (patch-ab) = c690480ad10256c7198fc19699557e0b3f46b087
diff -r 5628aa0409ae -r fad8e2b3a84a devel/swig/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/swig/patches/patch-ab       Sun Dec 03 23:55:14 2006 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-ab,v 1.4 2006/12/03 23:55:14 obache Exp $
+
+--- configure.orig     2006-11-21 07:31:44.000000000 +0900
++++ configure
+@@ -8010,19 +8010,19 @@ echo $ECHO_N "checking for Ocaml version
+       isolate_b_regex='\([0-9]\+\).*'
+       for ver_part in $nodots_a ; do
+               b_ver_part=`echo "$ver_b" | sed -e 's/'"$isolate_b_regex"'/\1/'`
+-              if test \( "$ver_part" -lt "$b_ver_part" \) -a \( "x$condition" == "xequal" \) ; then
++              if test \( "$ver_part" -lt "$b_ver_part" \) -a \( "x$condition" = "xequal" \) ; then
+                       condition=less
+-              elif test \( "$ver_part" -gt "$b_ver_part" \) -a \( "x$condition" == "xequal" \) ; then
++              elif test \( "$ver_part" -gt "$b_ver_part" \) -a \( "x$condition" = "xequal" \) ; then
+                       condition=greater
+               fi
+               isolate_b_regex='[0-9]\+\.'"$isolate_b_regex"
+       done
+ 
+-      if test "x$condition" == "xequal" ; then
++      if test "x$condition" = "xequal" ; then
+               :
+-      elif test "x$condition" == "xless" ; then
++      elif test "x$condition" = "xless" ; then
+               :
+-      elif test "x$condition" == "xgreater" ; then
++      elif test "x$condition" = "xgreater" ; then
+               OCAMLLOC=_loc
+       fi
+ 



Home | Main Index | Thread Index | Old Index