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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Nov 10 22:48:06 2012 UTC (21 months, 2 weeks ago) by phajdan.jr
Branch: MAIN
Disable automagic detection of c++11, bug #439892 by Arfrever. Patch by Paul Zander.

(Portage version: 2.1.11.31/cvs/Linux i686, signed Manifest commit with key 30427902)

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.2 2012/11/08 15:49:43 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 "${FILESDIR}/${PN}-50.1-no-c++11.patch"
31 )
32
33 src_prepare() {
34 local variable
35
36 base_src_prepare
37
38 # Do not hardcode flags in icu-config and icu-*.pc files.
39 # https://ssl.icu-project.org/trac/ticket/6102
40 for variable in CFLAGS CPPFLAGS CXXFLAGS FFLAGS LDFLAGS; do
41 sed \
42 -e "/^${variable} =.*/s: *@${variable}@\( *$\)\?::" \
43 -i config/icu.pc.in \
44 -i config/Makefile.inc.in \
45 || die
46 done
47
48 # Disable renaming as it is stupind thing to do
49 sed -i \
50 -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \
51 common/unicode/uconfig.h || die
52
53 # Fix linking of icudata
54 sed -i \
55 -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \
56 config/mh-linux || die
57
58 # Append doxygen configuration to configure
59 sed -i \
60 -e 's:icudefs.mk:icudefs.mk Doxyfile:' \
61 configure.in || die
62 eautoreconf
63 }
64
65 src_configure() {
66 local cross_opts
67
68 # bootstrap for cross compilation
69 if tc-is-cross-compiler; then
70 CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \
71 CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \
72 RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \
73 ./configure --disable-renaming --disable-debug \
74 --disable-samples --enable-static || die
75 emake
76 mkdir -p "${WORKDIR}/host/"
77 cp -a {bin,lib,config,tools} "${WORKDIR}/host/"
78 emake clean
79
80 cross_opts="--with-cross-build=${WORKDIR}/host"
81 fi
82
83 econf \
84 --disable-renaming \
85 $(use_enable debug) \
86 $(use_enable examples samples) \
87 $(use_enable static-libs static) \
88 ${cross_opts}
89 }
90
91 src_compile() {
92 default
93
94 if use doc; then
95 doxygen -u Doxyfile || die
96 doxygen Doxyfile || die
97 fi
98 }
99
100 src_test() {
101 # INTLTEST_OPTS: intltest options
102 # -e: Exhaustive testing
103 # -l: Reporting of memory leaks
104 # -v: Increased verbosity
105 # IOTEST_OPTS: iotest options
106 # -e: Exhaustive testing
107 # -v: Increased verbosity
108 # CINTLTST_OPTS: cintltst options
109 # -e: Exhaustive testing
110 # -v: Increased verbosity
111 emake -j1 VERBOSE="1" check
112 }
113
114 src_install() {
115 default
116
117 dohtml ../readme.html
118
119 use doc && dohtml -p api -r doc/html/
120 }

  ViewVC Help
Powered by ViewVC 1.1.20