[Pkg-ocaml-maint-commits] [SCM] facile packaging branch, master, updated. debian/1.1-6.3-16-gd7a5c08

Mehdi Dogguy mehdi at debian.org
Tue Oct 6 12:06:39 UTC 2009


The following commit has been merged in the master branch:
commit d7a5c0867774fff44059a0d17e2ff9aadeb312e7
Author: Mehdi Dogguy <mehdi at debian.org>
Date:   Tue Oct 6 14:04:09 2009 +0200

    Add a META for libfacile-ocaml-dev (Closes: #443005)

diff --git a/debian/META.in b/debian/META.in
new file mode 100644
index 0000000..01cc203
--- /dev/null
+++ b/debian/META.in
@@ -0,0 +1,6 @@
+name="facile"
+version="@VERSION@"
+description="functional constraint library implemented in Objective Caml"
+requires=""
+archive(byte)="facile.cma"
+archive(native)="facile.cmxa"
diff --git a/debian/changelog b/debian/changelog
index 2fdad57..df7b401 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,7 @@ facile (1.1-7) UNRELEASED; urgency=low
   * Bump Standards-Version to 3.8.3
     + add a README.source
   * Move libfacile-ocaml-dev to section ocaml
+  * Add a META for libfacile-ocaml-dev (Closes: #443005)
 
  -- Mehdi Dogguy <mehdi at debian.org>  Tue, 06 Oct 2009 13:22:47 +0200
 
diff --git a/debian/libfacile-ocaml-dev.install.in b/debian/libfacile-ocaml-dev.install.in
new file mode 100644
index 0000000..5e4533a
--- /dev/null
+++ b/debian/libfacile-ocaml-dev.install.in
@@ -0,0 +1 @@
+META	@OCamlStdlibDir@/facile/
diff --git a/debian/rules b/debian/rules
index 446f59f..c84d1b2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,7 @@ include /usr/share/cdbs/1/class/makefile.mk
 include /usr/share/cdbs/1/rules/ocaml.mk
 
 FACILEDIR := $(shell ocamlc -where)/facile
+VERSION := $(shell head -n1 debian/changelog | awk -F'[ ()-]+' '{print $$2}')
 DEB_INSTALL_DIRS_ALL += $(FACILEDIR)
 DEB_MAKE_INVOKE += OCAMLC="ocamlc -g" OCAMLMLI=ocamlc
 DEB_MAKE_INSTALL_TARGET := install
@@ -15,6 +16,7 @@ common-configure-arch common-configure-indep:: common-configure-impl
 common-configure-impl:: config_Makefile
 config_Makefile:
 	./configure --faciledir debian/libfacile-ocaml-dev/$(FACILEDIR)
+	sed 's/@VERSION@/$(VERSION)/' debian/META.in > $(CURDIR)/META
 
 clean::
 	# not cleaned upstream

-- 
facile packaging



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