~ubuntu-branches/ubuntu/hardy/libsyntax-highlight-perl-improved-perl/hardy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jaldhar H. Vyas, gregor herrmann, Jaldhar H. Vyas
  • Date: 2007-08-27 02:12:33 UTC
  • Revision ID: james.westby@ubuntu.com-20070827021233-2xxfwlwn1ok3uj0y
Tags: 1.01-2
[ gregor herrmann ]
* Add watch file.
* Patch viewperl to make it use the actual library we're installing.
* Add manpage for viewperl.

[ Jaldhar H. Vyas ]
* Added location of upstream tarball to debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
include /usr/share/quilt/quilt.make
 
11
 
 
12
# If set to a true value then MakeMaker's prompt function will
 
13
# always return the default without waiting for user input.
 
14
export PERL_MM_USE_DEFAULT=1
 
15
 
 
16
PACKAGE=$(shell dh_listpackages)
 
17
 
 
18
ifndef PERL
 
19
PERL = /usr/bin/perl
 
20
endif
 
21
 
 
22
TMP     =$(CURDIR)/debian/$(PACKAGE)
 
23
 
 
24
build: build-stamp
 
25
build-stamp: patch
 
26
        dh_testdir
 
27
 
 
28
        # Add commands to compile the package here
 
29
        $(PERL) Makefile.PL INSTALLDIRS=vendor
 
30
        $(MAKE) OPTIMIZE="-Wall -O2 -g"
 
31
 
 
32
        touch build-stamp
 
33
 
 
34
clean: unpatch
 
35
        dh_testdir
 
36
        dh_testroot
 
37
 
 
38
        # Add commands to clean up after the build process here
 
39
        [ ! -f Makefile ] || $(MAKE) realclean
 
40
 
 
41
        dh_clean build-stamp install-stamp
 
42
 
 
43
install: build install-stamp
 
44
install-stamp:
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        dh_clean -k
 
48
 
 
49
        # Add commands to install the package into debian/$PACKAGE_NAME here
 
50
        $(MAKE) test
 
51
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 
52
        dh_installdirs usr/bin
 
53
        dh_install viewperl usr/bin
 
54
    
 
55
        # As this is a architecture independent package, we are not
 
56
        # supposed to install stuff to /usr/lib. MakeMaker creates
 
57
        # the dirs, we delete them from the deb:
 
58
        rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
 
59
 
 
60
        touch install-stamp
 
61
 
 
62
binary-arch:
 
63
# We have nothing to do by default.
 
64
 
 
65
binary-indep: build install
 
66
        dh_testdir
 
67
        dh_testroot
 
68
        dh_installdocs README
 
69
        dh_installchangelogs ChangeLog
 
70
        dh_installman debian/viewperl.1
 
71
        dh_perl
 
72
        dh_link
 
73
        dh_strip
 
74
        dh_compress
 
75
        dh_fixperms
 
76
        dh_installdeb
 
77
        dh_gencontrol
 
78
        dh_md5sums
 
79
        dh_builddeb
 
80
 
 
81
source diff:
 
82
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
83
 
 
84
binary: binary-indep binary-arch
 
85
.PHONY: build clean binary-indep binary-arch binary