summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog3
-rw-r--r--debian/coq.dirs.in1
-rw-r--r--debian/coqvars.mk12
-rwxr-xr-xdebian/rules1
4 files changed, 16 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index d2fd8752..9bf26525 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,8 +5,9 @@ coq (8.2-1+dfsg-1) UNRELEASED; urgency=low
[ Samuel Mimram ]
* Use variables from dh-ocaml in rules.
+ * Added coqvars.mk helper for coq-related packages.
- -- Samuel Mimram <smimram@debian.org> Thu, 19 Feb 2009 13:27:14 +0100
+ -- Samuel Mimram <smimram@debian.org> Thu, 19 Feb 2009 13:54:38 +0100
coq (8.2~rc2+dfsg-3) experimental; urgency=low
diff --git a/debian/coq.dirs.in b/debian/coq.dirs.in
index 7642db56..5c2ef467 100644
--- a/debian/coq.dirs.in
+++ b/debian/coq.dirs.in
@@ -1,5 +1,6 @@
usr/bin
usr/lib/coq/contrib/micromega
+usr/share/coq
usr/share/man/man1
usr/share/pixmaps
usr/share/texmf/tex/latex/misc
diff --git a/debian/coqvars.mk b/debian/coqvars.mk
new file mode 100644
index 00000000..3cf8fe08
--- /dev/null
+++ b/debian/coqvars.mk
@@ -0,0 +1,12 @@
+# Current coq version
+COQ_VERSION ?= $(shell /usr/bin/coqc --version | grep version | sed 's/^.*version \(.*\) ([^)]*)$/\1/')
+
+# Current coq ABI
+COQ_ABI ?= $(shell cat /usr/lib/coq/abi)
+
+# Standard library path
+COQ_STDLIB_DIR ?= $(shell /usr/bin/coqc -where)
+
+# Directory for contributions
+# External libraries should go there
+COQ_USERCONTRIB_DIR ?= $(COQ_STDLIB_DIR)/user-contrib
diff --git a/debian/rules b/debian/rules
index ffac84ad..bf3d4cbb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -84,6 +84,7 @@ install-stamp: build-stamp
cp debian/coqide.desktop debian/coqide/usr/share/applications
cp -r doc/stdlib/html debian/coq-theories/usr/share/doc/coq-theories/
echo "$(COQ_ABI)" > debian/coq/usr/lib/coq/abi
+ cp debian/coqvars.mk debian/coq/usr/share/coq/
dh install --after dh_install
for u in $(PACKAGES); do \
echo 'F:OCamlABI=$(OCAML_ABI)' >> debian/$$u.substvars; \