r14691 - in /trunk/libxml-mini-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Sun Feb 10 03:44:36 UTC 2008


Author: gregoa-guest
Date: Sun Feb 10 03:44:35 2008
New Revision: 14691

URL: http://svn.debian.org/wsvn/?sc=1&rev=14691
Log:
debian/rules:
  - use $(CURDIR) instead of `pwd`
  - let build-stamp depend on quilt's stamp file
  - create install-stamp target, depepnding on build-stamp
  - use "$@" when touching stamp files
  - move dh_clean before make realclean and use dh_clean for removing
    stamp files
  - use DESTDIR and PREFIX for make install
  - simplify removal of /usr/lib/perl5
  - don't install README anymore, it doesn't provide any additional
    information
  - remove some unneeded dh_* calls

Modified:
    trunk/libxml-mini-perl/debian/changelog
    trunk/libxml-mini-perl/debian/rules

Modified: trunk/libxml-mini-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libxml-mini-perl/debian/changelog?rev=14691&op=diff
==============================================================================
--- trunk/libxml-mini-perl/debian/changelog (original)
+++ trunk/libxml-mini-perl/debian/changelog Sun Feb 10 03:44:35 2008
@@ -8,8 +8,20 @@
     - update copyright & license terms from README
   * Refresh patch pod-fixes.diff.
   * Add /me to Uploaders.
+  * debian/rules:
+    - use $(CURDIR) instead of `pwd`
+    - let build-stamp depend on quilt's stamp file
+    - create install-stamp target, depepnding on build-stamp
+    - use "$@" when touching stamp files
+    - move dh_clean before make realclean and use dh_clean for removing
+      stamp files
+    - use DESTDIR and PREFIX for make install
+    - simplify removal of /usr/lib/perl5
+    - don't install README anymore, it doesn't provide any additional
+      information
+    - remove some unneeded dh_* calls
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Sun, 10 Feb 2008 04:30:48 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Sun, 10 Feb 2008 04:31:23 +0100
 
 libxml-mini-perl (1.2.8-4) unstable; urgency=low
 

Modified: trunk/libxml-mini-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libxml-mini-perl/debian/rules?rev=14691&op=diff
==============================================================================
--- trunk/libxml-mini-perl/debian/rules (original)
+++ trunk/libxml-mini-perl/debian/rules Sun Feb 10 03:44:35 2008
@@ -10,7 +10,7 @@
 PERL = /usr/bin/perl
 endif
 
-TMP    = `pwd`/debian/$(PACKAGE)
+TMP    = $(CURDIR)/debian/$(PACKAGE)
 
 CFLAGS = -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -22,36 +22,36 @@
 include /usr/share/quilt/quilt.make
 
 build: build-stamp
-build-stamp: patch
+build-stamp: $(QUILT_STAMPFN)
 	dh_testdir
-	
+
 	# Add here commands to compile the package.
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE) OPTIMIZE="-Wall $(CFLAGS)"
 	$(MAKE) test
-	
-	touch build-stamp
+
+	touch $@
 
 clean: unpatch
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp
-	
+	dh_clean build-stamp install-stamp
+
 	# Add here commands to clean up after the build process.
 	[ ! -f Makefile ] || $(MAKE) realclean
-	
-	dh_clean
 
-install: 
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
-	
+
 	# Add here commands to install the package into debian/<package>
-	$(MAKE) install PREFIX=$(TMP)/usr
-	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir $(TMP)/usr/lib/perl5 || true
-	[ ! -d $(TMP)/usr/lib ] || rmdir $(TMP)/usr/lib || true
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --parents --ignore-fail-on-non-empty --verbose $(TMP)/usr/lib/perl5
+
+	touch $@
 
 # Build architecture-dependent files here.
 binary-arch: build install
@@ -60,24 +60,18 @@
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs README
-	dh_installexamples
-	dh_installmenu
-	dh_installcron
-	dh_installman
+	dh_installdocs
 	dh_installchangelogs Changes
-	dh_link
-	dh_strip
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl 
+	dh_perl
 	dh_shlibdeps
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
-source diff:                                                                  
+source diff:
 	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
 binary: binary-indep binary-arch




More information about the Pkg-perl-cvs-commits mailing list