pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/ocaml-num Added package math/ocaml-num.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a91a1ed8d890
branches:  trunk
changeset: 373871:a91a1ed8d890
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Wed Jan 10 16:29:44 2018 +0000

description:
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:

 math/ocaml-num/DESCR                      |   2 +
 math/ocaml-num/Makefile                   |  25 ++++++++++++++++++++++++
 math/ocaml-num/PLIST                      |  32 +++++++++++++++++++++++++++++++
 math/ocaml-num/buildlink3.mk              |  12 +++++++++++
 math/ocaml-num/distinfo                   |   7 ++++++
 math/ocaml-num/patches/patch-src_Makefile |  17 ++++++++++++++++
 6 files changed, 95 insertions(+), 0 deletions(-)

diffs (119 lines):

diff -r 900d412dcb32 -r a91a1ed8d890 math/ocaml-num/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/ocaml-num/DESCR      Wed Jan 10 16:29:44 2018 +0000
@@ -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 -r 900d412dcb32 -r a91a1ed8d890 math/ocaml-num/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/ocaml-num/Makefile   Wed Jan 10 16:29:44 2018 +0000
@@ -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@localhost
+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 -r 900d412dcb32 -r a91a1ed8d890 math/ocaml-num/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/ocaml-num/PLIST      Wed Jan 10 16:29:44 2018 +0000
@@ -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 -r 900d412dcb32 -r a91a1ed8d890 math/ocaml-num/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/ocaml-num/buildlink3.mk      Wed Jan 10 16:29:44 2018 +0000
@@ -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 -r 900d412dcb32 -r a91a1ed8d890 math/ocaml-num/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/ocaml-num/distinfo   Wed Jan 10 16:29:44 2018 +0000
@@ -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 -r 900d412dcb32 -r a91a1ed8d890 math/ocaml-num/patches/patch-src_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/ocaml-num/patches/patch-src_Makefile Wed Jan 10 16:29:44 2018 +0000
@@ -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:



Home | Main Index | Thread Index | Old Index