[Pkg-ocaml-maint-commits] [calendar] 07/12: Switch to dh
Stéphane Glondu
glondu at moszumanska.debian.org
Wed May 20 17:36:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
glondu pushed a commit to branch master
in repository calendar.
commit 42052b461662c9d7c7312be667de3a66f634cad4
Author: Stephane Glondu <steph at glondu.net>
Date: Tue May 19 10:23:03 2015 +0200
Switch to dh
---
debian/control | 3 +--
debian/rules | 21 ++++++++++++---------
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/debian/control b/debian/control
index d635de0..08a6c9f 100644
--- a/debian/control
+++ b/debian/control
@@ -9,8 +9,7 @@ Build-Depends:
debhelper (>= 9),
ocaml-nox (>= 4.01),
ocaml-findlib (>= 1.4),
- dh-ocaml (>= 0.9.5~),
- cdbs
+ dh-ocaml
Standards-Version: 3.9.4
Homepage: http://calendar.forge.ocamlcore.org/
Vcs-Git: git://anonscm.debian.org/pkg-ocaml-maint/packages/calendar.git
diff --git a/debian/rules b/debian/rules
index 5a321cd..0d78581 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,22 +1,25 @@
#!/usr/bin/make -f
-include /usr/share/cdbs/1/class/makefile.mk
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/ocaml.mk
+include /usr/share/ocaml/ocamlvars.mk
-PKGNAME = libcalendar-ocaml-dev
DESTDIR = $(CURDIR)/debian/tmp
-DEB_MAKE_INSTALL_TARGET = install OCAML_LIB_DIR=$(DESTDIR)/$(OCAML_STDLIB_DIR)
+export OCAMLFIND_DESTDIR = $(DESTDIR)/$(OCAML_STDLIB_DIR)
+
FILES_TO_BACKUP = .depend config.status
-configure/$(PKGNAME):: debian/configure-stamp
-debian/configure-stamp:
+%:
+ dh $@ --with ocaml
+
+override_dh_auto_configure:
for i in $(FILES_TO_BACKUP); do \
cp -xa $$i $$i.debian; \
done
./configure
- touch $@
-clean::
+override_dh_auto_install:
+ mkdir -p $(OCAMLFIND_DESTDIR)
+ make install
+
+override_dh_auto_clean:
rm -rf target/
for i in $(FILES_TO_BACKUP); do \
[ ! -f $$i.debian ] || mv $$i.debian $$i; \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/calendar.git
More information about the Pkg-ocaml-maint-commits
mailing list