pkgsrc-Changes archive

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

CVS commit: pkgsrc/databases/ocaml-dbm



Module Name:    pkgsrc
Committed By:   jaapb
Date:           Wed May  4 08:56:02 UTC 2022

Modified Files:
        pkgsrc/databases/ocaml-dbm: Makefile buildlink3.mk distinfo
        pkgsrc/databases/ocaml-dbm/patches: patch-Makefile

Log Message:
Update databases/ocaml-dbm to version 1.3.

This migrates the distribution to github and makes other minor changes.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/databases/ocaml-dbm/Makefile
cvs rdiff -u -r1.17 -r1.18 pkgsrc/databases/ocaml-dbm/buildlink3.mk
cvs rdiff -u -r1.6 -r1.7 pkgsrc/databases/ocaml-dbm/distinfo
cvs rdiff -u -r1.2 -r1.3 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.

Modified files:

Index: pkgsrc/databases/ocaml-dbm/Makefile
diff -u pkgsrc/databases/ocaml-dbm/Makefile:1.21 pkgsrc/databases/ocaml-dbm/Makefile:1.22
--- pkgsrc/databases/ocaml-dbm/Makefile:1.21    Mon Mar  8 08:12:46 2021
+++ pkgsrc/databases/ocaml-dbm/Makefile Wed May  4 08:56:02 2022
@@ -1,16 +1,16 @@
-# $NetBSD: Makefile,v 1.21 2021/03/08 08:12:46 jaapb Exp $
+# $NetBSD: Makefile,v 1.22 2022/05/04 08:56:02 jaapb Exp $
 #
 
-PKGNAME=       ocaml-dbm-${VERSION}
-DISTNAME=      camldbm-${VERSION}
-VERSION=       1.0
-PKGREVISION=   18
+DISTNAME=      caml${GITHUB_PROJECT}-1.3
+PKGNAME=       ocaml-${DISTNAME}
 CATEGORIES=    databases
-MASTER_SITES=  http://forge.ocamlcore.org/frs/download.php/728/
-EXTRACT_SUFX=  .tgz
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=ocaml/}
+GITHUB_PROJECT=        dbm
+GITHUB_TAG=    camldbm-${PKGVERSION_NOREV}
+DIST_SUBDIR=   ocaml-
 
 MAINTAINER=    jaapb%NetBSD.org@localhost
-HOMEPAGE=      http://camldbm.forge.ocamlcore.org/
+HOMEPAGE=      https://github.com/ocaml/dbm/
 COMMENT=       OCaml binding to the NDBM and GDBM database library
 LICENSE=       gnu-lgpl-v2
 
@@ -18,8 +18,9 @@ CONFLICTS=    ocaml-findlib<1.4nb1
 
 HAS_CONFIGURE=         yes
 USE_TOOLS+=            gmake
-MAKE_ENV+=             HAS_OCAMLOPT="${OCAML_USE_OPT_COMPILER}"
-OCAML_USE_FINDLIB=     yes
+MAKE_ENV+=             HAS_OCAMLOPT="${OCAML_USE_OPT_COMPILER}" \
+                       STUBLIBDIR="${DESTDIR}${PREFIX}/lib/ocaml/site-lib/dbm" \
+                       LIBDIR="${DESTDIR}${PREFIX}/lib/ocaml/site-lib/dbm"
 
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/META ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/dbm

Index: pkgsrc/databases/ocaml-dbm/buildlink3.mk
diff -u pkgsrc/databases/ocaml-dbm/buildlink3.mk:1.17 pkgsrc/databases/ocaml-dbm/buildlink3.mk:1.18
--- pkgsrc/databases/ocaml-dbm/buildlink3.mk:1.17       Mon Mar  8 08:12:46 2021
+++ pkgsrc/databases/ocaml-dbm/buildlink3.mk    Wed May  4 08:56:02 2022
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.17 2021/03/08 08:12:46 jaapb Exp $
+# $NetBSD: buildlink3.mk,v 1.18 2022/05/04 08:56:02 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.0nb18
+BUILDLINK_ABI_DEPENDS.ocaml-dbm?=      ocaml-dbm>=1.0nb21
 BUILDLINK_PKGSRCDIR.ocaml-dbm?=                ../../databases/ocaml-dbm
 
 .include "../../databases/gdbm/buildlink3.mk"

Index: pkgsrc/databases/ocaml-dbm/distinfo
diff -u pkgsrc/databases/ocaml-dbm/distinfo:1.6 pkgsrc/databases/ocaml-dbm/distinfo:1.7
--- pkgsrc/databases/ocaml-dbm/distinfo:1.6     Tue Oct 26 10:09:25 2021
+++ pkgsrc/databases/ocaml-dbm/distinfo Wed May  4 08:56:02 2022
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.6 2021/10/26 10:09:25 nia Exp $
+$NetBSD: distinfo,v 1.7 2022/05/04 08:56:02 jaapb Exp $
 
-BLAKE2s (camldbm-1.0.tgz) = 9af16f4d81bb42a34d22cb8d943c917ed8d059ba0984702bca56a35b500b54c7
-SHA512 (camldbm-1.0.tgz) = d0b752754650efb400f13f957e83fddccf1fc9ac9e1d11f453af94e9aa599546a316eb110685b3728b593c99cbf859cdc7bcf924c878cf8b6dead3dc413ccfbf
-Size (camldbm-1.0.tgz) = 14397 bytes
-SHA1 (patch-Makefile) = 20c4d5b50fea2829c69bb8c5bb69085dafca64b4
+BLAKE2s (ocaml-/camldbm-1.3.tar.gz) = daac40d2b8b3a948b9e962ac14f35abbec6285e9a65867d0ad4d84c3e5b463fd
+SHA512 (ocaml-/camldbm-1.3.tar.gz) = cf2d24e7e169a71cc117541dbf6b89e048f62e92f00af229c512ad13a226a7f7dba1ee7db0370393d08b5a342a1c296d70ecddfec13f300369513421ef4da0ce
+Size (ocaml-/camldbm-1.3.tar.gz) = 14831 bytes
+SHA1 (patch-Makefile) = 6e156ab18f514dfbcb884d2d52bd60252be2ee78

Index: pkgsrc/databases/ocaml-dbm/patches/patch-Makefile
diff -u pkgsrc/databases/ocaml-dbm/patches/patch-Makefile:1.2 pkgsrc/databases/ocaml-dbm/patches/patch-Makefile:1.3
--- pkgsrc/databases/ocaml-dbm/patches/patch-Makefile:1.2       Sun Jul  3 10:44:49 2016
+++ pkgsrc/databases/ocaml-dbm/patches/patch-Makefile   Wed May  4 08:56:02 2022
@@ -1,7 +1,8 @@
-$NetBSD: patch-Makefile,v 1.2 2016/07/03 10:44:49 jaapb Exp $
+$NetBSD: patch-Makefile,v 1.3 2022/05/04 08:56:02 jaapb Exp $
 
-Make native code compilation optional and integrate with findlib
---- Makefile.orig      2011-11-22 15:56:49.000000000 +0000
+Make native code compilation optional and use INSTALL_* macros
+
+--- Makefile.orig      2021-10-09 14:48:02.000000000 +0000
 +++ Makefile
 @@ -11,7 +11,7 @@
  #                                                                       #
@@ -34,22 +35,26 @@ Make native code compilation optional an
  
  dbm.cma: dbm.cmo
        $(OCAMLMKLIB) -o dbm -oc camldbm -linkall dbm.cmo $(DBM_LINK)
-@@ -57,13 +64,7 @@ depend:
+@@ -57,13 +64,13 @@ depend:
        $(OCAMLDEP) *.ml *.mli > .depend
  
  install::
--      if test -f dllcamldbm.$(SO); then cp dllcamldbm.$(SO) $(STUBLIBDIR)/; fi 
+-      if test -f dllcamldbm.$(SO); then mkdir $(STUBLIBDIR) || echo Ok; cp dllcamldbm.$(SO) $(STUBLIBDIR)/; fi 
 -      cp libcamldbm.$(A) $(LIBDIR)/
--      cd $(LIBDIR) && ranlib libcamldbm.$(A)
--      cp dbm.cma dbm.cmxa dbm.cmi dbm.mli $(LIBDIR)/
++      if test -f dllcamldbm.$(SO); then $(BSD_INSTALL_LIB_DIR) $(STUBLIBDIR) || echo Ok; $(BSD_INSTALL_LIB) dllcamldbm.$(SO) $(STUBLIBDIR)/; fi 
++      $(BSD_INSTALL_LIB) libcamldbm.$(A) $(LIBDIR)/
+       cd $(LIBDIR) && ranlib libcamldbm.$(A)
+-      cp dbm.cmx dbm.cma dbm.cmxa dbm.cmi dbm.mli $(LIBDIR)/
 -      cp dbm.$(A) $(LIBDIR)/
--      cd $(LIBDIR) && ranlib dbm.$(A)
++      $(BSD_INSTALL_DATA) dbm.cmx dbm.cma dbm.cmxa dbm.cmi dbm.mli $(LIBDIR)/
++      $(BSD_INSTALL_DATA) dbm.$(A) $(LIBDIR)/
+       cd $(LIBDIR) && ranlib dbm.$(A)
 -      if test -f dbm.cmxs; then cp dbm.cmxs $(LIBDIR)/; fi
-+      ocamlfind install dbm $(FILES)
++      if test -f dbm.cmxs; then $(BSD_INSTALL_DATA) dbm.cmxs $(LIBDIR)/; fi
  
  clean::
        rm -f *.cm* *.$(O) *.$(A) *.$(SO)
-@@ -77,12 +78,16 @@ testdbm.opt: dbm.cmxa testdbm.ml
+@@ -77,12 +84,16 @@ testdbm.opt: dbm.cmxa testdbm.ml
  clean::
        rm -f testdbm.byte testdbm.opt testdatabase.*
  



Home | Main Index | Thread Index | Old Index