r10693 - in /trunk/libpod-pom-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Sun Dec 2 14:54:42 UTC 2007


Author: gregoa-guest
Date: Sun Dec  2 14:54:42 2007
New Revision: 10693

URL: http://svn.debian.org/wsvn/?sc=1&rev=10693
Log:
debian/rules:
  - don't install empty /usr/lib/perl5 directory
  - remove variable OPTIMIZE, we don't compile anything
  - create -stamp targets and adapt target dependencies accordingly
  - move tests to build target
  - remove unneeded call to dh_link

Modified:
    trunk/libpod-pom-perl/debian/changelog
    trunk/libpod-pom-perl/debian/rules

Modified: trunk/libpod-pom-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libpod-pom-perl/debian/changelog?rev=10693&op=diff
==============================================================================
--- trunk/libpod-pom-perl/debian/changelog (original)
+++ trunk/libpod-pom-perl/debian/changelog Sun Dec  2 14:54:42 2007
@@ -3,6 +3,12 @@
   * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
     field (source stanza); Homepage field (source stanza). Removed: XS-
     Vcs-Svn fields.
+  * debian/rules:
+    - don't install empty /usr/lib/perl5 directory
+    - remove variable OPTIMIZE, we don't compile anything
+    - create -stamp targets and adapt target dependencies accordingly
+    - move tests to build target
+    - remove unneeded call to dh_link
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 09 Oct 2007 22:31:41 +0200
 

Modified: trunk/libpod-pom-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libpod-pom-perl/debian/rules?rev=10693&op=diff
==============================================================================
--- trunk/libpod-pom-perl/debian/rules (original)
+++ trunk/libpod-pom-perl/debian/rules Sun Dec  2 14:54:42 2007
@@ -8,18 +8,23 @@
 PACKAGE= libpod-pom-perl
 config = INSTALLDIRS=vendor
 
-configure: 
+configure: configure-stamp
+configure-stamp:
 	dh_testdir
 	perl Makefile.PL $(config)
+	touch $@
 
-build: configure
+build: build-stamp
+build-stamp: configure-stamp
 	dh_testdir
-	$(MAKE) OPTIMIZE="-O2 -g -Wall"
+	$(MAKE)
+	$(MAKE) test
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	dh_clean
+	dh_clean configure-stamp build-stamp
 	[ ! -f Makefile ] || $(MAKE) realclean
 
 install: build
@@ -28,8 +33,8 @@
 	dh_clean -k
 	dh_installdirs
 
-	$(MAKE) test
 	$(MAKE) install PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr
+	rmdir --parents --ignore-fail-on-non-empty $(CURDIR)/debian/$(PACKAGE)/usr/lib/perl5
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -39,7 +44,6 @@
 	dh_installexamples bin/custom-pom2
 	dh_installman
 	dh_installchangelogs Changes
-	dh_link
 	dh_compress
 	dh_fixperms
 	dh_installdeb




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