[Pkg-ocaml-maint-commits] [SCM] ledit packaging branch, master, updated. debian/2.01-3-5-gaa282cf

Stephane Glondu steph at glondu.net
Thu Jul 2 08:00:11 UTC 2009


The following commit has been merged in the master branch:
commit aa282cfd09827c38e2c1e8072143c9370e1f6031
Author: Stephane Glondu <steph at glondu.net>
Date:   Thu Jul 2 09:43:29 2009 +0200

    Generate API documentation and install *.mli files

diff --git a/debian/changelog b/debian/changelog
index 6502368..cf6b602 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ ledit (2.01-4) unstable; urgency=low
     - move libledit-ocaml-dev to section ocaml
     - add Homepage field
     - add versioned dependency to camlp5 to ease OCaml 3.11.1 transition
+  * Generate API documentation and install ledit.mli and cursor.mli
 
  -- Stephane Glondu <steph at glondu.net>  Thu, 02 Jul 2009 09:17:01 +0200
 
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..12ec2d4
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+debian/libledit-ocaml-dev.doc-base.ocamldoc-apiref
diff --git a/debian/libledit-ocaml-dev.install.in b/debian/libledit-ocaml-dev.install.in
new file mode 100644
index 0000000..01d7459
--- /dev/null
+++ b/debian/libledit-ocaml-dev.install.in
@@ -0,0 +1,2 @@
+ledit.mli     @OCamlStdlibDir@/ledit
+cursor.mli    @OCamlStdlibDir@/ledit
diff --git a/debian/rules b/debian/rules
index 8d6c787..bccc217 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,11 @@
 #!/usr/bin/make -f
 
-include /usr/share/ocaml/ocamlvars.mk
+include /usr/share/ocaml/ocamlinit.mk
 include /usr/share/dpatch/dpatch.make
 
 DESTDIR = $(CURDIR)/debian/ledit
 LEDIT_LIBDIR = $(CURDIR)/debian/libledit-ocaml-dev/$(OCAML_STDLIB_DIR)/ledit
+LEDIT_APIDOCDIR = $(CURDIR)/debian/libledit-ocaml-dev/usr/share/doc/libledit-ocaml-dev/html/api
 
 #export DH_VERBOSE=1
 
@@ -13,14 +14,14 @@ configure-stamp:
 	dh_testdir
 	touch configure-stamp
 
-build: configure-stamp build-stamp
+build: configure-stamp build-stamp ocamlinit-stamp
 build-stamp: patch-stamp
 	dh_testdir
 	$(MAKE)
 	if [ $(OCAML_OPT_ARCH) ]; then $(MAKE) opt; fi
 	touch build-stamp
 
-clean:  unpatch
+clean:  unpatch ocamlinit-clean
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp configure-stamp
@@ -43,6 +44,10 @@ install-arch: build
 	dh_installdirs -s
 	mkdir -p $(LEDIT_LIBDIR)
 	$(MAKE) install-lib LIBDIR=$(LEDIT_LIBDIR)
+	dh_install -s
+	mkdir -p $(LEDIT_APIDOCDIR)
+	ocamldoc -I `camlp5 -where` -pp "camlp5r -I ext" *.mli -html -d $(LEDIT_APIDOCDIR)
+	/usr/share/ocaml/ocamldoc-api-ref-config --doc-base-generate libledit-ocaml-dev
 
 binary-indep: build install-indep
 	dh_testdir -i

-- 
ledit packaging



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