pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/geneweb Fix build with ocaml >= 3.09.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6c1f9ab0c62f
branches:  trunk
changeset: 509365:6c1f9ab0c62f
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Thu Mar 09 10:35:49 2006 +0000

description:
Fix build with ocaml >= 3.09.0

Depends on ocaml >= 3.09.0
use _loc instead of loc in camlp4 files

bump PKGREVISION

diffstat:

 databases/geneweb/Makefile         |   8 ++++++--
 databases/geneweb/distinfo         |   3 ++-
 databases/geneweb/patches/patch-ab |  33 +++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 3 deletions(-)

diffs (74 lines):

diff -r 860789b98f53 -r 6c1f9ab0c62f databases/geneweb/Makefile
--- a/databases/geneweb/Makefile        Thu Mar 09 09:41:08 2006 +0000
+++ b/databases/geneweb/Makefile        Thu Mar 09 10:35:49 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.28 2006/02/05 23:08:30 joerg Exp $
+# $NetBSD: Makefile,v 1.29 2006/03/09 10:35:49 tonio Exp $
 #
 
 DISTNAME=      geneweb-4.10
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    databases
 MASTER_SITES=  ftp://ftp.inria.fr/INRIA/Projects/cristal/geneweb/Src/
 
@@ -21,6 +21,10 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+# needed for patch-ab to work:
+# since 3.09.0, camlp4 uses _loc instead of loc
+BUILDLINK_DEPENDS.ocaml+=       ocaml>=3.09.0
+
 # sysutils/coreutils a 'gwc' program, so conflict with it if
 # ${GNU_PROGRAM_PREFIX} == "g"
 .if ${GNU_PROGRAM_PREFIX} == "g"
diff -r 860789b98f53 -r 6c1f9ab0c62f databases/geneweb/distinfo
--- a/databases/geneweb/distinfo        Thu Mar 09 09:41:08 2006 +0000
+++ b/databases/geneweb/distinfo        Thu Mar 09 10:35:49 2006 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.11 2006/02/10 23:32:00 rillig Exp $
+$NetBSD: distinfo,v 1.12 2006/03/09 10:35:49 tonio Exp $
 
 SHA1 (geneweb-4.10nb1/geneweb-4.10.tar.gz) = 0ab12497a3ffc3541228d9dc899c095b18e7fba1
 RMD160 (geneweb-4.10nb1/geneweb-4.10.tar.gz) = 5d5c9d08d76bbc08a288e7ae56aa335b9cfc0fb8
 Size (geneweb-4.10nb1/geneweb-4.10.tar.gz) = 998314 bytes
 SHA1 (patch-aa) = 5f90d1c0a8545b670587ee5d7bbd39829073671f
+SHA1 (patch-ab) = 36e0ed9d8034ea546400cdc685a43fce4bac1d30
diff -r 860789b98f53 -r 6c1f9ab0c62f databases/geneweb/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/geneweb/patches/patch-ab        Thu Mar 09 10:35:49 2006 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-ab,v 1.1 2006/03/09 10:35:49 tonio Exp $
+
+--- src/pa_html.ml.orig        2004-12-14 10:30:14.000000000 +0100
++++ src/pa_html.ml
+@@ -10,7 +10,7 @@ value rec unfold_apply list =
+   | e -> (e, list) ]
+ ;
+ 
+-value tag_encloser loc tag newl a el =
++value tag_encloser _loc tag newl a el =
+   let s = if newl then "\n" else "" in
+   let e =
+     let (frm, al) =
+@@ -37,13 +37,13 @@ EXTEND
+   GLOBAL: expr;
+   expr: LEVEL "top"
+     [ [ "tag"; (tn, al, el) = tag_body ->
+-          let el = tag_encloser loc tn True al el in
+-          ifndef NEWSEQ then MLast.ExSeq loc el (MLast.ExUid loc "()")
+-          else MLast.ExSeq loc el
++          let el = tag_encloser _loc tn True al el in
++          ifndef NEWSEQ then MLast.ExSeq _loc el (MLast.ExUid _loc "()")
++          else MLast.ExSeq _loc el
+       | "stag"; (tn, al, el) = tag_body ->
+-          let el = tag_encloser loc tn False al el in
+-          ifndef NEWSEQ then MLast.ExSeq loc el (MLast.ExUid loc "()")
+-          else MLast.ExSeq loc el ] ]
++          let el = tag_encloser _loc tn False al el in
++          ifndef NEWSEQ then MLast.ExSeq _loc el (MLast.ExUid _loc "()")
++          else MLast.ExSeq _loc el ] ]
+   ;
+   tag_body:
+     [ [ tn = STRING; a = OPT expr; "begin"; el = LIST0 expr_semi; "end" ->



Home | Main Index | Thread Index | Old Index