~ubuntu-branches/ubuntu/saucy/libyaml-tiny-perl/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Damyan Ivanov
  • Date: 2013-03-30 23:35:14 UTC
  • mfrom: (4.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20130330233514-x3l1lmbgbozs9y1h
Tags: 1.51-2
* Take over for the Debian Perl Group with maintainer's permission
  (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610384#20)
* debian/control: Added: Vcs-Git field (source stanza); Vcs-Browser
  field (source stanza). Changed: Homepage field changed to
  metacpan.org URL; Maintainer set to Debian Perl Group <pkg-perl-
  maintainers@lists.alioth.debian.org> (was: John Lightsey
  <lightsey@debian.org>); added myself to Uploaders.
* debian/watch: use metacpan-based URL.
* Standards-Version: 3.9.4 (no changes needed)
* replace debian/rules with dh9 three-liner

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
# Uncomment this to turn on verbose mode.
4
 
#export DH_VERBOSE=1
5
 
 
6
 
# If set to a true value then MakeMaker's prompt function will
7
 
# always return the default without waiting for user input.
8
 
export PERL_MM_USE_DEFAULT=1
9
 
 
10
 
PACKAGE=$(shell dh_listpackages)
11
 
 
12
 
ifndef PERL
13
 
PERL = /usr/bin/perl
14
 
endif
15
 
 
16
 
TMP     =$(CURDIR)/debian/$(PACKAGE)
17
 
 
18
 
build: build-stamp
19
 
build-stamp:
20
 
        dh_testdir
21
 
 
22
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor
23
 
        $(MAKE)
24
 
 
25
 
        touch build-stamp
26
 
 
27
 
clean:
28
 
        dh_testdir
29
 
        dh_testroot
30
 
 
31
 
        [ ! -f Makefile ] || $(MAKE) realclean
32
 
 
33
 
        dh_clean build-stamp install-stamp
34
 
 
35
 
install: build install-stamp
36
 
install-stamp:
37
 
        dh_testdir
38
 
        dh_testroot
39
 
        dh_prep
40
 
 
41
 
        $(MAKE) test
42
 
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
43
 
 
44
 
        # As this is a architecture independent package, we are not
45
 
        # supposed to install stuff to /usr/lib. MakeMaker creates
46
 
        # the dirs, we delete them from the deb:
47
 
        [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
48
 
 
49
 
        touch install-stamp
50
 
 
51
 
binary-arch:
52
 
# We have nothing to do by default.
53
 
 
54
 
binary-indep: build install
55
 
        dh_testdir
56
 
        dh_testroot
57
 
#       dh_installcron
58
 
#       dh_installmenu
59
 
#       dh_installexamples
60
 
        dh_installdocs README
61
 
        dh_installchangelogs Changes
62
 
        dh_perl -d
63
 
        dh_link
64
 
        dh_strip
65
 
        dh_compress
66
 
        dh_fixperms
67
 
        dh_installdeb
68
 
        dh_gencontrol
69
 
        dh_md5sums
70
 
        dh_builddeb
71
 
 
72
 
source diff:                                                                  
73
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
74
 
 
75
 
binary: binary-indep binary-arch
76
 
.PHONY: build clean binary-indep binary-arch binary
 
3
%:
 
4
        dh $@