r13687 - in /trunk/libcrypt-openssl-random-perl/debian: changelog rules

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Sun Jan 27 19:22:55 UTC 2008


Author: dmn
Date: Sun Jan 27 19:22:55 2008
New Revision: 13687

URL: http://svn.debian.org/wsvn/?sc=1&rev=13687
Log:
* debian/rules: sync with dh-make-perl's template

Modified:
    trunk/libcrypt-openssl-random-perl/debian/changelog
    trunk/libcrypt-openssl-random-perl/debian/rules

Modified: trunk/libcrypt-openssl-random-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libcrypt-openssl-random-perl/debian/changelog?rev=13687&op=diff
==============================================================================
--- trunk/libcrypt-openssl-random-perl/debian/changelog (original)
+++ trunk/libcrypt-openssl-random-perl/debian/changelog Sun Jan 27 19:22:55 2008
@@ -11,6 +11,7 @@
   * debhelper compatibility level 6
   * Standards-Version: 3.7.3 (no changes)
   * add myself to Uploaders
+  * debian/rules: sync with dh-make-perl's template
 
  -- Damyan Ivanov <dmn at debian.org>  Sun, 27 Jan 2008 21:06:19 +0200
 

Modified: trunk/libcrypt-openssl-random-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libcrypt-openssl-random-perl/debian/rules?rev=13687&op=diff
==============================================================================
--- trunk/libcrypt-openssl-random-perl/debian/rules (original)
+++ trunk/libcrypt-openssl-random-perl/debian/rules Sun Jan 27 19:22:55 2008
@@ -13,59 +13,66 @@
 PERL = /usr/bin/perl
 endif
 
-ifndef DESTDIR
-DESTDIR=..
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
+# Allow disabling build optimation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+    CFLAGS += -O0
+else
+    CFLAGS += -O2
 endif
-TMP     =`pwd`/debian/$(PACKAGE)
+
 
 build: build-stamp
 build-stamp:
 	dh_testdir
 
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(PERL) Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$(CFLAGS)"
 	$(MAKE)
 	$(MAKE) test
 
-	touch build-stamp
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp
+	dh_clean build-stamp install-stamp
 
-	-$(MAKE) realclean
+	[ ! -e Makefile ] || $(MAKE) realclean
 
-	dh_clean
-
-install: 
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
 
-	$(MAKE) install PREFIX=$(TMP)/usr
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+
+	[ ! -d $(TMP)/usr/share/perl5 ] || rmdir --parents --ignore-fail-on-non-empty --verbose $(TMP)/usr/share/perl5
+
+	touch $@
 
 # Build architecture-dependent files here.
 binary-arch: build install
 	dh_testdir
 	dh_testroot
 	dh_installdocs
-	dh_installman
 	dh_installchangelogs Changes
-	dh_link
 	dh_strip
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl 
+	dh_perl
 	dh_shlibdeps
 	dh_gencontrol
 	dh_md5sums
-	dh_builddeb --destdir=$(DESTDIR)
+	dh_builddeb
 
 # Build architecture-independent files here.
-binary-indep: build install
+binary-indep:
 # We have nothing to do by default.
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+.PHONY: build clean binary-indep binary-arch binary install




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