[heroes-sound-effects] 03/08: Switch to dh 9.

Stephen Kitt skitt at moszumanska.debian.org
Mon Jan 18 19:48:02 UTC 2016


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

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

commit 7f850044f11e0ca4c87c951fe9f7c2eb840c2f3b
Author: Stephen Kitt <steve at sk2.org>
Date:   Mon Jan 18 20:39:29 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 adc72f2..68681cb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 heroes-sound-effects (1.0-5) UNRELEASED; urgency=medium
 
   * New maintainer (closes: #738896).
+  * Switch to debhelper compatibility level 9, using dh (closes:
+    #800290).
 
  -- Stephen Kitt <skitt at debian.org>  Mon, 18 Jan 2016 19:46:41 +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 943ea08..0f753f0 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,7 @@
 Source: heroes-sound-effects
 Section: games
 Priority: optional
-Build-Depends-Indep: debhelper
+Build-Depends-Indep: debhelper (>= 9), dh-autoreconf
 Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
 Uploaders: Stephen Kitt <skitt at debian.org>
 Standards-Version: 3.0.1
@@ -9,6 +9,7 @@ Standards-Version: 3.0.1
 Package: heroes-sound-effects
 Architecture: all
 Recommends: heroes
+Depends: ${misc:Depends}
 Conflicts: heroes (<< 0.6-0pre3)
 Replaces: heroes (<< 0.6-0pre3)
 Description: Optional sound 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-sound-effects.git



More information about the Pkg-games-commits mailing list