[Pkg-ocaml-maint-commits] [SCM] ocaml-bitmatch packaging branch, master, updated. debian/1.9.7-2-6-g5c8e33c

Sylvain Le Gall gildor at debian.org
Mon Jun 29 09:53:20 UTC 2009


The following commit has been merged in the master branch:
commit 5c8e33cc76df14c2f61510c7aeb5fe4895b88aa4
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Mon Jun 29 11:46:29 2009 +0200

    Create libbitstring-ocaml package

diff --git a/debian/control b/debian/control
index fd71cda..ad370c4 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,7 @@ Homepage: http://code.google.com/p/bitstring/
 Package: libbitstring-ocaml-dev
 Architecture: any
 Section: libdevel
-Depends: ocaml-base-${F:OCamlABI}, ${misc:Depends}
+Depends: ocaml-nox-${F:OCamlABI}, ${misc:Depends}, libbitstring-ocaml (= ${binary:Version})
 Recommends: camlp4
 Description: Erlang-style bitstrings for OCaml
  Bitstring adds Erlang-style bitstrings and matching over bitstrings as a syntax
@@ -33,3 +33,23 @@ Description: Erlang-style bitstrings for OCaml
  .
  This package contains header and OCaml library.
 
+Package: libbitstring-ocaml
+Architecture: any
+Section: libdevel
+Depends: ocaml-base-nox-${F:OCamlABI}, ${misc:Depends}, ${shlibs:Depends}
+Recommends: camlp4
+Description: Erlang-style bitstrings for OCaml
+ Bitstring adds Erlang-style bitstrings and matching over bitstrings as a syntax
+ extension and library for OCaml.
+ .
+ You can use this module to both parse and generate binary formats, files and
+ protocols.
+ .
+ Bitstring handling is added as primitives to the language, making it simple to
+ use. 
+ .
+ Bitstring handles integers, strings, sub-bitstrings, big-, little- and
+ native-endianness, signed and unsigned types, variable-width fields, fields
+ with arbitrary bit alignment.
+ .
+ This package contains only the shared runtime stub libraries.
diff --git a/debian/libbitstring-ocaml.dirs.in b/debian/libbitstring-ocaml.dirs.in
new file mode 100644
index 0000000..a8131b4
--- /dev/null
+++ b/debian/libbitstring-ocaml.dirs.in
@@ -0,0 +1 @@
+ at OCamlDllDir@
diff --git a/debian/rules b/debian/rules
index 0ab615e..267014c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,10 +23,11 @@ include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/class/ocaml.mk
 
 DESTDIR_DEV=$(CURDIR)/debian/libbitstring-ocaml-dev
+DESTDIR=$(CURDIR)/debian/libbitstring-ocaml
 
 DEB_MAKE_CLEAN_TARGET    := distclean
-DEB_MAKE_BUILD_TARGET    := all 
-DEB_MAKE_INSTALL_TARGET  := install 
+DEB_MAKE_BUILD_TARGET    := all
+DEB_MAKE_INSTALL_TARGET  := install
 DEB_MAKE_INSTALL_TARGET  += OCAMLFIND_DESTDIR="$(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)" OCAMLFIND_LDCONF=ignore
 
 OCAML_OCAMLDOC_PACKAGES = libbitstring-ocaml-dev
@@ -39,3 +40,7 @@ build/libbitstring-ocaml-dev::
 clean::
 	-$(RM) '$(CURDIR)/debian/libbitstring-ocaml-dev.dirs'
 	-$(RM) '$(CURDIR)/cil-tools/Makefile'
+
+install/libbitstring-ocaml-dev::
+	mv $(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)/bitstring/*.so \
+	  '$(DESTDIR)/$(OCAML_DLL_DIR)'

-- 
ocaml-bitmatch packaging



More information about the Pkg-ocaml-maint-commits mailing list