[heroes-data] 04/12: Switch to dh 9.

Stephen Kitt skitt at moszumanska.debian.org
Mon Jan 18 12:59:59 UTC 2016


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

skitt pushed a commit to branch master
in repository heroes-data.

commit ef1e7042d00b92e115d7ea5c0cbb65528f2b0b9b
Author: Stephen Kitt <steve at sk2.org>
Date:   Mon Jan 18 13:41:01 2016 +0100

    Switch to dh 9.
---
 debian/changelog |  2 ++
 debian/compat    |  1 +
 debian/control   |  3 ++-
 debian/rules     | 40 +++++-----------------------------------
 4 files changed, 10 insertions(+), 36 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 759534f..3dc5a32 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 heroes-data (1.5-3) UNRELEASED; urgency=medium
 
   * New maintainer (closes: #738895).
+  * Switch to debhelper compatibility level 9, using dh (closes:
+    #800292).
 
  -- Stephen Kitt <skitt at debian.org>  Mon, 18 Jan 2016 13:22:14 +0100
 
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
index 44455d6..50a0f0e 100644
--- a/debian/control
+++ b/debian/control
@@ -3,12 +3,13 @@ Section: games
 Priority: optional
 Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
 Uploaders: Stephen Kitt <skitt at debian.org>
-Build-Depends-Indep: debhelper
+Build-Depends-Indep: debhelper (>= 9), dh-autoreconf
 Standards-Version: 3.1.0
 
 Package: heroes-data
 Architecture: all
 Recommends: heroes-common
+Depends: ${misc:Depends}
 Conflicts: heroes (<< 0.6-0pre3)
 Replaces: heroes (<< 0.6-0pre3)
 Description: Required data files for heroes
diff --git a/debian/rules b/debian/rules
index 88bef6b..047a701 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,38 +1,8 @@
 #!/usr/bin/make -f
 
-export DH_COMPAT=1
+%:
+	dh $@ --with autoreconf
 
-build-stamp:
-	./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --datadir=\$${prefix}/share/games --bindir=\$${prefix}/games
-	touch build-stamp
-
-build: build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp
-	-$(MAKE) distclean
-	dh_clean
-
-binary-arch:
-
-binary-indep: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-
-	$(MAKE) install prefix=`pwd`/debian/tmp/usr
-
-	dh_installdocs
-	dh_installchangelogs ChangeLog
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep
-.PHONY: build clean binary-arch binary-indep binary
+override_dh_auto_configure:
+# For backwards-compatibility (for now)
+	dh_auto_configure -- --datadir=/usr/share/games

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/heroes-data.git



More information about the Pkg-games-commits mailing list