pkgsrc-Changes archive

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

CVS commit: pkgsrc/math/ocaml-num



Module Name:    pkgsrc
Committed By:   jaapb
Date:           Wed Jan 10 16:29:44 UTC 2018

Added Files:
        pkgsrc/math/ocaml-num: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/math/ocaml-num/patches: patch-src_Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/math/ocaml-num/DESCR \
    pkgsrc/math/ocaml-num/Makefile pkgsrc/math/ocaml-num/PLIST \
    pkgsrc/math/ocaml-num/buildlink3.mk pkgsrc/math/ocaml-num/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/math/ocaml-num/patches/patch-src_Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/math/ocaml-num/DESCR
diff -u /dev/null pkgsrc/math/ocaml-num/DESCR:1.1
--- /dev/null   Wed Jan 10 16:29:44 2018
+++ pkgsrc/math/ocaml-num/DESCR Wed Jan 10 16:29:44 2018
@@ -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.
Index: pkgsrc/math/ocaml-num/Makefile
diff -u /dev/null pkgsrc/math/ocaml-num/Makefile:1.1
--- /dev/null   Wed Jan 10 16:29:44 2018
+++ pkgsrc/math/ocaml-num/Makefile      Wed Jan 10 16:29:44 2018
@@ -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"
Index: pkgsrc/math/ocaml-num/PLIST
diff -u /dev/null pkgsrc/math/ocaml-num/PLIST:1.1
--- /dev/null   Wed Jan 10 16:29:44 2018
+++ pkgsrc/math/ocaml-num/PLIST Wed Jan 10 16:29:44 2018
@@ -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
Index: pkgsrc/math/ocaml-num/buildlink3.mk
diff -u /dev/null pkgsrc/math/ocaml-num/buildlink3.mk:1.1
--- /dev/null   Wed Jan 10 16:29:44 2018
+++ pkgsrc/math/ocaml-num/buildlink3.mk Wed Jan 10 16:29:44 2018
@@ -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
Index: pkgsrc/math/ocaml-num/distinfo
diff -u /dev/null pkgsrc/math/ocaml-num/distinfo:1.1
--- /dev/null   Wed Jan 10 16:29:44 2018
+++ pkgsrc/math/ocaml-num/distinfo      Wed Jan 10 16:29:44 2018
@@ -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

Index: pkgsrc/math/ocaml-num/patches/patch-src_Makefile
diff -u /dev/null pkgsrc/math/ocaml-num/patches/patch-src_Makefile:1.1
--- /dev/null   Wed Jan 10 16:29:44 2018
+++ pkgsrc/math/ocaml-num/patches/patch-src_Makefile    Wed Jan 10 16:29:44 2018
@@ -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