[Pkg-ocaml-maint-commits] [SCM] janest-core packaging branch, master, updated. debian/0.5.3-1-42-g1b9df77
Stefano Zacchiroli
zack at upsilon.cc
Fri Nov 13 10:50:07 UTC 2009
The following commit has been merged in the master branch:
commit 2af2a280bf245f6823d4966dabc671c6d7ddbc98
Author: Stefano Zacchiroli <zack at upsilon.cc>
Date: Fri Nov 13 11:06:13 2009 +0100
fix no fakeroot error, dep must be: binary-indep to install-arch
diff --git a/debian/rules b/debian/rules
index 7f2ffff..8d9e849 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,14 +1,22 @@
#!/usr/bin/make -f
-include /usr/share/cdbs/1/rules/patchsys-quilt.mk
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/makefile.mk
-include /usr/share/cdbs/1/rules/ocaml.mk
-
DEST_DIR = $(CURDIR)/debian/tmp
DOC_PKG = libcore-ocaml-doc
DEV_PKG = libcore-ocaml-dev
EXT_PKG = libcore-extended-ocaml-dev
+# Ensure -dev packages are installed when dh_ocamldoc is invoked on the -doc
+# package. Rationale: to avoid "dup interface" errors we should invoke
+# ocamldoc on the actually installed .mli-s (and not on lib/,extended/). The
+# dep should be binary to install (instead of build to install) to ensure when
+# arch packages are installed we are under fakeroot.
+binary/$(DOC_PKG):: ocamldoc-pp-stamp $(DEST_DIR)
+binary/$(DOC_PKG):: install-arch common-binary-post-install-arch
+
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/makefile.mk
+include /usr/share/cdbs/1/rules/ocaml.mk
+
# files that need to be pre-processed to remove #if* directives before feeding
# them into ocamldoc
PP_FILES = \
@@ -46,21 +54,3 @@ clean::
done
rm -f ocamldoc-pp-stamp
-# Move ocamldoc API ref from Core{,_extended) to -doc package.
-# Rationale: the documentation must be generated in two different stages (one
-# for Core and one for Core_extended), that's not easy with current dh_ocamldoc
-build/$(DOC_PKG):: ocamldoc-pp-stamp $(DEST_DIR)
-build/$(DOC_PKG):: install-arch common-binary-post-install-arch
-binary-install/$(DEV_PKG)::
- dh_installdirs -p$(DOC_PKG)
- mv debian/$(DEV_PKG)/usr/share/doc/$(DEV_PKG)/html/api \
- debian/$(DOC_PKG)/usr/share/doc/$(DEV_PKG)/html/api
- mv debian/$(DEV_PKG)/usr/share/doc-base/* \
- debian/$(DOC_PKG)/usr/share/doc-base/
-binary-install/$(EXT_PKG)::
- dh_installdirs -p$(DOC_PKG)
- mv debian/$(EXT_PKG)/usr/share/doc/$(EXT_PKG)/html/api \
- debian/$(DOC_PKG)/usr/share/doc/$(EXT_PKG)/html/api
- mv debian/$(EXT_PKG)/usr/share/doc-base/* \
- debian/$(DOC_PKG)/usr/share/doc-base/
-
--
janest-core packaging
More information about the Pkg-ocaml-maint-commits
mailing list