r9658 - /trunk/libgtk2-ex-printdialog-perl/debian/rules

ra28145-guest at users.alioth.debian.org ra28145-guest at users.alioth.debian.org
Thu Nov 22 19:31:07 UTC 2007


Author: ra28145-guest
Date: Thu Nov 22 19:31:07 2007
New Revision: 9658

URL: http://svn.debian.org/wsvn/?sc=1&rev=9658
Log:
updated to dh-make-perl 0.35

Modified:
    trunk/libgtk2-ex-printdialog-perl/debian/rules

Modified: trunk/libgtk2-ex-printdialog-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libgtk2-ex-printdialog-perl/debian/rules?rev=9658&op=diff
==============================================================================
--- trunk/libgtk2-ex-printdialog-perl/debian/rules (original)
+++ trunk/libgtk2-ex-printdialog-perl/debian/rules Thu Nov 22 19:31:07 2007
@@ -23,19 +23,28 @@
 build-stamp:
 	dh_testdir
 
+	# As this is a architecture independent package, we are not
+	# supposed to install stuff to /usr/lib. 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
+	$(PERL) Makefile.PL INSTALLDIRS=vendor \
+		INSTALLVENDORARCH=/usr/share/perl5/ \
+		VENDORARCHEXP=/usr/share/perl5/
+	$(MAKE)
+	$(MAKE) test
 
-	touch build-stamp
+	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
-
-	dh_clean build-stamp install-stamp
 
 install: build install-stamp
 install-stamp:
@@ -44,30 +53,20 @@
 	dh_clean -k
 
 	# Add commands to install the package into debian/$PACKAGE_NAME here
-	#TEST#
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 
-	# As this is a architecture independent package, we are not
-	# supposed to install stuff to /usr/lib. MakeMaker creates
-	# the dirs, we delete them from the deb:
-	rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
-
-	touch install-stamp
+	touch $@
 
 binary-arch:
-# We have nothing to do by default.
+# We have nothing to do here for an architecture-independent package
 
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-#	dh_installcron
-#	dh_installmenu
-#	dh_installexamples
-	dh_installdocs #DOCS#
-	dh_installchangelogs #CHANGES#
+	dh_installexamples
+	dh_installdocs
+	dh_installchangelogs
 	dh_perl
-	dh_link
-#	dh_strip
 	dh_compress
 	dh_fixperms
 	dh_installdeb




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