[Pkg-ocaml-maint-commits] r4321 - in /trunk/packages/camlzip/trunk/debian: changelog control rules

gildor at users.alioth.debian.org gildor at users.alioth.debian.org
Mon Sep 3 22:36:04 UTC 2007


Author: gildor
Date: Mon Sep  3 22:36:04 2007
New Revision: 4321

URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/?sc=1&rev=4321
Log:
* Rebuild for ocaml 3.10.0
* Generate documentation

Modified:
    trunk/packages/camlzip/trunk/debian/changelog
    trunk/packages/camlzip/trunk/debian/control
    trunk/packages/camlzip/trunk/debian/rules

Modified: trunk/packages/camlzip/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/camlzip/trunk/debian/changelog?rev=4321&op=diff
==============================================================================
--- trunk/packages/camlzip/trunk/debian/changelog (original)
+++ trunk/packages/camlzip/trunk/debian/changelog Mon Sep  3 22:36:04 2007
@@ -1,3 +1,10 @@
+camlzip (1.03-5) experimental; urgency=low
+
+  * Ocamldoc documentation generation (Closes: #334284)
+  * Upgrade build-dependency to ocaml 3.10.0
+
+ -- Sylvain Le Gall <gildor at debian.org>  Tue, 04 Sep 2007 00:34:16 +0200
+
 camlzip (1.03-4) experimental; urgency=low
 
   * Rebuild for ocaml 3.10.0

Modified: trunk/packages/camlzip/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/camlzip/trunk/debian/control?rev=4321&op=diff
==============================================================================
--- trunk/packages/camlzip/trunk/debian/control (original)
+++ trunk/packages/camlzip/trunk/debian/control Mon Sep  3 22:36:04 2007
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>
 Uploaders: Sven Luther <luther at debian.org>, Stefano Zacchiroli <zack at debian.org>, Samuel Mimram <smimram at debian.org>, Sylvain Le Gall <gildor at debian.org>
-Build-Depends: debhelper (>> 5.0.0), zlib1g-dev (>> 1.1.4), ocaml-nox (>= 3.09.2), dpatch, dpkg-dev (>= 1.13.19)
+Build-Depends: debhelper (>> 5.0.0), zlib1g-dev (>> 1.1.4), ocaml-nox (>= 3.10.0), dpatch, dpkg-dev (>= 1.13.19)
 Standards-Version: 3.7.2
 XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-ocaml-maint/trunk/packages/camlzip
 XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/camlzip/trunk/

Modified: trunk/packages/camlzip/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/camlzip/trunk/debian/rules?rev=4321&op=diff
==============================================================================
--- trunk/packages/camlzip/trunk/debian/rules (original)
+++ trunk/packages/camlzip/trunk/debian/rules Mon Sep  3 22:36:04 2007
@@ -8,6 +8,7 @@
 OCAMLABI := $(shell ocamlc -version)
 OFILES := $(patsubst %.in,%,$(shell ls debian/*.in))
 INSTALLDIR := $(CURDIR)/debian/tmp/$(shell ocamlc -where)/zip
+OCAML_LIBDIR=$(shell ocamlc -where)
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -60,6 +61,21 @@
 	dh_testdir -s
 	dh_testroot -s
 	dh_install -s --sourcedir=debian/tmp --list-missing
+	# Doc generation (TODO: use CDBS)
+	OCAMLDOC_PKG="libzip-ocaml-dev"; \
+	OCAMLDOC_INCLUDE=`for i in $$OCAMLDOC_PKG; do find debian/$$i/$(OCAML_LIBDIR)/ -type d -exec echo -I \{} \; ; done`; \
+	for i in $$OCAMLDOC_PKG; do \
+	  mkdir -p debian/$$i/usr/share/doc/$$i/html/api; \
+	  find debian/$$i/$(OCAML_LIBDIR)/ \
+  	    -type f -name '*.mli' \
+	    | xargs ocamldoc \
+	     -stars -m A -no-custom-tags $$OCAMLDOC_INCLUDE -html \
+	     -d debian/$$i/usr/share/doc/$$i/html/api \
+            || true; \
+	    sed -e "s/@PACKAGE@/$$i/g" \
+	     /usr/share/cdbs/1/class/ocaml-docbase-template.txt \
+	     > debian/$$i.doc-base.ocamldoc-apiref ; \
+	done
 	dh_installdocs -s
 	dh_installexamples -s
 	dh_installmenu -s




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