[Pkg-ocaml-maint-commits] [SCM] obus packaging branch, master, updated. debian/1.0.rc1-2-9-g1910a09

Nicolas Dandrimont Nicolas.Dandrimont at crans.org
Sun Apr 24 18:17:41 UTC 2011


The following commit has been merged in the master branch:
commit 6b056b4588874bd25b476a945c7d98c13d68e173
Author: Nicolas Dandrimont <Nicolas.Dandrimont at crans.org>
Date:   Tue Apr 19 12:24:31 2011 +0200

    Sync debian/rules with new upstream release

diff --git a/debian/rules b/debian/rules
index 4104348..31a515c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,24 +3,37 @@
 include /usr/share/ocaml/ocamlvars.mk
 
 export OCAMLFIND_DESTDIR=$(CURDIR)/debian/tmp/$(OCAML_STDLIB_DIR)
+DESTDIR=$(CURDIR)/debian/tmp
 
 %:
 	dh --with ocaml $@
 
-.PHONY: override_dh_installchangelogs
-override_dh_installchangelogs:
-	dh_installchangelogs CHANGES.darcs
+.PHONY: override_dh_auto_configure
+override_dh_auto_configure:
+	ocaml setup.ml -configure --prefix /usr --destdir '$(DESTDIR)' --docdir /usr/share/doc/libobus-ocaml-dev
+
+.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:
-	install -d $(OCAMLFIND_DESTDIR)
-	install -d $(CURDIR)/debian/tmp/$(OCAML_DLL_DIR)
-	install -d $(CURDIR)/debian/tmp/usr/bin
-	make PREFIX=$(CURDIR)/debian/tmp/usr install
+	mkdir -p '$(OCAMLFIND_DESTDIR)'
+	ocaml setup.ml -install
 
-.PHONY: override_dh_auto_build
-override_dh_auto_build:
-	make \
-	  OC="ocamlbuild -classic-display -byte-plugin" \
-	  all
-	make doc
+.PHONY: override_dh_install
+override_dh_install:
+	dh_install --fail-missing
+
+.PHONY: override_dh_auto_clean
+override_dh_auto_clean:
+	ocaml setup.ml -distclean
+
+.PHONY: override_dh_installchangelogs
+override_dh_installchangelogs:
+	dh_installchangelogs CHANGES.darcs

-- 
obus packaging



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