[mupen64plus] 50/262: Port debian/rules to dh

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 05:59:14 UTC 2015


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

ecsv-guest pushed a commit to branch master
in repository mupen64plus.

commit 167a81cbea80669223ffec36fa212855f2bb2bad
Author: Sven Eckelmann <sven.eckelmann at gmx.de>
Date:   Wed Jun 3 00:57:06 2009 +0200

    Port debian/rules to dh
---
 debian/changelog |  5 +----
 debian/control   |  2 +-
 debian/rules     | 52 ++++------------------------------------------------
 3 files changed, 6 insertions(+), 53 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 88f4630..d68f4a2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,14 +18,11 @@ mupen64plus (1.5-3) UNRELEASED; urgency=low
     - Depend on libglib2.0-dev
     - Depend on libgl-dev and libglu-dev for graphics plugins
   * debian/rules:
-    - Use dh_prep instead of dh_clean -k
-    - Let dh_clean remove the toplevel stamp files
-    - Remove unused dh_* commands
+    - Port to dh
     - Remove unused configure target
     - Use quilt to patch files
     - Don't create install dirs separately
     - Create plugins dir if it doesn't exist
-    - Install files using dh_install
     - Recompress man page with maximum compression
     - Install mupen64plus to /usr/games
     - Move plugin dir to /usr/lib/mupen64plus/
diff --git a/debian/control b/debian/control
index 4d208b7..d621dc3 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Standards-Version: 3.8.1
 Homepage: http://code.google.com/p/mupen64plus/
 Vcs-Browser: http://git.debian.org/?p=collab-maint/mupen64plus.git
 Vcs-Git: git://git.debian.org/git/collab-maint/mupen64plus.git
-Build-Depends: debhelper (>= 7), quilt, libsdl1.2-dev, libsdl-ttf2.0-dev,
+Build-Depends: debhelper (>= 7.0.50), quilt, libsdl1.2-dev, libsdl-ttf2.0-dev,
  libfreetype6-dev, libglib2.0-dev, libgtk2.0-dev, libsamplerate0-dev,
  libpng12-dev | libpng-dev, libbz2-dev, zlib1g-dev | libz-dev,
  libgl1-mesa-dev | libgl-dev, libglu1-mesa-dev | libglu-dev
diff --git a/debian/rules b/debian/rules
index 07007fd..3ffb820 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,59 +1,15 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-include /usr/share/quilt/quilt.make
-
-build: build-stamp
-build-stamp: $(QUILT_STAMPFN)
-	dh_testdir
+%:
+	dh --with quilt $@
 
+override_dh_auto_build:
 	mkdir -p $(CURDIR)/plugins
 	LDFLAGS='-Wl,--as-needed' $(MAKE) all
 
-	touch $@
-
-clean: unpatch
-	dh_testdir
-	dh_testroot
-
-	$(MAKE) clean
-
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-
+override_dh_auto_install:
 	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr/ LIBDIR=/usr/lib/mupen64plus/ BINDIR=/usr/games/ install
 	mkdir -p $(CURDIR)/debian/tmp/usr/share/man/man1/
 	zcat $(CURDIR)/debian/tmp/usr/man/man1/mupen64plus.1.gz|gzip -9 -n > \
 	     $(CURDIR)/debian/tmp/usr/share/man/man1/mupen64plus.1.gz
-
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs 
-	dh_installdocs
-	dh_install
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install

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



More information about the Pkg-games-commits mailing list