[libmatio] 06/13: d/rules: migrate from cdbs to dh.

Sébastien Villemot sebastien at debian.org
Sat Jan 16 20:42:18 UTC 2016


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

sebastien pushed a commit to branch master
in repository libmatio.

commit ff0c3f4c84f6092d25b865c1032ceadfb9d0c9bb
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Fri Jan 15 18:39:40 2016 +0100

    d/rules: migrate from cdbs to dh.
---
 debian/control |  2 +-
 debian/rules   | 29 +++++++++++++++++------------
 2 files changed, 18 insertions(+), 13 deletions(-)

diff --git a/debian/control b/debian/control
index e303948..be7bdaf 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: libs
 Priority: optional
 Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
 Uploaders: Sébastien Villemot <sebastien at debian.org>
-Build-Depends: debhelper (>= 9), autotools-dev, libtool, cdbs (>= 0.4.93~),
+Build-Depends: debhelper (>= 9), autotools-dev, libtool,
  zlib1g-dev, texinfo, automake, texlive, libhdf5-dev, dh-autoreconf
 Standards-Version: 3.9.5
 Homepage: http://sourceforge.net/projects/matio
diff --git a/debian/rules b/debian/rules
index 150aa38..b41563f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,6 @@
 #!/usr/bin/make -f
 
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/autotools.mk
-include /usr/share/cdbs/1/rules/autoreconf.mk
+include /usr/share/dpkg/default.mk
 
 ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial/libhdf5.so),)
   WITH_HDF5:=--with-hdf5=/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
@@ -10,15 +8,22 @@ else
   WITH_HDF5:=--with-hdf5
 endif
 
-DEB_CONFIGURE_NORMAL_ARGS += --enable-shared $(WITH_HDF5) --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
-DEB_MAKE_BUILD_TARGET     := libmatio_la_LIBADD="\$$(ZLIB_LIBS) \$$(HDF5_LIBS)"
-DEB_COMPRESS_EXCLUDE := .pdf
+%:
+	dh $@ --parallel --with autoreconf
 
-install/libmatio-doc::
-	(cd documentation/; make pdf)
+override_dh_auto_configure:
+	dh_auto_configure -- $(WITH_HDF5)
 
-clean::
-	rm -f documentation/matio_user_guide.pdf test/atconfig
+override_dh_auto_build:
+	dh_auto_build
+	make -C documentation pdf
 
-get-orig-source:
-	-uscan --upstream-version=0 --rename
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f documentation/matio_user_guide.pdf test/atconfig test/package.m4 test/testsuite
+
+override_dh_compress:
+	dh_compress -X.pdf
+
+override_dh_strip:
+	dh_strip --dbg-package=libmatio2-dbg

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libmatio.git



More information about the debian-science-commits mailing list