/[gentoo-x86]/dev-libs/icu/icu-50.1.ebuild
Gentoo

Contents of /dev-libs/icu/icu-50.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Nov 8 15:49:43 2012 UTC (23 months, 2 weeks ago) by scarabeus
Branch: MAIN
Changes since 1.1: +1 -2 lines
The unicode license left us.

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 8EEE3BE8)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/icu/icu-50.1.ebuild,v 1.1 2012/11/08 13:54:54 scarabeus Exp $
4
5 EAPI=5
6
7 inherit eutils toolchain-funcs base autotools
8
9 DESCRIPTION="International Components for Unicode"
10 HOMEPAGE="http://www.icu-project.org/"
11 SRC_URI="http://download.icu-project.org/files/icu4c/${PV/_/}/icu4c-${PV//./_}-src.tgz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
16 IUSE="debug doc examples static-libs"
17
18 RDEPEND="!dev-libs/icu:0/50"
19 DEPEND="
20 doc? (
21 app-doc/doxygen[dot]
22 )
23 "
24
25 S="${WORKDIR}/${PN}/source"
26
27 PATCHES=(
28 "${FILESDIR}/${PN}-4.8.1-fix_binformat_fonts.patch"
29 "${FILESDIR}/${PN}-4.8.1.1-fix_ltr.patch"
30 )
31
32 src_prepare() {
33 local variable
34
35 base_src_prepare
36
37 # Do not hardcode flags in icu-config and icu-*.pc files.
38 # https://ssl.icu-project.org/trac/ticket/6102
39 for variable in CFLAGS CPPFLAGS CXXFLAGS FFLAGS LDFLAGS; do
40 sed \
41 -e "/^${variable} =.*/s: *@${variable}@\( *$\)\?::" \
42 -i config/icu.pc.in \
43 -i config/Makefile.inc.in \
44 || die
45 done
46
47 # Disable renaming as it is stupind thing to do
48 sed -i \
49 -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \
50 common/unicode/uconfig.h || die
51
52 # Fix linking of icudata
53 sed -i \
54 -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \
55 config/mh-linux || die
56
57 # Append doxygen configuration to configure
58 sed -i \
59 -e 's:icudefs.mk:icudefs.mk Doxyfile:' \
60 configure.in || die
61 eautoreconf
62 }
63
64 src_configure() {
65 local cross_opts
66
67 # bootstrap for cross compilation
68 if tc-is-cross-compiler; then
69 CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \
70 CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \
71 RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \
72 ./configure --disable-renaming --disable-debug \
73 --disable-samples --enable-static || die
74 emake
75 mkdir -p "${WORKDIR}/host/"
76 cp -a {bin,lib,config,tools} "${WORKDIR}/host/"
77 emake clean
78
79 cross_opts="--with-cross-build=${WORKDIR}/host"
80 fi
81
82 econf \
83 --disable-renaming \
84 $(use_enable debug) \
85 $(use_enable examples samples) \
86 $(use_enable static-libs static) \
87 ${cross_opts}
88 }
89
90 src_compile() {
91 default
92
93 if use doc; then
94 doxygen -u Doxyfile || die
95 doxygen Doxyfile || die
96 fi
97 }
98
99 src_test() {
100 # INTLTEST_OPTS: intltest options
101 # -e: Exhaustive testing
102 # -l: Reporting of memory leaks
103 # -v: Increased verbosity
104 # IOTEST_OPTS: iotest options
105 # -e: Exhaustive testing
106 # -v: Increased verbosity
107 # CINTLTST_OPTS: cintltst options
108 # -e: Exhaustive testing
109 # -v: Increased verbosity
110 emake -j1 VERBOSE="1" check
111 }
112
113 src_install() {
114 default
115
116 dohtml ../readme.html
117
118 use doc && dohtml -p api -r doc/html/
119 }

  ViewVC Help
Powered by ViewVC 1.1.20