debian/rules: switch to rules.MakeMaker.noxs
authorIan Beckwith <ianb@erislabs.net>
Sat, 1 Mar 2008 00:52:41 +0000 (00:52 +0000)
committerIan Beckwith <ianb@erislabs.net>
Sat, 1 Mar 2008 00:52:41 +0000 (00:52 +0000)
debian/changelog
debian/rules

index 603a2f0..d732ffd 100644 (file)
@@ -1,3 +1,10 @@
+liburi-template-perl (0.13-1) unstable; urgency=low
+
+  * New upstream version.
+  * debian/rules: use rules.MakeMaker.noxs to match new build system.
+
+ -- Ian Beckwith <ianb@erislabs.net>  Sat, 01 Mar 2008 00:51:16 +0000
+
 liburi-template-perl (0.06-1) unstable; urgency=low
 
   * Initial Release (Closes: #420648).
 liburi-template-perl (0.06-1) unstable; urgency=low
 
   * Initial Release (Closes: #420648).
index a3dd6b1..0db9c08 100644 (file)
@@ -3,9 +3,6 @@
 # packages. It was created by Marc Brockschmidt <marc@dch-faq.de> for
 # the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
 # be used freely wherever it is useful.
 # packages. It was created by Marc Brockschmidt <marc@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@jasonkohles.com>
-# http://www.jasonkohles.com/ to support Module::Build installed modules
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -26,42 +23,45 @@ build: build-stamp
 build-stamp:
        dh_testdir
 
 build-stamp:
        dh_testdir
 
-       $(PERL) Build.PL installdirs=vendor
-       OPTIMIZE="-Wall -O2 -g" $(PERL) Build
+       # Add commands to compile the package here
+       $(PERL) Makefile.PL INSTALLDIRS=vendor
+       $(MAKE)
+       $(MAKE) test
 
 
-       touch build-stamp
+       touch $@
 
 clean:
        dh_testdir
        dh_testroot
 
 
 clean:
        dh_testdir
        dh_testroot
 
-       # Add commands to clean up after the build process here
-       [ ! -f Build ] || $(PERL) Build distclean
-
        dh_clean build-stamp install-stamp
 
        dh_clean build-stamp install-stamp
 
-install: build install-stamp
-install-stamp:
+       # Add commands to clean up after the build process here
+       [ ! -f Makefile ] || $(MAKE) realclean
+
+install: install-stamp
+install-stamp: build-stamp
        dh_testdir
        dh_testroot
        dh_clean -k
 
        dh_testdir
        dh_testroot
        dh_clean -k
 
-       $(PERL) Build test
-       $(PERL) Build install destdir=$(TMP)
+       # 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
 
 
-       touch install-stamp
+       touch $@
 
 binary-arch:
 
 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
 
 binary-indep: build install
        dh_testdir
        dh_testroot
-       dh_installdocs
-       dh_installchangelogs
+       dh_installexamples
+       dh_installdocs README
+       dh_installchangelogs Changes
        dh_perl
        dh_perl
-       dh_link
-       dh_strip
        dh_compress
        dh_fixperms
        dh_installdeb
        dh_compress
        dh_fixperms
        dh_installdeb