~ubuntu-branches/ubuntu/intrepid/libperl6-slurp-perl/intrepid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann, Joachim Breitner, gregor herrmann
  • Date: 2008-03-12 00:03:34 UTC
  • Revision ID: james.westby@ubuntu.com-20080312000334-kjvlbwpg2gqh7ohb
Tags: 0.03-6
[ Joachim Breitner ]
* Removed myself from uploaders.

[ gregor herrmann ]
* debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
  field (source stanza); Homepage field (source stanza). Removed: XS-
  Vcs-Svn fields.
* debian/rules:
  - delete /usr/lib/perl5 only if it exists (closes: #467855)
  - update based on dh-make-perl's templates
* debian/watch: use dist-based URL.
* Set Standards-Version to 3.7.3 (no changes).
* Remove ./COPYRIGHT (not in upstream tarball), revert changes to
  MANIFEST.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
# Sample debian/rules that uses debhelper.
4
 
# GNU copyright 1997 to 1999 by Joey Hess.
 
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.
5
6
 
6
7
# Uncomment this to turn on verbose mode.
7
8
#export DH_VERBOSE=1
8
9
 
9
 
PERL    ?= /usr/bin/perl
10
 
 
11
 
package := $(firstword $(shell dh_listpackages))
12
 
prefix  := $(CURDIR)/debian/$(package)/usr
13
 
 
14
 
version := $(shell dpkg-parsechangelog | \
15
 
                sed -ne 's/^Version: *\([0-9]\+:\)*//p')
16
 
 
17
 
tag:
18
 
        cvs tag -c -F $(subst .,_,debian_version_$(version))
19
 
ifeq ($(findstring -,$(version)),)
20
 
        cvs tag -c -F $(subst .,_,upstream_version_$(version))
 
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
21
18
endif
22
19
 
23
 
 
 
20
TMP     =$(CURDIR)/debian/$(PACKAGE)
24
21
 
25
22
build: build-stamp
26
 
 
27
23
build-stamp:
28
24
        dh_testdir
29
25
 
30
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
31
 
        $(MAKE) LD_RUN_PATH=
 
26
        $(PERL) Makefile.PL INSTALLDIRS=vendor
 
27
        $(MAKE)
 
28
        $(MAKE) test
32
29
 
33
 
        touch build-stamp
 
30
        touch $@
34
31
 
35
32
clean:
36
33
        dh_testdir
37
34
        dh_testroot
38
 
        rm -f build-stamp configure-stamp
39
 
 
40
 
        # Add here commands to clean up after the build process.
41
 
        -$(MAKE) distclean
42
 
 
43
 
        dh_clean 
44
 
 
45
 
install: build
 
35
 
 
36
        dh_clean build-stamp install-stamp
 
37
        [ ! -f Makefile ] || $(MAKE) realclean
 
38
 
 
39
install: install-stamp
 
40
install-stamp: build-stamp
46
41
        dh_testdir
47
42
        dh_testroot
48
 
        dh_clean -k 
49
 
        dh_installdirs
50
 
 
51
 
        # Add here commands to install the package into debian/libperl6-slurp-perl.
52
 
        $(MAKE) test
53
 
        $(MAKE) pure_install PREFIX=$(prefix)
54
 
        # As this is a architecture independent package, we are not
55
 
        # supposed to install stuff to /usr/lib. MakeMaker creates
56
 
        # the dirs, we delete them from the deb:
57
 
        rmdir --ignore-fail-on-non-empty --parents $(prefix)/lib/perl5
58
 
 
59
 
 
60
 
# Build architecture-independent files here.
 
43
        dh_clean -k
 
44
 
 
45
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 
46
        [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
 
47
 
 
48
        touch $@
 
49
 
 
50
binary-arch:
 
51
# We have nothing to do here for an architecture-independent package
 
52
 
61
53
binary-indep: build install
62
54
        dh_testdir
63
55
        dh_testroot
 
56
        dh_installdocs
64
57
        dh_installchangelogs Changes
65
 
        dh_installdocs
66
 
        dh_installexamples
67
 
#       dh_install
68
 
#       dh_installmenu
69
 
#       dh_installdebconf       
70
 
#       dh_installlogrotate
71
 
#       dh_installemacsen
72
 
#       dh_installpam
73
 
#       dh_installmime
74
 
#       dh_installinit
75
 
#       dh_installcron
76
 
#       dh_installinfo
77
 
        dh_installman
78
 
        dh_link
79
 
        dh_strip
 
58
        dh_perl
80
59
        dh_compress
81
60
        dh_fixperms
82
 
        dh_perl
83
 
#       dh_python
84
 
#       dh_makeshlibs
85
61
        dh_installdeb
86
 
        dh_shlibdeps
87
62
        dh_gencontrol
88
63
        dh_md5sums
89
64
        dh_builddeb
90
65
 
91
 
 
92
 
# Build architecture-dependent files here.
93
 
binary-arch: build install
 
66
source diff:
 
67
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
94
68
 
95
69
binary: binary-indep binary-arch
96
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
70
.PHONY: build clean binary-indep binary-arch binary install