r11095 - in /trunk/libapache-dbi-perl/debian: changelog rules

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Mon Dec 10 16:13:21 UTC 2007


Author: dmn
Date: Mon Dec 10 16:13:21 2007
New Revision: 11095

URL: http://svn.debian.org/wsvn/?sc=1&rev=11095
Log:
* debian/rules: revamped
  + use dh_listpackages instead of pwd|sed to get package name
  + add stamps to build and install targets
  + Move build in build-stamp target
  + Drop unneeded OPTIMIZE
  + Do not ignore clean errors
  + Use distclean instead of clean
  + Use DESTDIR and PREFIX
  + Remove /usr/lib/perl5 only

Modified:
    trunk/libapache-dbi-perl/debian/changelog
    trunk/libapache-dbi-perl/debian/rules

Modified: trunk/libapache-dbi-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libapache-dbi-perl/debian/changelog?rev=11095&op=diff
==============================================================================
--- trunk/libapache-dbi-perl/debian/changelog (original)
+++ trunk/libapache-dbi-perl/debian/changelog Mon Dec 10 16:13:21 2007
@@ -10,6 +10,15 @@
   * New upstream bugfix/docs release
   * Taking over Jai Bonci with his permission.
     http://lists.debian.org/debian-perl/2007/11/msg00134.html
+  * debian/rules: revamped
+    + use dh_listpackages instead of pwd|sed to get package name
+    + add stamps to build and install targets
+    + Move build in build-stamp target
+    + Drop unneeded OPTIMIZE
+    + Do not ignore clean errors
+    + Use distclean instead of clean
+    + Use DESTDIR and PREFIX
+    + Remove /usr/lib/perl5 only
 
  -- Damyan Ivanov <dmn at debian.org>  Mon, 10 Dec 2007 17:48:21 +0200
 

Modified: trunk/libapache-dbi-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libapache-dbi-perl/debian/rules?rev=11095&op=diff
==============================================================================
--- trunk/libapache-dbi-perl/debian/rules (original)
+++ trunk/libapache-dbi-perl/debian/rules Mon Dec 10 16:13:21 2007
@@ -5,44 +5,44 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# This is the debhelper compatibility version to use.
-# export DH_COMPAT=4
-
-PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
+PACKAGE=$(shell dh_listpackages)
+TMP=$(CURDIR)/debian/$(PACKAGE)
 
 
-build:
+build: build-stamp
+build-stamp:
 	dh_testdir
 	# Add here commands to compile the package.
 	perl Makefile.PL verbose INSTALLDIRS=vendor
+	$(MAKE)
+	#Skip live tests
+	#$(MAKE) test
+	touch $@
+
 clean:
 	dh_testdir
 	dh_testroot
 
-	-$(MAKE) clean
-	rm -f Makefile.old
-	dh_clean
+	dh_clean build-stamp install-stamp
+	[ ! -e Makefile ] || $(MAKE) distclean
 
-install:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
+	
+	$(MAKE) DESTDIR=$(TMP) PREFIX=/usr install
+	rmdir -p --ignore-fail-on-non-empty $(TMP)/usr/lib/perl5
+	touch $@
 
-	#Skip live tests
-	$(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr OPTIMIZE="-O2 -g -Wall" install
-	-find $(CURDIR)/debian -type d | xargs rmdir -p --ignore-fail-on-non-empty
-
-binary-arch:;
+binary-arch:
 binary-indep: build install
 	dh_testdir
 	dh_testroot
 	dh_installdocs
-	dh_installman
 	dh_installexamples
 	dh_installchangelogs Changes
-	dh_link
-	dh_strip
 	dh_compress
 	dh_fixperms
 	dh_installdeb




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