r16629 - in /trunk/libtree-redblack-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Thu Mar 6 16:41:38 UTC 2008


Author: gregoa-guest
Date: Thu Mar  6 16:41:37 2008
New Revision: 16629

URL: http://svn.debian.org/wsvn/?sc=1&rev=16629
Log:
debian/rules:
  - minor updates
  - install upstream Changes

Modified:
    trunk/libtree-redblack-perl/debian/changelog
    trunk/libtree-redblack-perl/debian/rules

Modified: trunk/libtree-redblack-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libtree-redblack-perl/debian/changelog?rev=16629&op=diff
==============================================================================
--- trunk/libtree-redblack-perl/debian/changelog (original)
+++ trunk/libtree-redblack-perl/debian/changelog Thu Mar  6 16:41:37 2008
@@ -9,8 +9,11 @@
     copyright/license, convert to new format.
   * Set Standards-Version to 3.7.3 (no changes).
   * Add debian/compat.
+  * debian/rules:
+    - minor updates
+    - install upstream Changes
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Thu, 06 Mar 2008 17:37:06 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Thu, 06 Mar 2008 17:38:40 +0100
 
 libtree-redblack-perl (0.3-7) unstable; urgency=low
 

Modified: trunk/libtree-redblack-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libtree-redblack-perl/debian/rules?rev=16629&op=diff
==============================================================================
--- trunk/libtree-redblack-perl/debian/rules (original)
+++ trunk/libtree-redblack-perl/debian/rules Thu Mar  6 16:41:37 2008
@@ -1,51 +1,69 @@
 #!/usr/bin/make -f
-#-*- makefile -*-
-# debian/rules file for libtree-redblack-perl
+# This debian/rules file is provided as a template for normal perl
+# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> for
+# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
+# be used freely wherever it is useful.
 
-export DH_COMPAT=5
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# If set to a true value then MakeMaker's prompt function will
+# always return the default without waiting for user input.
+export PERL_MM_USE_DEFAULT=1
+
+PACKAGE=$(shell dh_listpackages)
 
 ifndef PERL
 PERL = /usr/bin/perl
 endif
 
-package	:= $(shell dh_listpackages)
-prefix	:= $(CURDIR)/debian/$(package)/usr
+TMP     =$(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp:
 	dh_testdir
-	$(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
-	$(MAKE) LD_RUN_PATH=
+
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE)
+
 	touch $@
 
-clean:	checkroot
-	rm -f build-stamp
-	-$(MAKE) realclean
-	dh_clean
+clean:
+	dh_testdir
+	dh_testroot
 
-binary-indep:	checkroot build
-	dh_clean
-	dh_installdirs
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-	$(MAKE) pure_install PREFIX=$(prefix)
-	[ ! -d $(prefix)/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(prefix)/lib/perl5
+install: install-stamp
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k
 
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
+
+	touch $@
+
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
 	dh_installdocs README
-	dh_installchangelogs
+	dh_installchangelogs Changes
+	dh_perl
 	dh_compress
 	dh_fixperms
-	dh_perl
 	dh_installdeb
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
-binary-arch:	checkroot build
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
-binary:	binary-indep binary-arch
-
-checkroot:
-	dh_testdir
-	dh_testroot
-
-.PHONY: binary binary-arch binary-indep clean checkroot build
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary




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