[SCM] thin, simple and robust network communication layer on top of UDP branch, master, updated. debian/1.2-4

Ansgar Burchardt ansgar at 43-1.org
Thu Oct 29 17:52:56 UTC 2009


The following commit has been merged in the master branch:
commit fd167fd1fd5408221517aa283a9b4def46432ecd
Author: Ansgar Burchardt <ansgar at 43-1.org>
Date:   Sun Sep 6 13:14:55 2009 +0200

    use debhelper's override feature
    
    Use the override_* targets to make debian/rules a bit smaller.
    
    Signed-off-by: Ansgar Burchardt <ansgar at 43-1.org>

diff --git a/debian/control b/debian/control
index 00472be..09c389c 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: libs
 Priority: optional
 Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
 Uploaders: Gonéri Le Bouder <goneri at rulezlan.org>, Ansgar Burchardt <ansgar at 43-1.org>
-Build-Depends: debhelper (>= 7), quilt, autotools-dev, doxygen
+Build-Depends: debhelper (>= 7.0.50), quilt (>= 0.46-7), autotools-dev, doxygen
 Standards-Version: 3.8.0
 Vcs-Git: git://git.debian.org/git/pkg-games/enet.git
 Vcs-Browser: http://git.debian.org/?p=pkg-games/enet.git
diff --git a/debian/rules b/debian/rules
index 92c1009..68d6fad 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,38 +1,24 @@
 #!/usr/bin/make -f
 
-include /usr/share/quilt/quilt.make
-
 CFLAGS += -W -Wall -fPIC
 
-build: build-stamp
-build-stamp: $(QUILT_STAMPFN)
-	dh_testdir
-	ln -sf /usr/share/misc/config.sub /usr/share/misc/config.guess .
+%:
+	dh --with quilt $@
 
-	dh build
-	doxygen
+override_dh_auto_configure:
+	ln -sf /usr/share/misc/config.sub /usr/share/misc/config.guess .
+	dh_auto_configure
 
+override_dh_auto_build:
+	dh_auto_build
 	# create the shared lib
 	gcc -Wl,-soname,libenet.so.2 -shared -o libenet.so.2.0 *.o
-	touch $@
-
-clean: unpatch
-	dh clean
-	[ ! -d docs/html ] || rm -r docs/html/
-
-install: install-stamp
-install-stamp: build
-	dh install
 
-	touch $@
+	doxygen
 
-binary-indep: build install
-	dh binary-indep
+override_dh_clean:
+	[ ! -d docs/html ] || rm -r docs/html/
+	dh_clean
 
-binary-arch: build install
-	dh binary-arch --before dh_strip
+override_dh_strip:
 	dh_strip --dbg-package=libenet2-dbg
-	dh binary-arch --remaining
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install 

-- 
thin, simple and robust network communication layer on top of UDP



More information about the Pkg-games-commits mailing list