~ubuntu-branches/ubuntu/maverick/libdata-structure-util-perl/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Yu, gregor herrmann, Ansgar Burchardt, Franck Joncourt, Jonathan Yu
  • Date: 2010-02-15 13:32:04 UTC
  • Revision ID: james.westby@ubuntu.com-20100215133204-arjtr1kvczxookjf
Tags: 0.15-2
[ gregor herrmann ]
* debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
  field (source stanza).
* debian/control: Added: Homepage field (source stanza).
* debian/control: Changed: Maintainer set to Debian Perl Group <pkg-
  perl-maintainers@lists.alioth.debian.org> (was: Jonathan McDowell
  <noodles@earth.li>); Jonathan McDowell <noodles@earth.li> moved to
  Uploaders.
* debian/watch: use dist-based URL.

[ Ansgar Burchardt ]
* Refresh rules for debhelper 7.
* Convert debian/copyright to proposed machine-readable format.
* debian/control: Drop build-dep on libmodule-build-perl.
* debian/control: Make build-dep on perl unversioned.
* Install bin/packages.pl as an example.
* Use source format 3.0 (quilt).
* Bump Standards-Version to 3.8.4.
* Add myself to Uploaders.

[ Franck Joncourt ]
* Removed BD on libclone-perl.

[ Jonathan Yu ]
* Rewrite control description
* Add myself to Uploaders and Copyright
* Properly update to DEP5 format

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
 
PACKAGE=$(shell dh_listpackages)
15
 
 
16
 
ifndef PERL
17
 
PERL = /usr/bin/perl
18
 
endif
19
 
 
20
 
TMP     =$(CURDIR)/debian/$(PACKAGE)
21
 
 
22
 
# Allow disabling build optimation by setting noopt in
23
 
# $DEB_BUILD_OPTIONS
24
 
CFLAGS = -Wall -g
25
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
26
 
        CFLAGS += -O0
27
 
else
28
 
        CFLAGS += -O2
29
 
endif
30
 
 
31
 
build: build-stamp
32
 
build-stamp:
33
 
        dh_testdir
34
 
 
35
 
        # Add commands to compile the package here
36
 
        $(PERL) Makefile.PL installdirs=vendor
37
 
        OPTIMIZE="$(CFLAGS)" make
38
 
 
39
 
        touch build-stamp
40
 
 
41
 
clean:
42
 
        dh_testdir
43
 
        dh_testroot
44
 
 
45
 
        # Add commands to clean up after the build process here
46
 
        [ ! -f Makefile ] || make distclean
47
 
 
48
 
        dh_clean build-stamp install-stamp
49
 
 
50
 
install: build install-stamp
51
 
install-stamp:
52
 
        dh_testdir
53
 
        dh_testroot
54
 
        dh_clean -k
55
 
 
56
 
        make test
57
 
        make install DESTDIR=$(TMP)
58
 
 
59
 
        touch install-stamp
60
 
 
61
 
# Build architecture-independent files here.
62
 
binary-indep: build install
63
 
# We have nothing to do by default.
64
 
 
65
 
# Build architecture-dependent files here.
66
 
binary-arch: build install
67
 
        dh_testdir
68
 
        dh_testroot
69
 
        dh_installdocs README
70
 
        dh_installexamples 
71
 
#       dh_installmenu
72
 
#       dh_installcron
73
 
#       dh_installman
74
 
        dh_installchangelogs CHANGES
75
 
        dh_link
76
 
        dh_strip
77
 
        dh_compress
78
 
        dh_fixperms
79
 
        dh_makeshlibs
80
 
        dh_installdeb
81
 
        dh_perl 
82
 
        dh_shlibdeps
83
 
        dh_gencontrol
84
 
        dh_md5sums
85
 
        dh_builddeb
86
 
 
87
 
source diff:                                                                  
88
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
89
 
 
90
 
binary: binary-indep binary-arch
91
 
.PHONY: build clean binary-indep binary-arch binary
 
2
%:
 
3
        dh $@
 
4
 
 
5
override_dh_auto_build:
 
6
        dh_auto_build -- OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""