r7007 - in /trunk/libcrypt-rijndael-perl/debian: changelog rules

tincho-guest at users.alioth.debian.org tincho-guest at users.alioth.debian.org
Mon Aug 20 13:19:42 UTC 2007


Author: tincho-guest
Date: Mon Aug 20 13:19:41 2007
New Revision: 7007

URL: http://svn.debian.org/wsvn/?sc=1&rev=7007
Log:
* Various fixed to debian/rules, to avoid double building and stick to
  current practices.

Modified:
    trunk/libcrypt-rijndael-perl/debian/changelog
    trunk/libcrypt-rijndael-perl/debian/rules

Modified: trunk/libcrypt-rijndael-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/debian/changelog?rev=7007&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/debian/changelog (original)
+++ trunk/libcrypt-rijndael-perl/debian/changelog Mon Aug 20 13:19:41 2007
@@ -8,8 +8,10 @@
   * Added packaging copyright and licensing.
   * Fixed manpage section (3 -> 3pm)
   * Added dpatch stuff for managing source changes.
+  * Various fixed to debian/rules, to avoid double building and stick to
+    current practices.
 
- -- Martín Ferrari <martin.ferrari at gmail.com>  Mon, 20 Aug 2007 13:30:28 +0100
+ -- Martín Ferrari <martin.ferrari at gmail.com>  Mon, 20 Aug 2007 14:19:34 +0100
 
 libcrypt-rijndael-perl (0.05-7) unstable; urgency=medium
 

Modified: trunk/libcrypt-rijndael-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/debian/rules?rev=7007&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/debian/rules (original)
+++ trunk/libcrypt-rijndael-perl/debian/rules Mon Aug 20 13:19:41 2007
@@ -1,52 +1,65 @@
 #! /usr/bin/make -f
 # -*-makefile-*-
 # debian/rules file for libcrypt-rijndael-perl
+
+# 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)
+
 include /usr/share/dpatch/dpatch.make
 
 ifndef PERL
 PERL = /usr/bin/perl
 endif
 
-package	:= $(shell sed -ne 's/^Package: *//p' debian/control)
-prefix	:= $(CURDIR)/debian/$(package)/usr
+prefix	:= $(CURDIR)/debian/$(PACKAGE)/usr
 
+CFLAGS = -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
       CFLAGS += -O0
 else
       CFLAGS += -O2
 endif
 
-# thanks to: Gergely Nagy.
-Makefile: patch Makefile.PL
+build: build-stamp
+build-stamp: patch-stamp
+	dh_testdir
 	${PERL} Makefile.PL INSTALLDIRS=vendor
-build: Makefile
-	dh_testdir
-	${MAKE} OPTIMIZE="${CFLAGS} -g -Wall" LD_RUN_PATH=
+	${MAKE} OPTIMIZE="${CFLAGS}" LD_RUN_PATH=""
 	${MAKE} test
+	touch build-stamp
 
 clean: clean-patched unpatch
-clean-patched: checkroot
-	rm -f build-stamp
+clean-patched:
+	dh_testdir
 	[ ! -f Makefile ] || $(MAKE) distclean
-	dh_clean
+	dh_clean build-stamp install-stamp
 
-binary-indep:	checkroot build
-
-binary-arch:	checkroot build
-	dh_clean
-	dh_installdirs
-
+install: build install-stamp
+install-stamp:
+	dh_testdir
+	dh_testroot
 	$(MAKE) install PREFIX=$(prefix)
-
 	rmdir -p --ignore-fail-on-non-empty $(prefix)/share/perl5
 
+binary-indep: build install
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdirs
 	dh_installdocs README
-	dh_installexamples 
-	dh_installchangelogs 
+	# There are no examples ATM
+	#dh_installexamples examples/*
+	dh_installchangelogs Changes
 	dh_strip
+	dh_perl
 	dh_compress
 	dh_fixperms
-	dh_perl
 	dh_shlibdeps
 	dh_installdeb
 	dh_gencontrol
@@ -54,9 +67,4 @@
 	dh_builddeb
 
 binary:	binary-indep binary-arch
-
-checkroot:
-	dh_testdir
-	dh_testroot
-
 .PHONY:	binary binary-arch binary-indep clean checkroot build




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