[Pkg-ocaml-maint-commits] [SCM] coq packaging branch, master, updated. debian/8.2.rc2+dfsg-3-7-g1613f8f

Samuel Mimram smimram at debian.org
Thu Feb 19 12:58:27 UTC 2009


The following commit has been merged in the master branch:
commit f7023be031c602762b765bb8a7cec32d9bafcb6c
Author: Samuel Mimram <smimram at debian.org>
Date:   Thu Feb 19 13:28:17 2009 +0100

    Use variables from dh-ocaml in rules.

diff --git a/debian/changelog b/debian/changelog
index 3820432..d2fd875 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,12 @@
 coq (8.2-1+dfsg-1) UNRELEASED; urgency=low
 
+  [ Stephane Glondu ]
   * New Upstream Version
 
- -- Stephane Glondu <steph at glondu.net>  Thu, 19 Feb 2009 13:13:31 +0100
+  [ Samuel Mimram ]
+  * Use variables from dh-ocaml in rules.
+
+ -- Samuel Mimram <smimram at debian.org>  Thu, 19 Feb 2009 13:27:14 +0100
 
 coq (8.2~rc2+dfsg-3) experimental; urgency=low
 
diff --git a/debian/control b/debian/control
index 7e82c7e..1f0ec10 100644
--- a/debian/control
+++ b/debian/control
@@ -14,6 +14,7 @@ Build-Depends:
  debhelper (>= 7),
  dpkg-dev (>= 1.13.19),
  dpatch,
+ dh-ocaml (>= 0.2),
  ocaml-nox,
  ocaml-best-compilers,
  camlp5,
diff --git a/debian/coq.dirs.in b/debian/coq.dirs.in
index 20f8dc0..7642db5 100644
--- a/debian/coq.dirs.in
+++ b/debian/coq.dirs.in
@@ -3,4 +3,4 @@ usr/lib/coq/contrib/micromega
 usr/share/man/man1
 usr/share/pixmaps
 usr/share/texmf/tex/latex/misc
-usr/lib/ocaml/@OCamlABI@/stublibs
+ at OCamlDllDir@
diff --git a/debian/coq.install.in b/debian/coq.install.in
index 220680e..4e9eb49 100644
--- a/debian/coq.install.in
+++ b/debian/coq.install.in
@@ -24,5 +24,5 @@ usr/share/man/man1/coq-tex*
 usr/share/man/man1/coqtop*
 usr/share/man/man1/coqwc*
 usr/share/man/man1/gallina*
-usr/lib/coq/dllcoqrun.so usr/lib/ocaml/@OCamlABI@/stublibs
+usr/lib/coq/dllcoqrun.so @OCamlDllDir@
 usr/share/emacs/site-lisp/coqdoc.sty usr/share/texmf/tex/latex/misc/
diff --git a/debian/rules b/debian/rules
index 4c135a3..ffac84a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,6 +16,7 @@ export VERBOSE=1
 
 # We want to use dpatch
 include /usr/share/dpatch/dpatch.make
+include /usr/share/ocaml/ocamlvars.mk
 
 HTMLDOC := doc/stdlib/html/index.html
 
@@ -25,22 +26,20 @@ ADDPREF := COQINSTALLPREFIX=$(COQPREF)
 PACKAGES := $(shell awk '/Package:/{print $$2}' debian/control)
 
 OFILES := $(patsubst %.in,%,$(wildcard debian/*.in))
-OCAMLABI := $(shell ocamlc -version)
 
 # Beware: -1 is part of upstream version
 COQVERSION := 8.2-1
 
-COQABI := $(COQVERSION)+$(OCAMLABI)
+COQ_ABI := $(COQVERSION)+$(OCAML_ABI)
 
 CONFIGUREOPTS := --arch Linux --prefix /usr --mandir /usr/share/man \
   --emacslib /usr/share/emacs/site-lisp/coq --reals all --fsets all \
   --browser "/usr/bin/x-www-browser %s &" \
   --with-doc no --coqrunbyteflags "-dllib -lcoqrun"
 
-OCAMLINITSED := -e 's/@OCamlABI@/$(OCAMLABI)/g' -e '/^\#/d'
-OCAMLOPT := $(wildcard /usr/bin/ocamlopt*)
+OCAMLINITSED := -e 's/@OCamlDllDir@/$(OCAML_DLL_DIR)/g' -e  -e '/^\#/d'
 
-ifneq ($(OCAMLOPT),)
+ifneq ($(OCAML_OPT_ARCH),)
   # CONFIGUREOPTS += -opt
   OCAMLINITSED += -e 's/^OPT: //'
 else
@@ -84,11 +83,11 @@ install-stamp: build-stamp
 	cp debian/coq.xpm debian/coqide/usr/share/pixmaps/coqide.xpm
 	cp debian/coqide.desktop debian/coqide/usr/share/applications
 	cp -r doc/stdlib/html debian/coq-theories/usr/share/doc/coq-theories/
-	echo "$(COQABI)" > debian/coq/usr/lib/coq/abi
+	echo "$(COQ_ABI)" > debian/coq/usr/lib/coq/abi
 	dh install --after dh_install
 	for u in $(PACKAGES); do \
-	  echo 'F:OCamlABI=$(OCAMLABI)' >> debian/$$u.substvars; \
-	  echo 'F:CoqABI=$(COQABI)' >> debian/$$u.substvars; \
+	  echo 'F:OCamlABI=$(OCAML_ABI)' >> debian/$$u.substvars; \
+	  echo 'F:CoqABI=$(COQ_ABI)' >> debian/$$u.substvars; \
 	done
 	touch $@
 

-- 
coq packaging



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