Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/icu/
Date: Fri, 01 Feb 2019 20:14:46
Message-Id: 1549052060.1da80dd7db754e635f505984fd291b996dd3a416.asturm@gentoo
1 commit: 1da80dd7db754e635f505984fd291b996dd3a416
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 1 20:13:59 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 1 20:14:20 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1da80dd7
7
8 dev-libs/icu: Cleanup vulnerable 60.2
9
10 Bug: https://bugs.gentoo.org/670456
11 Package-Manager: Portage-2.3.59, Repoman-2.3.12
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 dev-libs/icu/Manifest | 1 -
15 dev-libs/icu/icu-60.2.ebuild | 163 -------------------------------------------
16 2 files changed, 164 deletions(-)
17
18 diff --git a/dev-libs/icu/Manifest b/dev-libs/icu/Manifest
19 index bc938ac04a4..96711e6dbbe 100644
20 --- a/dev-libs/icu/Manifest
21 +++ b/dev-libs/icu/Manifest
22 @@ -1,3 +1,2 @@
23 DIST icu4c-58_2-src.tgz 23369902 BLAKE2B cdd2e02c3aba050f5b7f8b38c5a3731e3e5f1cc1403ef86a50908b95560ea3cf8a2d47119fa60cf34f22a8b65eaa2392fd5bcbd3bc48b3da541fe3d9bd7392c0 SHA512 5c21af748f48b392e6c0412bd0aee92162ea931820dcbfab4ec6e0299868504b303d88f7586cc95de55c777ac0dca3a29d6c8ca0892c646ebc864c8a5b5a162a
24 -DIST icu4c-60_2-src.tgz 23317835 BLAKE2B dabd24a9317b44f6852c61c83e808c920d7d29f57d53a7450c68cdad5f84941f771db07fab1f5a16451d59c7aa2750e5a4d5b5fa9a904c43d131529b648263ea SHA512 8e718e66c13e7f25714404c46b91ed6305efff1df70c328be2ec743023a7719016dae72a5fa0a05d6f5599983590a2044ff72d3453a048d987ab546d0416d694
25 DIST icu4c-63_1-src.tgz 23746939 BLAKE2B 5a665554506ff705c83c7a03a1b5598b1a48afbe1c6caaccd5a2d7d5aae16b3e18d7bc65ed552fc4df86248a2f13962438f19bca6c2a579843204c7dc52e6278 SHA512 9ab407ed840a00cdda7470dcc4c40299a125ad246ae4d019c4b1ede54781157fd63af015a8228cd95dbc47e4d15a0932b2c657489046a19788e5e8266eac079c
26
27 diff --git a/dev-libs/icu/icu-60.2.ebuild b/dev-libs/icu/icu-60.2.ebuild
28 deleted file mode 100644
29 index 31e541168d9..00000000000
30 --- a/dev-libs/icu/icu-60.2.ebuild
31 +++ /dev/null
32 @@ -1,163 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -inherit eutils flag-o-matic toolchain-funcs autotools multilib-minimal
39 -
40 -DESCRIPTION="International Components for Unicode"
41 -HOMEPAGE="http://www.icu-project.org/"
42 -SRC_URI="http://download.icu-project.org/files/icu4c/${PV/_/}/icu4c-${PV//./_}-src.tgz"
43 -
44 -LICENSE="BSD"
45 -
46 -SLOT="0/${PV}"
47 -
48 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
49 -IUSE="debug doc examples static-libs"
50 -
51 -DEPEND="
52 - virtual/pkgconfig
53 - doc? (
54 - app-doc/doxygen[dot]
55 - )
56 -"
57 -
58 -S="${WORKDIR}/${PN}/source"
59 -
60 -MULTILIB_CHOST_TOOLS=(
61 - /usr/bin/icu-config
62 -)
63 -
64 -PATCHES=(
65 - "${FILESDIR}/${PN}-58.1-remove-bashisms.patch"
66 - "${FILESDIR}/${PN}-58.2-darwin.patch"
67 -)
68 -
69 -pkg_pretend() {
70 - if tc-is-gcc ; then
71 - if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \
72 - || $(gcc-major-version) -lt 4 ]] ; then
73 - die "You need at least sys-devel/gcc-4.9"
74 - fi
75 - fi
76 -}
77 -
78 -src_prepare() {
79 - # apply patches
80 - default
81 -
82 - local variable
83 -
84 - # Disable renaming as it is stupid thing to do
85 - sed -i \
86 - -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \
87 - common/unicode/uconfig.h || die
88 -
89 - # Fix linking of icudata
90 - sed -i \
91 - -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \
92 - config/mh-linux || die
93 -
94 - # Append doxygen configuration to configure
95 - sed -i \
96 - -e 's:icudefs.mk:icudefs.mk Doxyfile:' \
97 - configure.ac || die
98 -
99 - eautoreconf
100 -}
101 -
102 -src_configure() {
103 - # Use C++14
104 - append-cxxflags -std=c++14
105 -
106 - if tc-is-gcc ; then
107 - if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \
108 - || $(gcc-major-version) -lt 4 ]] ; then
109 - die "You need at least sys-devel/gcc-4.9"
110 - fi
111 - fi
112 -
113 - if tc-is-cross-compiler; then
114 - mkdir "${WORKDIR}"/host || die
115 - pushd "${WORKDIR}"/host >/dev/null || die
116 -
117 - CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \
118 - CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \
119 - RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \
120 - "${S}"/configure --disable-renaming --disable-debug \
121 - --disable-samples --enable-static || die
122 - emake
123 -
124 - popd >/dev/null || die
125 - fi
126 -
127 - multilib-minimal_src_configure
128 -}
129 -
130 -multilib_src_configure() {
131 - local myeconfargs=(
132 - --disable-renaming
133 - --disable-samples
134 - --disable-layoutex
135 - $(use_enable debug)
136 - $(use_enable static-libs static)
137 - )
138 -
139 - multilib_is_native_abi && myeconfargs+=(
140 - $(use_enable examples samples)
141 - )
142 - tc-is-cross-compiler && myeconfargs+=(
143 - --with-cross-build="${WORKDIR}"/host
144 - )
145 -
146 - # icu tries to use clang by default
147 - tc-export CC CXX
148 -
149 - # make sure we configure with the same shell as we run icu-config
150 - # with, or ECHO_N, ECHO_T and ECHO_C will be wrongly defined
151 - export CONFIG_SHELL=${EPREFIX}/bin/sh
152 - # probably have no /bin/sh in prefix-chain
153 - [[ -x ${CONFIG_SHELL} ]] || CONFIG_SHELL=${BASH}
154 -
155 - ECONF_SOURCE=${S} \
156 - econf "${myeconfargs[@]}"
157 -}
158 -
159 -multilib_src_compile() {
160 - default
161 -
162 - if multilib_is_native_abi && use doc; then
163 - doxygen -u Doxyfile || die
164 - doxygen Doxyfile || die
165 - fi
166 -}
167 -
168 -multilib_src_test() {
169 - # INTLTEST_OPTS: intltest options
170 - # -e: Exhaustive testing
171 - # -l: Reporting of memory leaks
172 - # -v: Increased verbosity
173 - # IOTEST_OPTS: iotest options
174 - # -e: Exhaustive testing
175 - # -v: Increased verbosity
176 - # CINTLTST_OPTS: cintltst options
177 - # -e: Exhaustive testing
178 - # -v: Increased verbosity
179 - emake -j1 VERBOSE="1" check
180 -}
181 -
182 -multilib_src_install() {
183 - default
184 -
185 - if multilib_is_native_abi && use doc; then
186 - docinto html
187 - dodoc -r doc/html/*
188 - fi
189 -}
190 -
191 -multilib_src_install_all() {
192 - einstalldocs
193 - docinto html
194 - dodoc ../readme.html
195 -}