Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+6 -6
View File
@@ -1,10 +1,10 @@
# $NetBSD: Makefile,v 1.9 2015/08/07 11:20:32 jaapb Exp $
# $NetBSD: Makefile,v 1.11 2016/07/03 10:44:49 jaapb Exp $
#
PKGNAME= ocaml-dbm-${VERSION}
DISTNAME= camldbm-${VERSION}
VERSION= 1.0
PKGREVISION= 7
PKGREVISION= 9
CATEGORIES= databases
MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/728/
EXTRACT_SUFX= .tgz
@@ -17,13 +17,13 @@ LICENSE= gnu-lgpl-v2
CONFLICTS= ocaml-findlib<1.4nb1
HAS_CONFIGURE= yes
MAKE_ENV+= DESTDIR="${DESTDIR}"
INSTALLATION_DIRS= lib/ocaml/stublibs lib/ocaml/site-lib/dbm
USE_TOOLS+= gmake
MAKE_ENV+= HAS_OCAMLOPT="${OCAML_USE_OPT_COMPILER}"
OCAML_USE_FINDLIB= yes
post-install:
${INSTALL_DATA} ${WRKSRC}/META ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/dbm
.include "../../databases/gdbm/buildlink3.mk"
.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/ocaml.mk"
.include "../../mk/bsd.pkg.mk"
+11 -10
View File
@@ -1,10 +1,11 @@
@comment $NetBSD: PLIST,v 1.2 2013/07/06 11:18:39 jaapb Exp $
lib/ocaml/dbm.a
lib/ocaml/dbm.cma
lib/ocaml/dbm.cmi
lib/ocaml/dbm.cmxa
lib/ocaml/dbm.cmxs
lib/ocaml/dbm.mli
lib/ocaml/libcamldbm.a
lib/ocaml/site-lib/dbm/META
lib/ocaml/stublibs/dllcamldbm.so
@comment $NetBSD: PLIST,v 1.3 2016/07/03 10:44:49 jaapb Exp $
${PLIST.ocaml-opt}${OCAML_SITELIB}/dbm/dbm.a
${OCAML_SITELIB}/dbm/dbm.cma
${OCAML_SITELIB}/dbm/dbm.cmi
${PLIST.ocaml-opt}${OCAML_SITELIB}/dbm/dbm.cmx
${PLIST.ocaml-opt}${OCAML_SITELIB}/dbm/dbm.cmxa
${PLIST.ocaml-opt}${OCAML_SITELIB}/dbm/dbm.cmxs
${OCAML_SITELIB}/dbm/dbm.mli
${OCAML_SITELIB}/dbm/libcamldbm.a
${OCAML_SITELIB}/dbm/META
${OCAML_SITELIB}/dbm/dllcamldbm.so
+2 -2
View File
@@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.6 2015/08/07 11:20:32 jaapb Exp $
# $NetBSD: buildlink3.mk,v 1.7 2016/05/05 11:45:36 jaapb Exp $
BUILDLINK_TREE+= ocaml-dbm
@@ -6,7 +6,7 @@ BUILDLINK_TREE+= ocaml-dbm
OCAML_DBM_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.ocaml-dbm+= ocaml-dbm>=1.0
BUILDLINK_ABI_DEPENDS.ocaml-dbm?= ocaml-dbm>=1.0nb7
BUILDLINK_ABI_DEPENDS.ocaml-dbm?= ocaml-dbm>=1.0nb8
BUILDLINK_PKGSRCDIR.ocaml-dbm?= ../../databases/ocaml-dbm
.include "../../databases/gdbm/buildlink3.mk"
+3 -3
View File
@@ -1,7 +1,7 @@
$NetBSD: distinfo,v 1.2 2013/07/21 17:04:29 jaapb Exp $
$NetBSD: distinfo,v 1.4 2016/07/03 10:44:49 jaapb Exp $
SHA1 (camldbm-1.0.tgz) = e3f17c9cd9c72930fd39e3bc1025bea57241e3f9
RMD160 (camldbm-1.0.tgz) = 0691f84ac43c97fddaf796c04729baa8bcb280ca
SHA512 (camldbm-1.0.tgz) = d0b752754650efb400f13f957e83fddccf1fc9ac9e1d11f453af94e9aa599546a316eb110685b3728b593c99cbf859cdc7bcf924c878cf8b6dead3dc413ccfbf
Size (camldbm-1.0.tgz) = 14397 bytes
SHA1 (patch-META) = 2691ffc5e6a4a8fbd2de88a177b79b5c5812ffb8
SHA1 (patch-Makefile) = 49402bd4ea4178932fd363baaae236d2e5ee56e1
SHA1 (patch-Makefile) = 20c4d5b50fea2829c69bb8c5bb69085dafca64b4
-10
View File
@@ -1,10 +0,0 @@
$NetBSD: patch-META,v 1.1 2013/07/21 17:04:29 jaapb Exp $
point to correct directory for library files
--- META.orig 2011-11-22 15:56:49.000000000 +0000
+++ META
@@ -3,3 +3,4 @@ requires = ""
version = "1.0"
archive(byte) = "dbm.cma"
archive(native) = "dbm.cmxa"
+directory = "^"
+54 -11
View File
@@ -1,9 +1,40 @@
$NetBSD: patch-Makefile,v 1.1 2012/12/15 10:25:52 jaapb Exp $
$NetBSD: patch-Makefile,v 1.2 2016/07/03 10:44:49 jaapb Exp $
Install into DESTDIR
Make native code compilation optional and integrate with findlib
--- Makefile.orig 2011-11-22 15:56:49.000000000 +0000
+++ Makefile
@@ -57,13 +57,14 @@ depend:
@@ -11,7 +11,7 @@
# #
#########################################################################
-include Makefile.config
+-include Makefile.config
OCAMLC=ocamlc
OCAMLOPT=ocamlopt
@@ -21,11 +21,18 @@ OCAMLRUN=ocamlrun
O=o
A=a
SO=so
-LIBDIR=`ocamlc -where`
-STUBLIBDIR=$(LIBDIR)/stublibs
+HAS_OCAMLOPT?= $(shell if which ocamlopt >/dev/null; then echo yes; else echo no; fi)
-all: libcamldbm.$(A) dbm.cma dbm.cmxa dbm.cmxs
+TARGETS := libcamldbm.$(A) dbm.cma
+FILES := META dllcamldbm.$(SO) libcamldbm.$(A) dbm.cma dbm.cmi dbm.mli
+
+ifeq ($(HAS_OCAMLOPT),yes)
+ TARGETS += dbm.cmxa dbm.cmxs
+ FILES += dbm.cmxa dbm.cmxs dbm.cmx dbm.$(A)
+endif
+
+all: $(TARGETS)
dbm.cma: dbm.cmo
$(OCAMLMKLIB) -o dbm -oc camldbm -linkall dbm.cmo $(DBM_LINK)
@@ -57,13 +64,7 @@ depend:
$(OCAMLDEP) *.ml *.mli > .depend
install::
@@ -14,14 +45,26 @@ Install into DESTDIR
- cp dbm.$(A) $(LIBDIR)/
- cd $(LIBDIR) && ranlib dbm.$(A)
- if test -f dbm.cmxs; then cp dbm.cmxs $(LIBDIR)/; fi
+ if test -f dllcamldbm.$(SO); then cp dllcamldbm.$(SO) \
+ $(DESTDIR)/$(STUBLIBDIR)/; fi
+ cp libcamldbm.$(A) $(DESTDIR)/$(LIBDIR)/
+ cd $(DESTDIR)/$(LIBDIR) && ranlib libcamldbm.$(A)
+ cp dbm.cma dbm.cmxa dbm.cmi dbm.mli $(DESTDIR)/$(LIBDIR)/
+ cp dbm.$(A) $(DESTDIR)/$(LIBDIR)/
+ cd $(DESTDIR)/$(LIBDIR) && ranlib dbm.$(A)
+ if test -f dbm.cmxs; then cp dbm.cmxs $(DESTDIR)/$(LIBDIR)/; fi
+ ocamlfind install dbm $(FILES)
clean::
rm -f *.cm* *.$(O) *.$(A) *.$(SO)
@@ -77,12 +78,16 @@ testdbm.opt: dbm.cmxa testdbm.ml
clean::
rm -f testdbm.byte testdbm.opt testdatabase.*
-test: testdbm.byte testdbm.opt
+test:: testdbm.byte
rm -f testdatabase.*
ocamlrun -I . ./testdbm.byte
rm -f testdatabase.*
+
+ifeq ($(HAS_OCAMLOPT),yes)
+test:: testdbm.opt
+ rm -f testdatabase.*
./testdbm.opt
rm -f testdatabase.*
-
+endif
include .depend