~ubuntu-branches/ubuntu/gutsy/icu/gutsy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2006-11-27 21:19:09 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20061127211909-k3ao28m1q5jwa4oc
Tags: 3.6-2
Include patch to fix error in IndicClassTables to fix
worstCaseExpansion for Sinhala.  Thanks to Harshula for forwarding
this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
l_PWD := $(shell pwd)
8
8
l_STAMPS := debian/l_stamps
9
 
l_RUN_CHECK := 0
 
9
l_RUN_CHECK := 1
10
10
 
11
11
# Variables used by cdbs
12
12
 
16
16
DEB_TAR_SRCDIR = icu/source
17
17
DEB_CONFIGURE_USER_FLAGS = --disable-samples --enable-static
18
18
DEB_COMPRESS_EXCLUDE = html examples
19
 
DEB_INSTALL_EXAMPLES_libicu34-dev = \
 
19
DEB_INSTALL_EXAMPLES_libicu36-dev = \
20
20
        build-tree/$(DEB_TAR_SRCDIR)/samples/*
21
21
# Include cdbs rules files.
22
22
include /usr/share/cdbs/1/rules/tarball.mk
24
24
include /usr/share/cdbs/1/rules/debhelper.mk
25
25
include /usr/share/cdbs/1/class/autotools.mk
26
26
 
27
 
# Suppress automatic running of test suite; we do it manually below.
28
 
DEB_BUILD_OPTIONS += nocheck
29
 
 
30
27
DEB_MAKE_INSTALL_TARGET += install-doc
31
28
 
32
 
# Turn off optimization on m68k in hopes of avoiding some internal
33
 
# compiler errors.
34
 
ifeq ($(shell dpkg --print-architecture),m68k)
35
 
CFLAGS := $(filter-out -O%,$(CFLAGS)) -O0
36
 
CXXFLAGS := $(filter-out -O%,$(CXXFLAGS)) -O0
37
 
endif
38
 
 
39
 
# TEMPORARY (hopefully) -- icu 3.4 fails its test suite with gcc 4.0
40
 
# without -fno-strict-aliasing.  This is verified to still be the case
41
 
# in 3.4.1.
42
 
CFLAGS += -fno-strict-aliasing
43
 
CXXFLAGS += -fno-strict-aliasing
44
 
 
45
29
cleanbuilddir::
46
30
        $(RM) -r $(l_STAMPS)
47
31
 
50
34
clean::
51
35
        $(RM) debian/compat *.cdbs-config_list
52
36
 
53
 
# Running the test suite here, even ignoring failure, may still create
54
 
# build problems if the test suite hangs, which it did on at least one
55
 
# occasion.  I (qjb) have manually run the test suite on i386, ia64,
56
 
# and powerpc to ensure that we have a passing test suite on at least
57
 
# one little-endian, one big-endian, and one 64-bit system.
58
 
ifeq ($(l_RUN_CHECK), 1)
59
 
# Run the test suite so we can check its output in the buildd logs,
60
 
# but don't let a test suite failure cause overall failure.
61
 
common-post-build-impl::
62
 
        -$(DEB_MAKE_INVOKE) check
63
 
endif
64
 
 
65
 
install/libicu34-dev::
66
 
        mkdir -p debian/$(cdbs_curpkg)/usr/share/man/man1
67
 
        mkdir -p debian/$(cdbs_curpkg)/usr/share/man/man8
68
 
        cp debian/misc/genbrk.1 debian/$(cdbs_curpkg)/usr/share/man/man1
69
 
        cp debian/misc/icuswap.8 debian/$(cdbs_curpkg)/usr/share/man/man8
70
 
 
71
 
binary-post-install/libicu34-dev::
 
37
# As per upstream, icuswap is deprecated and should not be
 
38
# distributed.
 
39
binary-post-install/libicu36-dev::
72
40
        find debian/$(cdbs_curpkg) -type f -name .cvsignore | xargs rm
 
41
        rm debian/$(cdbs_curpkg)/usr/sbin/icuswap
73
42
 
74
43
# Install lintian override files
75
44
binary-post-install/%::