r19533 - /trunk/libtext-wrapper-perl/debian/rules

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Tue May 6 15:02:31 UTC 2008


Author: dmn
Date: Tue May  6 15:02:30 2008
New Revision: 19533

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19533
Log:
refresh debian/rules again now that upstream uses Module::Build

Modified:
    trunk/libtext-wrapper-perl/debian/rules

Modified: trunk/libtext-wrapper-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-wrapper-perl/debian/rules?rev=19533&op=diff
==============================================================================
--- trunk/libtext-wrapper-perl/debian/rules (original)
+++ trunk/libtext-wrapper-perl/debian/rules Tue May  6 15:02:30 2008
@@ -3,6 +3,9 @@
 # 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.
+#
+# It was later modified by Jason Kohles <email at jasonkohles.com>
+# http://www.jasonkohles.com/ to support Module::Build installed modules
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -19,9 +22,9 @@
 build-stamp:
 	dh_testdir
 	# Add commands to compile the package here
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE)
-	$(MAKE) test
+	$(PERL) Build.PL installdirs=vendor
+	$(PERL) Build
+	$(PERL) Build test
 	touch $@
 
 clean:
@@ -29,7 +32,7 @@
 	dh_testroot
 	dh_clean build-stamp install-stamp
 	# Add commands to clean up after the build process here
-	[ ! -f Makefile ] || $(MAKE) realclean
+	[ ! -f Build ] || $(PERL) Build --allow_mb_mismatch 1 distclean
 
 install: install-stamp
 install-stamp: build-stamp
@@ -37,10 +40,7 @@
 	dh_testroot
 	dh_clean -k
 	# Add commands to install the package into $(TMP) here
-	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-	[ ! -d $(TMP)/usr/lib/perl5 ] || \
-		rmdir --ignore-fail-on-non-empty --parents --verbose \
-		$(TMP)/usr/lib/perl5
+	$(PERL) Build install destdir=$(TMP) create_packlist=0
 	touch $@
 
 binary-arch:




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