Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/icu: icu-54.1.ebuild ChangeLog
Date: Sun, 01 Feb 2015 17:00:57
Message-Id: 20150201170052.BA8BC10D60@oystercatcher.gentoo.org
1 mgorny 15/02/01 17:00:52
2
3 Modified: ChangeLog
4 Added: icu-54.1.ebuild
5 Log:
6 Version bump. Force C++98 to avoid implicitly switching to C++11. Multilib-wrap icu-config.
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.292 dev-libs/icu/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/ChangeLog?rev=1.292&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/ChangeLog?rev=1.292&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/ChangeLog?r1=1.291&r2=1.292
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/icu/ChangeLog,v
20 retrieving revision 1.291
21 retrieving revision 1.292
22 diff -u -r1.291 -r1.292
23 --- ChangeLog 9 Jan 2015 21:56:23 -0000 1.291
24 +++ ChangeLog 1 Feb 2015 17:00:52 -0000 1.292
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-libs/icu
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/icu/ChangeLog,v 1.291 2015/01/09 21:56:23 remi Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/icu/ChangeLog,v 1.292 2015/02/01 17:00:52 mgorny Exp $
30 +
31 +*icu-54.1 (01 Feb 2015)
32 +
33 + 01 Feb 2015; Michał Górny <mgorny@g.o> +icu-54.1.ebuild:
34 + Version bump. Force C++98 to avoid implicitly switching to C++11. Multilib-
35 + wrap icu-config.
36
37 *icu-53.1-r2 (09 Jan 2015)
38
39
40
41
42 1.1 dev-libs/icu/icu-54.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/icu-54.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/icu-54.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: icu-54.1.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-libs/icu/icu-54.1.ebuild,v 1.1 2015/02/01 17:00:52 mgorny Exp $
52
53 EAPI=5
54
55 inherit eutils flag-o-matic toolchain-funcs autotools multilib-minimal
56
57 DESCRIPTION="International Components for Unicode"
58 HOMEPAGE="http://www.icu-project.org/"
59 SRC_URI="http://download.icu-project.org/files/icu4c/${PV/_/}/icu4c-${PV//./_}-src.tgz"
60
61 LICENSE="BSD"
62
63 SLOT="0/54"
64
65 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
66 IUSE="debug doc examples static-libs"
67
68 DEPEND="
69 doc? (
70 app-doc/doxygen[dot]
71 )
72 "
73
74 S="${WORKDIR}/${PN}/source"
75
76 MULTILIB_CHOST_TOOLS=(
77 /usr/bin/icu-config
78 )
79
80 src_prepare() {
81 local variable
82
83 epatch "${FILESDIR}/${PN}-remove-bashisms.patch"
84 epatch_user
85
86 # Disable renaming as it is stupind thing to do
87 sed -i \
88 -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \
89 common/unicode/uconfig.h || die
90
91 # Fix linking of icudata
92 sed -i \
93 -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \
94 config/mh-linux || die
95
96 # Append doxygen configuration to configure
97 sed -i \
98 -e 's:icudefs.mk:icudefs.mk Doxyfile:' \
99 configure.ac || die
100
101 eautoreconf
102 }
103
104 src_configure() {
105 # Do _not_ use C++11 yet, make sure to force GNU C++ 98 standard.
106 append-cxxflags -std=gnu++98
107
108 if tc-is-cross-compiler; then
109 mkdir "${WORKDIR}"/host || die
110 pushd "${WORKDIR}"/host >/dev/null || die
111
112 CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \
113 CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \
114 RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \
115 "${S}"/configure --disable-renaming --disable-debug \
116 --disable-samples --enable-static || die
117 emake
118
119 popd >/dev/null || die
120 fi
121
122 multilib-minimal_src_configure
123 }
124
125 multilib_src_configure() {
126 local myeconfargs=(
127 --disable-renaming
128 --disable-samples
129 $(use_enable debug)
130 $(use_enable static-libs static)
131 )
132
133 multilib_is_native_abi && myeconfargs+=(
134 $(use_enable examples samples)
135 )
136 tc-is-cross-compiler && myeconfargs+=(
137 --with-cross-build="${WORKDIR}"/host
138 )
139
140 # icu tries to use clang by default
141 tc-export CC CXX
142
143 ECONF_SOURCE=${S} \
144 econf "${myeconfargs[@]}"
145 }
146
147 multilib_src_compile() {
148 default
149
150 if multilib_is_native_abi && use doc; then
151 doxygen -u Doxyfile || die
152 doxygen Doxyfile || die
153 fi
154 }
155
156 multilib_src_test() {
157 # INTLTEST_OPTS: intltest options
158 # -e: Exhaustive testing
159 # -l: Reporting of memory leaks
160 # -v: Increased verbosity
161 # IOTEST_OPTS: iotest options
162 # -e: Exhaustive testing
163 # -v: Increased verbosity
164 # CINTLTST_OPTS: cintltst options
165 # -e: Exhaustive testing
166 # -v: Increased verbosity
167 emake -j1 VERBOSE="1" check
168 }
169
170 multilib_src_install() {
171 default
172
173 if multilib_is_native_abi && use doc; then
174 dohtml -p api -r doc/html/
175 fi
176 }
177
178 multilib_src_install_all() {
179 einstalldocs
180 dohtml ../readme.html
181 }