r18153 - /trunk/libgtk2-imageview-perl/debian/rules

ra28145-guest at users.alioth.debian.org ra28145-guest at users.alioth.debian.org
Sun Mar 30 19:16:00 UTC 2008


Author: ra28145-guest
Date: Sun Mar 30 19:15:59 2008
New Revision: 18153

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=18153
Log:
updated rules to dh-make-perl 0.40

Modified:
    trunk/libgtk2-imageview-perl/debian/rules

Modified: trunk/libgtk2-imageview-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libgtk2-imageview-perl/debian/rules?rev=18153&op=diff
==============================================================================
--- trunk/libgtk2-imageview-perl/debian/rules (original)
+++ trunk/libgtk2-imageview-perl/debian/rules Sun Mar 30 19:15:59 2008
@@ -11,15 +11,11 @@
 # always return the default without waiting for user input.
 export PERL_MM_USE_DEFAULT=1
 
-PACKAGE=$(shell dh_listpackages)
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-TMP     =$(CURDIR)/debian/$(PACKAGE)
-
-# Allow disabling build optimation by setting noopt in
+# Allow disabling build optimisation by setting noopt in
 # $DEB_BUILD_OPTIONS
 CFLAGS = -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -31,39 +27,29 @@
 build: build-stamp
 build-stamp:
 	dh_testdir
-
-	# As this is a architecture dependent package, we are not
-	# supposed to install stuff to /usr/share. MakeMaker creates
-	# the dirs, we prevent this by setting the INSTALLVENDORARCH
-	# and VENDORARCHEXP environment variables.
-
 	# Add commands to compile the package here
-	$(PERL) Makefile.PL INSTALLDIRS=vendor \
-		INSTALLVENDORARCH=/usr/lib/perl5/ \
-		VENDORARCHEXP=/usr/lib/perl5/
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
-	#TEST#
-
+	make test
 	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-
 	dh_clean build-stamp install-stamp
-
 	# Add commands to clean up after the build process here
 	[ ! -f Makefile ] || $(MAKE) realclean
 
-install: build install-stamp
-install-stamp:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-
-	# Add commands to install the package into debian/$PACKAGE_NAME here
+	# Add commands to install the package into $(TMP)
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-
+	[ ! -d $(TMP)/usr/share/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/share/perl5
 	touch $@
 
 # Build architecture-independent files here.
@@ -74,9 +60,8 @@
 binary-arch: build install
 	dh_testdir
 	dh_testroot
-	dh_installexamples 
-	dh_installdocs #DOCS#
-	dh_installchangelogs #CHANGES#
+	dh_installdocs
+	dh_installchangelogs debian/changelog
 	dh_shlibdeps
 	dh_strip
 	dh_perl
@@ -87,8 +72,5 @@
 	dh_md5sums
 	dh_builddeb
 
-source diff:
-	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-
 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