r17997 - in /trunk/libsvg-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Wed Mar 26 18:15:22 UTC 2008
Author: gregoa-guest
Date: Wed Mar 26 18:15:21 2008
New Revision: 17997
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=17997
Log:
Refresh debian/rules with dh-make-perl's help.
Modified:
trunk/libsvg-perl/debian/changelog
trunk/libsvg-perl/debian/rules
Modified: trunk/libsvg-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsvg-perl/debian/changelog?rev=17997&op=diff
==============================================================================
--- trunk/libsvg-perl/debian/changelog (original)
+++ trunk/libsvg-perl/debian/changelog Wed Mar 26 18:15:21 2008
@@ -14,8 +14,9 @@
* Switch patch system from dpatch to quilt and refresh patch
01-fix_manpages.patch.
* debian/copyright: use version-agnostic download URL.
+ * Refresh debian/rules with dh-make-perl's help.
- -- gregor herrmann <gregor+debian at comodo.priv.at> Wed, 26 Mar 2008 19:09:31 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Wed, 26 Mar 2008 19:13:38 +0100
libsvg-perl (2.36-1) unstable; urgency=low
Modified: trunk/libsvg-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsvg-perl/debian/rules?rev=17997&op=diff
==============================================================================
--- trunk/libsvg-perl/debian/rules (original)
+++ trunk/libsvg-perl/debian/rules Wed Mar 26 18:15:21 2008
@@ -1,21 +1,27 @@
#!/usr/bin/make -f
-# -*- makefile -*-
+# This debian/rules file is provided as a template for normal perl
+# 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.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/quilt/quilt.make
+# If set to a true value then MakeMaker's prompt function will
+# always return the default without waiting for user input.
+export PERL_MM_USE_DEFAULT=1
+
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
+
build: build-stamp
build-stamp: $(QUILT_STAMPFN)
dh_testdir
- # the VENDORARCHEXP and INSTALLVENDORARCH
- # variables are set to avoid the creation
- # of /usr/lib/perl5
- perl Makefile.PL \
- INSTALLDIRS=vendor \
- VENDORARCHEXP=/usr/share/perl5 \
- INSTALLVENDORARCH=/usr/share/perl5
+ # Add commands to compile the package here
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
$(MAKE)
$(MAKE) test
touch $@
@@ -23,28 +29,33 @@
clean: unpatch
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 Makefile.old build-stamp
-
- [ ! -f Makefile ] || $(MAKE) distclean
-
-install: build
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
- dh_clean -k
+ 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
+ touch $@
- $(MAKE) install PREFIX=$(CURDIR)/debian/libsvg-perl/usr
+binary-arch:
+# We have nothing to do here for an architecture-independent package
-binary-arch: build install
binary-indep: build install
dh_testdir
dh_testroot
+ dh_installdocs README
dh_installchangelogs Changes
- dh_installdocs
+ dh_perl
dh_compress
- dh_installexamples examples/*
dh_fixperms
- dh_perl
dh_installdeb
dh_gencontrol
dh_md5sums
More information about the Pkg-perl-cvs-commits
mailing list