[Pkg-ocaml-maint-commits] [janest-core] 06/08: Generate API documentation using dh_ocamldoc(1)

Hilko Bengen bengen at moszumanska.debian.org
Mon Jan 4 23:26:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/113.00.00-1
in repository janest-core.

commit 575c38a5c5cb54a58b92c24d05ea91ff5ed25fac
Author: Hilko Bengen <bengen at debian.org>
Date:   Mon Jan 4 23:24:46 2016 +0100

    Generate API documentation using dh_ocamldoc(1)
---
 debian/libcore-ocaml-dev.ocamldoc | 37 +++++++++++++++++++++++++++++++++++++
 debian/libcore-ocaml-doc.install  |  1 -
 debian/rules                      | 15 +++++++--------
 3 files changed, 44 insertions(+), 9 deletions(-)

diff --git a/debian/libcore-ocaml-dev.ocamldoc b/debian/libcore-ocaml-dev.ocamldoc
new file mode 100644
index 0000000..9659a0f
--- /dev/null
+++ b/debian/libcore-ocaml-dev.ocamldoc
@@ -0,0 +1,37 @@
+-I _build/src
+-ppopt -Isrc/
+-thread
+-syntax camlp4o
+-package variantslib.syntax
+-package variantslib
+-package unix
+-package typerep_lib.syntax
+-package typerep_lib
+-package threads
+-package sexplib_unix
+-package sexplib.syntax
+-package sexplib
+-package pa_test.syntax
+-package pa_test
+-package pa_structural_sexp.syntax
+-package pa_structural_sexp
+-package pa_pipebang
+-package pa_ounit.syntax
+-package pa_ounit
+-package pa_bench.syntax
+-package pa_bench
+-package herelib.syntax
+-package herelib
+-package fieldslib.syntax
+-package fieldslib
+-package enumerate.syntax
+-package custom_printf.syntax
+-package custom_printf
+-package core_kernel
+-package comparelib.syntax
+-package bin_prot.syntax
+-package bin_prot
+-package bigarray
+-package compiler-libs
+-package camlp4.macro
+-ppopt -pa-ounit-lib -ppopt core
diff --git a/debian/libcore-ocaml-doc.install b/debian/libcore-ocaml-doc.install
deleted file mode 100644
index 99046ce..0000000
--- a/debian/libcore-ocaml-doc.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/share/doc/libcore-ocaml-doc
diff --git a/debian/rules b/debian/rules
index 135af7b..4141af2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,30 +11,29 @@ export OCAMLFIND_DESTDIR=$(DESTDIR)/$(OCAML_STDLIB_DIR)
 %:
 	dh $@ --with ocaml
 
-.PHONY: override_dh_auto_configure
 override_dh_auto_configure:
-	ocaml setup.ml -configure --prefix /usr --destdir '$(DESTDIR)' --docdir /usr/share/doc/libcore-ocaml-doc/html/api
+	ocaml setup.ml -configure --prefix /usr --destdir '$(DESTDIR)'
 
-.PHONY: override_dh_auto_build
 override_dh_auto_build:
 	ocaml setup.ml -build
-	ocaml setup.ml -doc
 
-.PHONY: override_dh_auto_test
 override_dh_auto_test:
 	ocaml setup.ml -test
 
-.PHONY: override_dh_auto_install
 override_dh_auto_install:
 	mkdir -p '$(OCAMLFIND_DESTDIR)'
 	mkdir -p '$(DESTDIR)$(OCAML_DLL_DIR)'
 	ocaml setup.ml -install
 	rm -f '$(DESTDIR)$(OCAML_DLL_DIR)'/*.so.owner
 
-.PHONY: override_dh_auto_clean
 override_dh_auto_clean:
 	ocaml setup.ml -distclean
 
-.PHONY: override_dh_install
 override_dh_install:
 	dh_install --fail-missing
+
+override_dh_ocamldoc:
+	dh_ocamldoc
+	mkdir -p debian/libcore-ocaml-dev/usr/share/doc/libcore-ocaml-doc
+	mv debian/libcore-ocaml-dev/usr/share/doc/libcore-ocaml-dev/html \
+	   debian/libcore-ocaml-dev/usr/share/doc/libcore-ocaml-doc/html

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/janest-core.git



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