Package update to version 2.1, including a patch to compile with ocaml 4.01 (upcoming). Changelog is only available through git, unfortunately.diff -r1.1 -r1.2 pkgsrc/devel/ocaml-batteries/Makefile
(jaapb)
@@ -1,23 +1,26 @@ | @@ -1,23 +1,26 @@ | |||
1 | # $NetBSD: Makefile,v 1.1 2013/07/03 10:40:33 jaapb Exp $ | 1 | # $NetBSD: Makefile,v 1.2 2013/11/01 10:32:53 jaapb Exp $ | |
2 | 2 | |||
3 | PKGNAME= ocaml-${DISTNAME} | 3 | PKGNAME= ocaml-${DISTNAME} | |
4 | DISTNAME= batteries-2.0 | 4 | DISTNAME= batteries-2.1 | |
5 | CATEGORIES= devel | 5 | CATEGORIES= devel | |
6 | MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/1096/ | 6 | MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/1218/ | |
7 | 7 | |||
8 | MAINTAINER= jaapb@NetBSD.org | 8 | MAINTAINER= jaapb@NetBSD.org | |
9 | HOMEPAGE= http://batteries.forge.ocamlcore.org/ | 9 | HOMEPAGE= http://batteries.forge.ocamlcore.org/ | |
10 | COMMENT= Alternative standard library for OCaml | 10 | COMMENT= Alternative standard library for OCaml | |
11 | LICENSE= gnu-lgpl-v2.1 | 11 | LICENSE= gnu-lgpl-v2.1 | |
12 | 12 | |||
13 | USE_TOOLS+= gmake | 13 | USE_TOOLS+= gmake | |
14 | INSTALLATION_DIRS= lib/ocaml/site-lib | |||
15 | ||||
16 | MAKE_ENV= DESTDIR="${DESTDIR}" PREFIX="${PREFIX}" | |||
14 | 17 | |||
15 | PLIST_VARS= opt | 18 | PLIST_VARS= opt | |
16 | .if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ | 19 | .if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ | |
17 | (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") | 20 | (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") | |
18 | PLIST.opt= yes | 21 | PLIST.opt= yes | |
19 | .endif | 22 | .endif | |
20 | 23 | |||
21 | .include "../../devel/ocaml-findlib/buildlink3.mk" | 24 | .include "../../devel/ocaml-findlib/buildlink3.mk" | |
22 | .include "../../lang/ocaml/buildlink3.mk" | 25 | .include "../../lang/ocaml/buildlink3.mk" | |
23 | .include "../../mk/bsd.pkg.mk" | 26 | .include "../../mk/bsd.pkg.mk" |
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.1 2013/07/03 10:40:33 jaapb Exp $ | 1 | $NetBSD: distinfo,v 1.2 2013/11/01 10:32:53 jaapb Exp $ | |
2 | 2 | |||
3 | SHA1 (batteries-2.0.tar.gz) = d173e1944490f357530a24cc1c218ceb4d87eff1 | 3 | SHA1 (batteries-2.1.tar.gz) = 5da23f83fe28afdeda1b2f9e95131c98023986aa | |
4 | RMD160 (batteries-2.0.tar.gz) = 71cf7e1f549931cf3d93401417ab7d5caff778ce | 4 | RMD160 (batteries-2.1.tar.gz) = ab9c403ecaa2e70ff122044526ec10b4f0195d2f | |
5 | Size (batteries-2.0.tar.gz) = 675780 bytes | 5 | Size (batteries-2.1.tar.gz) = 695812 bytes | |
6 | SHA1 (patch-Makefile) = 79ce183be6925ff8ffde91c78d2e4314dd1343df | 6 | SHA1 (patch-Makefile) = 916f5bb2eeffca3830865e0a63dfdb9a48e1e40f | |
7 | SHA1 (patch-src_batUnix.mliv) = 2b51dee8b91503a136f592a8f78e4c1fbf688c3c |
@@ -1,15 +1,17 @@ | @@ -1,15 +1,17 @@ | |||
1 | $NetBSD: patch-Makefile,v 1.1 2013/07/03 10:40:33 jaapb Exp $ | 1 | $NetBSD: patch-Makefile,v 1.2 2013/11/01 10:32:53 jaapb Exp $ | |
2 | 2 | |||
3 | Install into DESTDIR | 3 | Install into DESTDIR | |
4 | --- Makefile.orig 2013-01-03 19:39:03.000000000 +0000 | 4 | --- Makefile.orig 2013-07-18 05:02:22.000000000 +0000 | |
5 | +++ Makefile | 5 | +++ Makefile | |
6 | @@ -88,7 +88,8 @@ man: all batteries.odocl | 6 | @@ -88,8 +88,9 @@ man: all batteries.odocl | |
7 | -mkdir man | |||
7 | ocamlfind ocamldoc -package threads.posix -sort -man -hide-warnings -d man -I _build/libs -I _build/src libs/uniclib.mli src/*.mli | 8 | ocamlfind ocamldoc -package threads.posix -sort -man -hide-warnings -d man -I _build/libs -I _build/src libs/uniclib.mli src/*.mli | |
8 | 9 | |||
9 | install: all uninstall_packages | 10 | -install: all uninstall_packages | |
10 | - ocamlfind install $(NAME) $(INSTALL_FILES) \ | 11 | - ocamlfind install $(NAME) $(INSTALL_FILES) \ | |
12 | +install: all | |||
11 | + ocamlfind install $(NAME) -destdir "${DESTDIR}${PREFIX}/lib/ocaml/site-lib" \ | 13 | + ocamlfind install $(NAME) -destdir "${DESTDIR}${PREFIX}/lib/ocaml/site-lib" \ | |
12 | + $(INSTALL_FILES) \ | 14 | + $(INSTALL_FILES) \ | |
13 | -optional $(OPT_INSTALL_FILES) | 15 | -optional $(OPT_INSTALL_FILES) | |
14 | 16 | |||
15 | uninstall_packages: | 17 | uninstall_packages: |
$NetBSD: patch-src_batUnix.mliv,v 1.1 2013/11/01 10:32:53 jaapb Exp $
Patch (from upstream git) to compile with ocaml 4.01
--- src/batUnix.mliv.orig 2013-07-18 05:02:22.000000000 +0000
+++ src/batUnix.mliv
@@ -261,6 +261,10 @@ type open_flag = Unix.open_flag =
O_SYNC/O_DSYNC) *)
##V4## | O_SHARE_DELETE (** OCaml 4 and Windows only: allow the file to be deleted
##V4## while still open *)
+##V4.1## | O_CLOEXEC (** Set the close-on-exec flag on the
+##V4.1## descriptor returned by {!openfile}
+##V4.1##
+##V4.1## Since OCaml 4.1 *)
(** The flags to {!Unix.openfile}. *)