r14702 - in /trunk/libcurses-perl/debian: changelog rules

ntyni at users.alioth.debian.org ntyni at users.alioth.debian.org
Sun Feb 10 20:31:04 UTC 2008


Author: ntyni
Date: Sun Feb 10 20:31:04 2008
New Revision: 14702

URL: http://svn.debian.org/wsvn/?sc=1&rev=14702
Log:
* Small debian/rules enhancements.

Modified:
    trunk/libcurses-perl/debian/changelog
    trunk/libcurses-perl/debian/rules

Modified: trunk/libcurses-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libcurses-perl/debian/changelog?rev=14702&op=diff
==============================================================================
--- trunk/libcurses-perl/debian/changelog (original)
+++ trunk/libcurses-perl/debian/changelog Sun Feb 10 20:31:04 2008
@@ -10,6 +10,7 @@
       (Closes: #462775)
   * Remove control and description references to perl-curses, as the rename
     was over ten years ago.
+  * Small debian/rules enhancements.
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 09 Jan 2008 21:17:10 +0100
 

Modified: trunk/libcurses-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libcurses-perl/debian/rules?rev=14702&op=diff
==============================================================================
--- trunk/libcurses-perl/debian/rules (original)
+++ trunk/libcurses-perl/debian/rules Sun Feb 10 20:31:04 2008
@@ -9,6 +9,12 @@
 
 include /usr/share/quilt/quilt.make
 
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -18,12 +24,13 @@
 endif
 
 
-build: patch
+build: build-stamp
+build-stamp: $(QUILT_STAMPFN)
 	dh_testdir
-	# Add here commands to compile the package.
-	perl Makefile.PL PANELS MENUS FORMS verbose INSTALLDIRS=vendor
+	$(PERL) Makefile.PL PANELS MENUS FORMS verbose INSTALLDIRS=vendor
 	$(MAKE) OPTIMIZE="$(CFLAGS)"
 	$(MAKE) test
+	touch $@
 
 clean: unpatch
 	dh_testdir
@@ -31,14 +38,18 @@
 
 	# 'unpatch' modifies Makefile.PL, rendering Makefile out of date
 	if [ -f Makefile ]; then touch Makefile && $(MAKE) distclean; fi
+	dh_clean build-stamp install-stamp
 
-install:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
 
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/$(PACKAGE) PREFIX=/usr
-	[ ! -d $(CURDIR)/debian/$(shell dh_listpackages)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(shell dh_listpackages)/usr/share/perl5
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/share/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5
+	touch $@
 
 binary-indep:;
 binary-arch: build install
@@ -58,4 +69,4 @@
 	dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install




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