diff options
author | jaapb <jaapb@pkgsrc.org> | 2018-01-10 16:29:44 +0000 |
---|---|---|
committer | jaapb <jaapb@pkgsrc.org> | 2018-01-10 16:29:44 +0000 |
commit | c3cccea0a3cce9c8ac13c39ac2b95b035b331ed6 (patch) | |
tree | 50e490c44f7285c6bde8877202c9fc3ef6a3d0c3 /math/ocaml-num | |
parent | f9cd08fe86fb7c9ef7e05b71c6672c0e90849c04 (diff) | |
download | pkgsrc-c3cccea0a3cce9c8ac13c39ac2b95b035b331ed6.tar.gz |
Added package math/ocaml-num.
This legacy library for arbitrary-precision integer and rational arithmetic
was formerly part of the standard OCaml library, but has now been
spun off.
Diffstat (limited to 'math/ocaml-num')
-rw-r--r-- | math/ocaml-num/DESCR | 2 | ||||
-rw-r--r-- | math/ocaml-num/Makefile | 25 | ||||
-rw-r--r-- | math/ocaml-num/PLIST | 32 | ||||
-rw-r--r-- | math/ocaml-num/buildlink3.mk | 12 | ||||
-rw-r--r-- | math/ocaml-num/distinfo | 7 | ||||
-rw-r--r-- | math/ocaml-num/patches/patch-src_Makefile | 17 |
6 files changed, 95 insertions, 0 deletions
diff --git a/math/ocaml-num/DESCR b/math/ocaml-num/DESCR new file mode 100644 index 00000000000..6680274daf4 --- /dev/null +++ b/math/ocaml-num/DESCR @@ -0,0 +1,2 @@ +The legacy Num library for arbitrary-precision integer and rational +arithmetic that used to be part of the OCaml core distribution. diff --git a/math/ocaml-num/Makefile b/math/ocaml-num/Makefile new file mode 100644 index 00000000000..1e9bb92e5ea --- /dev/null +++ b/math/ocaml-num/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1 2018/01/10 16:29:44 jaapb Exp $ + +GITHUB_PROJECT= num +GITHUB_TAG= v${PKGVERSION_NOREV} +DISTNAME= ${GITHUB_PROJECT}-1.1 +PKGNAME= ocaml-${DISTNAME} +CATEGORIES= math +MASTER_SITES= ${MASTER_SITE_GITHUB:=ocaml/} + +MAINTAINER= jaapb@NetBSD.org +HOMEPAGE= https://github.com/ocaml/num/ +COMMENT= Library for arbitrary-precision arithmetic +LICENSE= gnu-lgpl-v2.1 + +USE_LANGUAGES= # none +USE_TOOLS+= gmake + +BUILD_TARGET= all +INSTALLATION_DIRS+= lib/ocaml/stublibs + +OCAML_USE_FINDLIB= yes +OCAML_FINDLIB_DIRS+= num-top + +.include "../../mk/ocaml.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/math/ocaml-num/PLIST b/math/ocaml-num/PLIST new file mode 100644 index 00000000000..0c7b14905b2 --- /dev/null +++ b/math/ocaml-num/PLIST @@ -0,0 +1,32 @@ +@comment $NetBSD: PLIST,v 1.1 2018/01/10 16:29:44 jaapb Exp $ +lib/ocaml/arith_status.cmi +lib/ocaml/arith_status.cmti +${PLIST.ocaml-opt}lib/ocaml/arith_status.cmx +lib/ocaml/arith_status.mli +lib/ocaml/big_int.cmi +lib/ocaml/big_int.cmti +${PLIST.ocaml-opt}lib/ocaml/big_int.cmx +lib/ocaml/big_int.mli +lib/ocaml/libnums.a +lib/ocaml/nat.cmi +lib/ocaml/nat.cmti +${PLIST.ocaml-opt}lib/ocaml/nat.cmx +lib/ocaml/nat.mli +lib/ocaml/num.cmi +lib/ocaml/num.cmti +${PLIST.ocaml-opt}lib/ocaml/num.cmx +lib/ocaml/num.mli +${PLIST.ocaml-opt}lib/ocaml/nums.a +lib/ocaml/nums.cma +${PLIST.ocaml-opt}lib/ocaml/nums.cmxa +${PLIST.ocaml-opt}lib/ocaml/nums.cmxs +lib/ocaml/ratio.cmi +lib/ocaml/ratio.cmti +${PLIST.ocaml-opt}lib/ocaml/ratio.cmx +lib/ocaml/ratio.mli +${OCAML_SITELIB}/num-top/META +${PLIST.ocaml-opt}${OCAML_SITELIB}/num-top/num_top.cma +${OCAML_SITELIB}/num-top/num_top.cmi +${OCAML_SITELIB}/num-top/num_top_printers.cmi +${OCAML_SITELIB}/num/META +lib/ocaml/stublibs/dllnums.so diff --git a/math/ocaml-num/buildlink3.mk b/math/ocaml-num/buildlink3.mk new file mode 100644 index 00000000000..3fe14dacf07 --- /dev/null +++ b/math/ocaml-num/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2018/01/10 16:29:44 jaapb Exp $ + +BUILDLINK_TREE+= ocaml-num + +.if !defined(OCAML_NUM_BUILDLINK3_MK) +OCAML_NUM_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.ocaml-num+= ocaml-num>=1.1 +BUILDLINK_PKGSRCDIR.ocaml-num?= ../../math/ocaml-num +.endif # OCAML_NUM_BUILDLINK3_MK + +BUILDLINK_TREE+= -ocaml-num diff --git a/math/ocaml-num/distinfo b/math/ocaml-num/distinfo new file mode 100644 index 00000000000..c4156681b0b --- /dev/null +++ b/math/ocaml-num/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2018/01/10 16:29:44 jaapb Exp $ + +SHA1 (num-1.1.tar.gz) = 99a0a54b9f4d00e52f1ccfbdfb06ddaa55f3d7bc +RMD160 (num-1.1.tar.gz) = 84b6b5f924dc0dd04e60c024523aabb0464368b1 +SHA512 (num-1.1.tar.gz) = e7ee54e83eaab15ee879c5bb6deb0d76a3adf1ffd2cbd3f93cda63e7bc7b3a90313b94b4be078ecddaeee90a8a98a986d80c2fd6f1ad38faa35a318f77ec890e +Size (num-1.1.tar.gz) = 65029 bytes +SHA1 (patch-src_Makefile) = e122a2c207c5c8b9923bd72b309a5a382d99909d diff --git a/math/ocaml-num/patches/patch-src_Makefile b/math/ocaml-num/patches/patch-src_Makefile new file mode 100644 index 00000000000..0b95733ce7f --- /dev/null +++ b/math/ocaml-num/patches/patch-src_Makefile @@ -0,0 +1,17 @@ +$NetBSD: patch-src_Makefile,v 1.1 2018/01/10 16:29:44 jaapb Exp $ + +Use DESTDIR +--- src/Makefile.orig 2017-10-13 16:43:54.000000000 +0000 ++++ src/Makefile +@@ -84,9 +84,9 @@ TOINSTALL_STUBS=dllnums.$(SO) + + install: + $(OCAMLFIND) install num META +- $(INSTALL_DATA) $(TOINSTALL) $(STDLIBDIR) ++ $(INSTALL_DATA) $(TOINSTALL) ${DESTDIR}$(STDLIBDIR) + ifeq "$(SUPPORTS_SHARED_LIBRARIES)" "true" +- $(INSTALL_DLL) $(TOINSTALL_STUBS) $(STDLIBDIR)/stublibs ++ $(INSTALL_DLL) $(TOINSTALL_STUBS) ${DESTDIR}$(STDLIBDIR)/stublibs + endif + + uninstall: |