~ubuntu-branches/ubuntu/oneiric/liblocale-gettext-perl/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Hertzog
  • Date: 2008-05-07 09:56:21 UTC
  • mfrom: (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080507095621-n1mg754yqiurlcxl
Tags: 1.05-4
* Put ${perl:Depends} back into Pre-Depends. The revert in 1.05-2 was
  wrong. The pre-dependency is needed to make sure that the right perl
  version is unpacked before liblocale-gettext-perl so that any
  script/module using Locale::Gettext (still) work once this module
  has been unpacked. This is particulary important for transitions like
  perl-5.8 -> perl-5.10 (see #479220 for example).
* New patch debian/patches/compatibility-with-POSIX-module.diff so that
  Locale::Gettext re-exports the LC_* constants coming from POSIX instead
  of those coming from its own XS implementation. Closes: #479803

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
include /usr/share/quilt/quilt.make
9
9
 
10
 
TMP = `pwd`/debian/liblocale-gettext-perl
 
10
TMP = $(CURDIR)/debian/liblocale-gettext-perl
11
11
 
12
 
CFLAGS = -g
 
12
CFLAGS = -g -Wall
13
13
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14
14
CFLAGS += -O0
15
15
else
17
17
endif  
18
18
 
19
19
build: build-stamp
20
 
build-stamp: patch
 
20
build-stamp: $(QUILT_STAMPFN)
21
21
        dh_testdir
22
22
 
23
23
        # Add here commands to compile the package.
24
24
        perl Makefile.PL INSTALLDIRS=vendor 
25
 
        $(MAKE) OPTIMIZE="-Wall $(CFLAGS)"
 
25
        $(MAKE) OPTIMIZE="$(CFLAGS)"
26
26
 
27
 
        touch build-stamp
 
27
        touch $@
28
28
 
29
29
clean: unpatch
30
30
        dh_testdir
42
42
        dh_testdir
43
43
        dh_testroot
44
44
        dh_clean -k
45
 
        dh_installdirs
46
 
 
47
 
        $(MAKE) install PREFIX=$(TMP)/usr
48
 
        [ -d $(TMP)/usr/share/perl5 ] && rmdir $(TMP)/usr/share/perl5/
49
 
 
50
 
        touch install-stamp
 
45
 
 
46
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 
47
        [ ! -d $(TMP)/usr/share/perl5 ] || rmdir $(TMP)/usr/share/perl5/
 
48
 
 
49
        touch $@
51
50
 
52
51
# Build architecture-independent files here.
53
52
binary-indep: build install
55
54
 
56
55
# Build architecture-dependent files here.
57
56
binary-arch: build install
58
 
#       dh_testversion
59
57
        dh_testdir
60
58
        dh_testroot
61
59
        dh_installdocs
62
 
        dh_installexamples
63
 
        dh_installmenu
64
 
#       dh_installemacsen
65
 
#       dh_installinit
66
 
        dh_installcron
67
 
        dh_installman
68
 
#       dh_undocumented
69
 
        dh_installchangelogs 
70
 
        dh_strip 
 
60
        dh_installchangelogs
 
61
        dh_strip
71
62
        dh_compress
72
63
        dh_fixperms
73
64
        dh_installdeb
74
65
        dh_perl -d
75
 
        # HACK: to work around ordering problem on gutsy->hardy upgrades
76
 
        # (see LP: #217435) - this can be removed once hardy is released,
77
 
        # hardy has a apt that fixes this problem
78
 
        sed -i "s/perl-base (>= 5.8.8-12)/perl-base (>= 5.8.8-6)/" debian/liblocale-gettext-perl.substvars
79
66
        dh_shlibdeps
80
67
        dh_gencontrol
81
 
#       dh_makeshlibs
82
68
        dh_md5sums
83
69
        dh_builddeb
84
70