[fenix] 92/127: Use debhelper override rules.

Peter Pentchev roam at ringlet.net
Thu Dec 17 14:39:38 UTC 2015


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

roam-guest pushed a commit to branch master
in repository fenix.

commit 465e5e1d463f451af647aeb52b83227baa546e48
Author: Peter Pentchev <roam at ringlet.net>
Date:   Thu Nov 25 23:06:37 2010 +0000

    Use debhelper override rules.
---
 debian/changelog |  1 +
 debian/control   |  2 +-
 debian/rules     | 38 +++++++++++++++-----------------------
 3 files changed, 17 insertions(+), 24 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 80ee1fd..0bb023a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,7 @@ fenix (0.92a.dfsg1-6) UNRELEASED; urgency=low
   * Bump the debhelper compatibility level to 7:
     - shorten the rules file using the dh(1) helper
     - use "dh --with autotools_dev" to handle config.guess and config.sub
+    - use debhelper override rules
 
  -- Peter Pentchev <roam at ringlet.net>  Thu, 25 Nov 2010 13:25:18 +0200
 
diff --git a/debian/control b/debian/control
index 3aeeabd..397f999 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: devel
 Priority: extra
 Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
 Uploaders: Miriam Ruiz <little_miry at yahoo.es>, Barry deFreese <bdefreese at debian.org>
-Build-Depends: dpkg-dev (>= 1.13.19), debhelper (>= 7.0.8), autotools-dev (>= 20100122.1~),
+Build-Depends: dpkg-dev (>= 1.13.19), debhelper (>= 7.0.50~), autotools-dev (>= 20100122.1~),
  libsdl1.2-dev, libsdl-mixer1.2-dev, zlib1g-dev, libgif-dev, libpng12-dev,
  libsmpeg-dev, libmikmod2-dev, libvorbis-dev
 Standards-Version: 3.9.1
diff --git a/debian/rules b/debian/rules
index 6f2be99..eb186be 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,9 +16,7 @@ endif
 
 CFLAGS += -DUSE_GETTEXT
 
-build: build-stamp
-build-stamp:  configure
-	dh build --before auto_configure --with autotools_dev
+override_dh_auto_configure:
 	chmod +x configure
 	dh_auto_configure -- \
 		--enable-fxc \
@@ -28,20 +26,16 @@ build-stamp:  configure
 		--enable-dependency-tracking \
 		CFLAGS="$(CFLAGS)" \
 		LDFLAGS="-Wl,-z,defs"
-	dh build --before auto_build
+
+override_dh_auto_build:
 	dh_auto_build -- CFLAGS="$(CFLAGS)"
 	$(MAKE) -C debian/i18n
-	dh build --remaining
-	touch $@
 
-clean:
-	dh clean --before auto_clean
+override_dh_auto_clean:
 	dh_auto_clean
 	$(MAKE) -C debian/i18n clean
-	dh clean --remaining --with autotools_dev
 
-install: build
-	dh $@ --before auto_install
+override_dh_auto_install:
 	dh_auto_install
 	cd $(CURDIR)/debian/tmp/usr/bin/ && \
 		for f in *; do \
@@ -50,22 +44,20 @@ install: build
 	$(MAKE) -C debian/i18n install INSTALLPREFIX=$(CURDIR)/debian/tmp/usr/share/locale/
 	cp debian/fenix.sh $(CURDIR)/debian/tmp/usr/bin/fenix
 	chmod +x $(CURDIR)/debian/tmp/usr/bin/fenix
+
+override_dh_install:
 	dh_install
 	cd $(CURDIR)/debian/fenix-dev && patch -p1 < $(CURDIR)/debian/patches/headers.patch
+
+override_dh_installdocs:
 	dh_installdocs --exclude=license.txt --exclude=authors.txt
+
+override_dh_installchangelogs:
 	dh_installchangelogs NEWS
-	dh $@ --before compress
+
+override_dh_compress:
 	for i in debian/fenix/usr/share/doc/fenix/*.txt; do gzip $$i; done
 	dh_compress
-	dh $@ --remaining
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh $@
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh $@
 
 get-orig-source:
 	dh_testdir
@@ -77,5 +69,5 @@ get-orig-source:
 	tar cvfz ../fenix_0.92a.dfsg1.orig.tar.gz Fenix/*
 	rm -rf Fenix fenix092a-src-release.tgz
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install get-orig-source
+%:
+	dh $@ --with autotools_dev

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



More information about the Pkg-games-commits mailing list