r10833 - in /trunk/libarray-compare-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Wed Dec 5 17:28:21 UTC 2007


Author: gregoa-guest
Date: Wed Dec  5 17:28:21 2007
New Revision: 10833

URL: http://svn.debian.org/wsvn/?sc=1&rev=10833
Log:
debian/rules:
  - don't install .packlist file
  - don't ignore errors of make clean
  - move tests and actual building to build target
  - use PREFIX and DESTDIR in install target
  - explicitly remove empty /usr/lib/perl5 directory
  - exchange binary-indep and binary-arch
  - use dh_listpackages instead of pwd/sed to get package name
  - introduce build-stamp and install-stamp and inter-target dependencies
  - remove unneeded calls to dh_link, dh_strip, dh_installexamples

Modified:
    trunk/libarray-compare-perl/debian/changelog
    trunk/libarray-compare-perl/debian/rules

Modified: trunk/libarray-compare-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libarray-compare-perl/debian/changelog?rev=10833&op=diff
==============================================================================
--- trunk/libarray-compare-perl/debian/changelog (original)
+++ trunk/libarray-compare-perl/debian/changelog Wed Dec  5 17:28:21 2007
@@ -8,6 +8,16 @@
   * debian/copyright: update with recent information from README.
   * Set debhelper compatibility level to 5.
   * Set Standards-Version to 3.7.3 (no changes needed).
+  * debian/rules:
+    - don't install .packlist file
+    - don't ignore errors of make clean
+    - move tests and actual building to build target
+    - use PREFIX and DESTDIR in install target
+    - explicitly remove empty /usr/lib/perl5 directory
+    - exchange binary-indep and binary-arch
+    - use dh_listpackages instead of pwd/sed to get package name
+    - introduce build-stamp and install-stamp and inter-target dependencies
+    - remove unneeded calls to dh_link, dh_strip, dh_installexamples
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 01 Dec 2007 18:54:44 +0100
 

Modified: trunk/libarray-compare-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libarray-compare-perl/debian/rules?rev=10833&op=diff
==============================================================================
--- trunk/libarray-compare-perl/debian/rules (original)
+++ trunk/libarray-compare-perl/debian/rules Wed Dec  5 17:28:21 2007
@@ -8,41 +8,40 @@
 # This is the debhelper compatibility version to use.
 #export DH_COMPAT=4
 
-PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
+PACKAGE=$(shell dh_listpackages)
 
-
-build:
+build: build-stamp
+build-stamp:
 	dh_testdir
 	# Add here commands to compile the package.
-	perl Build.PL installdirs=vendor
+	perl Makefile.PL installdirs=vendor create_packlist=0
+	$(MAKE) test
+	$(MAKE)
+	touch $@
+
 clean:
 	dh_testdir
 	dh_testroot
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) clean
 
-	-./Build clean
-	rm -rf ./Build _build
-	dh_clean
-
-install:
+install: install-stamp
+install-stamp:
 	dh_testdir
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
-	
-	./Build test
-	./Build install destdir=$(CURDIR)/debian/$(PACKAGE)
-	-find $(CURDIR)/debian -type d | xargs rmdir -p --ignore-fail-on-non-empty
+	$(MAKE) install PREFIX=/usr DESTDIR=$(CURDIR)/debian/$(PACKAGE)
+	rmdir --parents --ignore-fail-on-non-empty $(CURDIR)/debian/$(PACKAGE)/usr/lib/perl5
+	touch $@
 
-binary-indep:;
-binary-arch: build install
+binary-arch:;
+binary-indep: build install
 	dh_testdir
 	dh_testroot
 	dh_installdocs
 	dh_installman
 	dh_installchangelogs Changes
-	dh_installexamples
-	dh_link
-	dh_strip
 	dh_compress
 	dh_fixperms
 	dh_installdeb




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