debian/0000755000000000000000000000000012250700267007167 5ustar debian/control0000644000000000000000000000247312250700055010573 0ustar Source: camldbm Section: ocaml Priority: optional Maintainer: Debian OCaml Maintainers Uploaders: Stéphane Glondu Build-Depends: debhelper (>= 9), libgdbm-dev, ocaml-nox, ocaml-findlib, dh-ocaml Homepage: https://forge.ocamlcore.org/projects/camldbm/ Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ocaml-maint/packages/camldbm.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ocaml-maint/packages/camldbm.git Package: libdbm-ocaml Architecture: any Depends: ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends} Provides: ${ocaml:Provides} Description: binding to the NDBM/GDBM Unix databases (runtime) This OCaml library is a binding to the NDBM/GDBM Unix databases. It provides persistent storage of key-value pairs of strings. . This package contains only the shared runtime stub libraries. Package: libdbm-ocaml-dev Architecture: any Depends: libgdbm-dev, ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends} Suggests: ocaml-findlib Provides: ${ocaml:Provides} Description: binding to the NDBM/GDBM Unix databases (development files) This OCaml library is a binding to the NDBM/GDBM Unix databases. It provides persistent storage of key-value pairs of strings. . This package contains the development part of the camldbm package. debian/libdbm-ocaml-dev.install.in0000644000000000000000000000022012250700055014247 0ustar @OCamlStdlibDir@/dbm/*.mli @OCamlStdlibDir@/dbm/*.cmi @OCamlStdlibDir@/dbm/*.a OPT: @OCamlStdlibDir@/dbm/*.cmx OPT: @OCamlStdlibDir@/dbm/*.cmxa debian/source/0000755000000000000000000000000012250700055010462 5ustar debian/source/format0000644000000000000000000000001412250700055011670 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000303012250700055011111 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://forge.ocamlcore.org/projects/camldbm/ Files: * Copyright: 1996, Institut National de Recherche en Informatique et en Automatique License: LGPL-2-with-linking-exception Files: debian/* Copyright: 2013, Stéphane Glondu License: LGPL-2-with-linking-exception License: LGPL-2-with-linking-exception This Library is distributed under the terms of the GNU Library General Public License version 2, with a special exception allowing unconstrained static linking. See below for details. . As a special exception to the GNU Library General Public License, you may link, statically or dynamically, a "work that uses the Library" with a publicly distributed version of the Library to produce an executable file containing portions of the Library, and distribute that executable file under terms of your choice, without any of the additional requirements listed in clause 6 of the GNU Library General Public License. By "a publicly distributed version of the Library", we mean either the unmodified Library as distributed by INRIA, or a modified version of the Library that is distributed under the conditions defined in clause 3 of the GNU Library General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU Library General Public License. . On Debian systems, the full text of the GNU Library General Public License version 2 can be found in /usr/share/common-licenses/LGPL-2. debian/watch0000644000000000000000000000012512250700055010211 0ustar version=3 http://forge.ocamlcore.org/frs/?group_id=278 .*/camldbm-([0-9.]*)\.tar\.gz debian/compat0000644000000000000000000000000212250700055010360 0ustar 9 debian/rules0000755000000000000000000000116112250700055010241 0ustar #!/usr/bin/make -f include /usr/share/ocaml/ocamlvars.mk export OCAMLFIND_DESTDIR=debian/tmp$(OCAML_STDLIB_DIR) export OCAMLFIND_LDCONF=ignore %: dh $@ --with ocaml .PHONY: override_dh_install override_dh_install: dh_install --fail-missing -X.so.owner .PHONY: override_dh_auto_install override_dh_auto_install: mkdir -p debian/tmp$(OCAML_STDLIB_DIR) debian/tmp$(OCAML_DLL_DIR) dh_auto_install .PHONY: override_dh_auto_clean override_dh_auto_clean: touch Makefile.config dh_auto_clean rm -f Makefile.config .PHONY: override_dh_auto_configure override_dh_auto_configure: touch Makefile.config dh_auto_configure debian/libdbm-ocaml.install.in0000644000000000000000000000015112250700055013476 0ustar @OCamlDllDir@/*.so @OCamlStdlibDir@/dbm/META @OCamlStdlibDir@/dbm/*.cma DYN: @OCamlStdlibDir@/dbm/*.cmxs debian/gbp.conf0000644000000000000000000000003612250700055010600 0ustar [DEFAULT] pristine-tar = True debian/changelog0000644000000000000000000000054212250700075011037 0ustar camldbm (1.0-2) unstable; urgency=low * Fix package build on bytecode architectures * Install to $(OCAML_STDLIB_DIR)/dbm -- Stéphane Glondu Sat, 07 Dec 2013 21:01:17 +0100 camldbm (1.0-1) unstable; urgency=low * Initial release (Closes: #731598) -- Stéphane Glondu Sat, 07 Dec 2013 15:05:21 +0100 debian/patches/0000755000000000000000000000000012250700075010613 5ustar debian/patches/0001-Improve-Makefile.patch0000644000000000000000000000415412250700075015352 0ustar From: Stephane Glondu Date: Sat, 7 Dec 2013 20:49:16 +0100 Subject: Improve Makefile * fix build when ocamlopt is missing * simplify installation (and its customization) with ocamlfind * install dbm.cmx * do not fail if Makefile.config is missing --- Makefile | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 8c42364..1b329fb 100644 --- a/Makefile +++ b/Makefile @@ -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:: - if test -f dllcamldbm.$(SO); then cp dllcamldbm.$(SO) $(STUBLIBDIR)/; fi - cp libcamldbm.$(A) $(LIBDIR)/ - cd $(LIBDIR) && ranlib libcamldbm.$(A) - cp dbm.cma dbm.cmxa dbm.cmi dbm.mli $(LIBDIR)/ - cp dbm.$(A) $(LIBDIR)/ - cd $(LIBDIR) && ranlib dbm.$(A) - if test -f dbm.cmxs; then cp dbm.cmxs $(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 -- debian/patches/series0000644000000000000000000000003412250700075012025 0ustar 0001-Improve-Makefile.patch