Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id B94BB7A475 for ; Sun, 3 Jul 2016 10:44:51 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 2C1CA85E8C; Sun, 3 Jul 2016 10:44:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id AF6CF85E62 for ; Sun, 3 Jul 2016 10:44:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id L4lZOtajkj_F for ; Sun, 3 Jul 2016 10:44:50 +0000 (UTC) Received: from cvs.NetBSD.org (unknown [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 02A7584CEC for ; Sun, 3 Jul 2016 10:44:49 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id E8984FBB5; Sun, 3 Jul 2016 10:44:49 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1467542689179120" MIME-Version: 1.0 Date: Sun, 3 Jul 2016 10:44:49 +0000 From: "Jaap Boender" Subject: CVS commit: pkgsrc/databases/ocaml-dbm To: pkgsrc-changes@NetBSD.org Reply-To: jaapb@netbsd.org X-Mailer: log_accum Message-Id: <20160703104449.E8984FBB5@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk This is a multi-part message in MIME format. --_----------=_1467542689179120 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jaapb Date: Sun Jul 3 10:44:49 UTC 2016 Modified Files: pkgsrc/databases/ocaml-dbm: Makefile PLIST distinfo pkgsrc/databases/ocaml-dbm/patches: patch-Makefile Removed Files: pkgsrc/databases/ocaml-dbm/patches: patch-META Log Message: Updated the Makefile patch to conform with Debian's, which has been submitted upstream. Also removed the patch to META as this Makefile actually does install the files in the site-lib directory. No upstream changes. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 pkgsrc/databases/ocaml-dbm/Makefile cvs rdiff -u -r1.2 -r1.3 pkgsrc/databases/ocaml-dbm/PLIST cvs rdiff -u -r1.3 -r1.4 pkgsrc/databases/ocaml-dbm/distinfo cvs rdiff -u -r1.1 -r0 pkgsrc/databases/ocaml-dbm/patches/patch-META cvs rdiff -u -r1.1 -r1.2 pkgsrc/databases/ocaml-dbm/patches/patch-Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1467542689179120 Content-Disposition: inline Content-Length: 5732 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/databases/ocaml-dbm/Makefile diff -u pkgsrc/databases/ocaml-dbm/Makefile:1.10 pkgsrc/databases/ocaml-dbm/Makefile:1.11 --- pkgsrc/databases/ocaml-dbm/Makefile:1.10 Thu May 5 11:45:36 2016 +++ pkgsrc/databases/ocaml-dbm/Makefile Sun Jul 3 10:44:49 2016 @@ -1,10 +1,10 @@ -# $NetBSD: Makefile,v 1.10 2016/05/05 11:45:36 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= 8 +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" Index: pkgsrc/databases/ocaml-dbm/PLIST diff -u pkgsrc/databases/ocaml-dbm/PLIST:1.2 pkgsrc/databases/ocaml-dbm/PLIST:1.3 --- pkgsrc/databases/ocaml-dbm/PLIST:1.2 Sat Jul 6 11:18:39 2013 +++ pkgsrc/databases/ocaml-dbm/PLIST Sun Jul 3 10:44:49 2016 @@ -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 Index: pkgsrc/databases/ocaml-dbm/distinfo diff -u pkgsrc/databases/ocaml-dbm/distinfo:1.3 pkgsrc/databases/ocaml-dbm/distinfo:1.4 --- pkgsrc/databases/ocaml-dbm/distinfo:1.3 Tue Nov 3 01:56:16 2015 +++ pkgsrc/databases/ocaml-dbm/distinfo Sun Jul 3 10:44:49 2016 @@ -1,8 +1,7 @@ -$NetBSD: distinfo,v 1.3 2015/11/03 01:56:16 agc 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 Index: pkgsrc/databases/ocaml-dbm/patches/patch-Makefile diff -u pkgsrc/databases/ocaml-dbm/patches/patch-Makefile:1.1 pkgsrc/databases/ocaml-dbm/patches/patch-Makefile:1.2 --- pkgsrc/databases/ocaml-dbm/patches/patch-Makefile:1.1 Sat Dec 15 10:25:52 2012 +++ pkgsrc/databases/ocaml-dbm/patches/patch-Makefile Sun Jul 3 10:44:49 2016 @@ -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 --_----------=_1467542689179120--