Author: roam-guest
Date: 2009-03-31 23:18:39 +0000 (Tue, 31 Mar 2009)
New Revision: 9340

Modified:
   packages/trunk/xmahjongg/debian/changelog
   packages/trunk/xmahjongg/debian/rules
Log:
Shorten the rules file using debhelper 7's dh tool.


Modified: packages/trunk/xmahjongg/debian/changelog
===================================================================
--- packages/trunk/xmahjongg/debian/changelog   2009-03-31 23:08:18 UTC (rev 
9339)
+++ packages/trunk/xmahjongg/debian/changelog   2009-03-31 23:18:39 UTC (rev 
9340)
@@ -15,6 +15,7 @@
   * Use dh_installman instead of the deprecated dh_installmanpages.
   * Bump Standards-Version to 3.8.1:
     - add the README.source file mentioning the use of quilt
+  * Shorten the rules file using debhelper 7's dh helper.
 
  -- Peter Pentchev <[email protected]>  Tue, 31 Mar 2009 17:19:37 +0300
 

Modified: packages/trunk/xmahjongg/debian/rules
===================================================================
--- packages/trunk/xmahjongg/debian/rules       2009-03-31 23:08:18 UTC (rev 
9339)
+++ packages/trunk/xmahjongg/debian/rules       2009-03-31 23:18:39 UTC (rev 
9340)
@@ -13,37 +13,24 @@
 
 build: build-stamp
 build-stamp:   ${QUILT_STAMPFN}
-       dh_testdir
-
+       dh build --before auto_configure
        ./configure --prefix=/usr --mandir=/usr/share/man 
--datadir=/usr/share/games
        # Avoid rebuilding config.h.in
        touch config.h.in
-       # Add here commands to compile the package.
-       $(MAKE) 
-
+       dh build --after auto_configure
        touch build-stamp
 
 clean:
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp install-stamp
-
-       # Add here commands to clean up after the build process.
+       dh $@ --before auto_clean
        [ ! -f Makefile ] || $(MAKE) distclean
-
-       dh_clean
+       dh $@ --after auto_clean
        ${MAKE} -f debian/rules unpatch
 
 install: install-stamp
 install-stamp: build-stamp
-       dh_testdir
-       dh_testroot
-       dh_prep
-       dh_installdirs
-
-       # Add here commands to install the package into debian/xmahjongg.
+       dh install --before auto_install
        $(MAKE) install prefix=$D/usr bindir=$D/usr/games 
mandir=$D/usr/share/man datadir=$D/usr/share/games
-
+       dh install --after auto_install
        touch install-stamp
 
 # Build architecture-independent files here.
@@ -52,30 +39,7 @@
 
 # Build architecture-dependent files here.
 binary-arch: build install
-#      dh_testversion
-       dh_testdir
-       dh_testroot
-       dh_installdocs
-       dh_installexamples
-       dh_installmenu
-#      dh_installemacsen
-#      dh_installinit
-       dh_installcron
-       dh_installman
-#      dh_undocumented
-       dh_installchangelogs 
-       dh_strip
-       dh_compress
-       dh_fixperms
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-#      dh_makeshlibs
-       dh_md5sums
-       dh_builddeb
+       dh $@
 
-source diff:                                                                  
-       @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to