summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjaapb <jaapb>2016-06-25 14:31:13 +0000
committerjaapb <jaapb>2016-06-25 14:31:13 +0000
commitc1d221ec89008625b07b65a10dff1569e7742373 (patch)
tree402c57bb13f6ac531ee29b79cb86937daec98d8c /math
parenta5432508a56bccc475fb865385b39f719e3b0245 (diff)
downloadpkgsrc-c1d221ec89008625b07b65a10dff1569e7742373.tar.gz
Updated package to use ocaml.mk framework. No upstream changes.
Diffstat (limited to 'math')
-rw-r--r--math/ocaml-zarith/Makefile10
-rw-r--r--math/ocaml-zarith/PLIST32
2 files changed, 19 insertions, 23 deletions
diff --git a/math/ocaml-zarith/Makefile b/math/ocaml-zarith/Makefile
index c73f1ed06d8..71d5649ffbb 100644
--- a/math/ocaml-zarith/Makefile
+++ b/math/ocaml-zarith/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2016/05/05 11:45:40 jaapb Exp $
+# $NetBSD: Makefile,v 1.4 2016/06/25 14:31:13 jaapb Exp $
#
DISTNAME= ocaml-zarith-1.4.1
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= math
MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/1574/
@@ -11,8 +11,6 @@ HOMEPAGE= http://forge.ocamlcore.org/projects/zarith
COMMENT= OCaml arithmetic library for arbitrary precision integers
LICENSE= gnu-lgpl-v2
-DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
-
# zarith library creation is racy
MAKE_JOBS_SAFE= no
@@ -20,12 +18,12 @@ HAS_CONFIGURE= yes
CONFIGURE_ENV+= DESTDIR=${DESTDIR}
USE_TOOLS+= gmake perl
-INSTALLATION_DIRS= lib/ocaml/site-lib
+OCAML_USE_FINDLIB= yes
WRKSRC= ${WRKDIR}/${DISTNAME:S/ocaml-//}
REPLACE_PERL+= z_pp.pl
.include "../../devel/gmp/buildlink3.mk"
-.include "../../lang/ocaml/buildlink3.mk"
+.include "../../mk/ocaml.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/math/ocaml-zarith/PLIST b/math/ocaml-zarith/PLIST
index c394aba69a2..88873a9b771 100644
--- a/math/ocaml-zarith/PLIST
+++ b/math/ocaml-zarith/PLIST
@@ -1,17 +1,15 @@
-@comment $NetBSD: PLIST,v 1.2 2016/03/31 10:27:26 markd Exp $
-lib/ocaml/site-lib/zarith/big_int_Z.cmi
-lib/ocaml/site-lib/zarith/big_int_Z.mli
-lib/ocaml/site-lib/zarith/dllzarith.so
-lib/ocaml/site-lib/zarith/libzarith.a
-lib/ocaml/site-lib/zarith/META
-lib/ocaml/site-lib/zarith/q.cmi
-lib/ocaml/site-lib/zarith/q.mli
-lib/ocaml/site-lib/zarith/zarith.a
-lib/ocaml/site-lib/zarith/zarith.cma
-lib/ocaml/site-lib/zarith/zarith.cmxa
-lib/ocaml/site-lib/zarith/zarith.cmxs
-lib/ocaml/site-lib/zarith/zarith.h
-lib/ocaml/site-lib/zarith/z.cmi
-lib/ocaml/site-lib/zarith/z.mli
-@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/zarith
-@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/zarith
+@comment $NetBSD: PLIST,v 1.3 2016/06/25 14:31:13 jaapb Exp $
+${OCAML_SITELIB}/zarith/big_int_Z.cmi
+${OCAML_SITELIB}/zarith/big_int_Z.mli
+${OCAML_SITELIB}/zarith/dllzarith.so
+${OCAML_SITELIB}/zarith/libzarith.a
+${OCAML_SITELIB}/zarith/META
+${OCAML_SITELIB}/zarith/q.cmi
+${OCAML_SITELIB}/zarith/q.mli
+${OCAML_SITELIB}/zarith/zarith.a
+${OCAML_SITELIB}/zarith/zarith.cma
+${OCAML_SITELIB}/zarith/zarith.cmxa
+${OCAML_SITELIB}/zarith/zarith.cmxs
+${OCAML_SITELIB}/zarith/zarith.h
+${OCAML_SITELIB}/zarith/z.cmi
+${OCAML_SITELIB}/zarith/z.mli