2 # This debian/rules file is provided as a template for normal perl
3 # packages. It was created by Marc Brockschmidt <marc@dch-faq.de> for
4 # the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
5 # be used freely wherever it is useful.
7 # Uncomment this to turn on verbose mode.
10 export SBOX_REDIRECT_IGNORE:=/usr/bin/perl
12 export PATH:=/usr/bin/dh7:/usr/bin:$(PATH)
14 # If set to a true value then MakeMaker's prompt function will
15 # always return the default without waiting for user input.
16 export PERL_MM_USE_DEFAULT=1
19 PACKAGE = $(shell dh_listpackages)
20 TMP = $(CURDIR)/debian/$(PACKAGE)
25 $(PERL) Makefile.PL INSTALLDIRS=vendor
33 dh_clean build-stamp install-stamp
34 [ ! -f Makefile ] || $(MAKE) realclean
36 install: install-stamp
37 install-stamp: build-stamp
41 $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
43 # convert broken *roff from UTF-8 encoded modules
44 sed -i -e 's/A\\\*~X/\\\[:o\]/' $(TMP)/usr/share/man/man3/Spiffy.3pm
46 [ ! -d $(TMP)/usr/lib/perl5 ] || \
47 rmdir --ignore-fail-on-non-empty --parents --verbose \
52 # We have nothing to do here for an architecture-independent package
54 binary-indep: build install
58 dh_installchangelogs Changes
67 binary: binary-indep binary-arch
68 .PHONY: build clean binary-indep binary-arch binary install