~ubuntu-branches/debian/sid/libdevel-leak-perl/sid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann, Nathan Handler, Ansgar Burchardt, gregor herrmann
  • Date: 2011-08-26 14:43:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110826144315-e8h1jzm74v2wr1yk
Tags: 0.03-2
[ Nathan Handler ]
* debian/watch: Update to ignore development releases.

[ Ansgar Burchardt ]
* debian/control: Convert Vcs-* fields to Git.

[ gregor herrmann ]
* Switch to source format 3.0 (quilt).
* Add a patch to fix "no sv_dump even with debugperl". Thanks to Tim
  Cutts for the bug report and the pointers. 
  Closes: #639353
  LP: #450482
* Use tiny debian/rules, switch to debhelper 8.
* debian/copyright: use DEP5 formatting.
* Set Standards-Version to 3.9.2, remove version from perl build
  dependency.
* Lowercase short description.
* Add /me to Uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
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.
6
 
 
7
 
# Uncomment this to turn on verbose mode.
8
 
#export DH_VERBOSE=1
9
 
 
10
 
# If set to a true value then MakeMaker's prompt function will
11
 
# always return the default without waiting for user input.
12
 
export PERL_MM_USE_DEFAULT=1
13
 
 
14
 
PERL   ?= /usr/bin/perl
15
 
PACKAGE = $(shell dh_listpackages)
16
 
TMP     = $(CURDIR)/debian/$(PACKAGE)
17
 
 
18
 
# Allow disabling build optimisation by setting noopt in
19
 
# $DEB_BUILD_OPTIONS
20
 
CFLAGS = -Wall -g
21
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22
 
        CFLAGS += -O0
23
 
else
24
 
        CFLAGS += -O2
25
 
endif
26
 
 
27
 
build: build-stamp
28
 
build-stamp:
29
 
        dh_testdir
30
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor
31
 
        $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
32
 
        $(MAKE) test
33
 
        touch $@
34
 
 
35
 
clean:
36
 
        dh_testdir
37
 
        dh_testroot
38
 
        dh_clean build-stamp install-stamp
39
 
        [ ! -f Makefile ] || $(MAKE) realclean
40
 
 
41
 
install: install-stamp
42
 
install-stamp: build-stamp
43
 
        dh_testdir
44
 
        dh_testroot
45
 
        dh_clean -k
46
 
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
47
 
        [ ! -d $(TMP)/usr/share/perl5 ] || \
48
 
                rmdir --ignore-fail-on-non-empty --parents --verbose \
49
 
                $(TMP)/usr/share/perl5
50
 
        touch $@
51
 
 
52
 
# Build architecture-independent files here.
53
 
binary-indep: build install
54
 
# We have nothing to do here for an architecture-dependent package
55
 
 
56
 
# Build architecture-dependent files here.
57
 
binary-arch: build install
58
 
        dh_testdir
59
 
        dh_testroot
60
 
        dh_installdocs 
61
 
        dh_installchangelogs
62
 
        dh_shlibdeps
63
 
        dh_strip
64
 
        dh_perl
65
 
        dh_compress
66
 
        dh_fixperms
67
 
        dh_installdeb
68
 
        dh_gencontrol
69
 
        dh_md5sums
70
 
        dh_builddeb
71
 
 
72
 
binary: binary-indep binary-arch
73
 
.PHONY: build clean binary-indep binary-arch binary install
 
2
 
 
3
%:
 
4
        dh $@