Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/icu/
Date: Wed, 29 Apr 2020 20:44:21
Message-Id: 1588193052.26c70722571a2c42f3648fa9b415d038450570ec.polynomial-c@gentoo
1 commit: 26c70722571a2c42f3648fa9b415d038450570ec
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 29 20:09:12 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 29 20:44:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26c70722
7
8 dev-libs/icu: Bump to version 67.1
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-libs/icu/Manifest | 1 +
14 dev-libs/icu/icu-67.1.ebuild | 141 +++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 142 insertions(+)
16
17 diff --git a/dev-libs/icu/Manifest b/dev-libs/icu/Manifest
18 index 4f872322419..b0ef99e45df 100644
19 --- a/dev-libs/icu/Manifest
20 +++ b/dev-libs/icu/Manifest
21 @@ -1,2 +1,3 @@
22 DIST icu4c-65_1-src.tgz 24267934 BLAKE2B 3c62781201c02a2b1027c9b6db4586f8ccdfb339c0765301a381242d5218f3503a1cdbdc1dc9a1a23ffa657096adc4bf7f0b7fe702461f14beba293a7e82e02c SHA512 8f1ef33e1f4abc9a8ee870331c59f01b473d6da1251a19ce403f822f3e3871096f0791855d39c8f20c612fc49cda2c62c06864aa32ddab2dbd186d2b21ce9139
23 DIST icu4c-66_1-src.tgz 24361305 BLAKE2B db26e9380305601f8429366e2813ce3ccae11f34adde513d72a1ae09281a2078ce5eb7410bc788c717167018b4c2042fc83217fac22f34e26b94ee4621a6b4ec SHA512 78d87bce65a7bdf7e9a19bda13e353c60846816ff34025f829d1ff15f9ac49aa6061eb192173742be0eca105684ce0e39e95656147afe848520bf60274c8d246
24 +DIST icu4c-67_1-src.tgz 24518055 BLAKE2B f8a263b5c3e5e8ffea88a3bb766cb265aac026b5f9b2f45a1f06076f99f9f0dc3a4512487652d774ccfc8dc65f8f4c40a974e0aa2aa4381ee0c9885f6b871779 SHA512 4779f1ce1ca7976f6fad6768853ea8c540da54d11509e3b6cfd864a04b5f2db1c3d4b546387f91ad02fb90804525bc37d2543173f0d705d6ca11dc6f2b7640a8
25
26 diff --git a/dev-libs/icu/icu-67.1.ebuild b/dev-libs/icu/icu-67.1.ebuild
27 new file mode 100644
28 index 00000000000..50248a6dbbd
29 --- /dev/null
30 +++ b/dev-libs/icu/icu-67.1.ebuild
31 @@ -0,0 +1,141 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{6,7,8} )
38 +inherit autotools flag-o-matic multilib-minimal python-any-r1 toolchain-funcs
39 +
40 +DESCRIPTION="International Components for Unicode"
41 +HOMEPAGE="http://site.icu-project.org/"
42 +SRC_URI="https://github.com/unicode-org/icu/releases/download/release-${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 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
49 +IUSE="debug doc examples static-libs"
50 +
51 +BDEPEND="${PYTHON_DEPS}
52 + virtual/pkgconfig
53 + doc? ( app-doc/doxygen[dot] )
54 +"
55 +
56 +S="${WORKDIR}/${PN}/source"
57 +
58 +MULTILIB_CHOST_TOOLS=(
59 + /usr/bin/icu-config
60 +)
61 +
62 +PATCHES=(
63 + "${FILESDIR}/${PN}-65.1-remove-bashisms.patch"
64 + "${FILESDIR}/${PN}-64.2-darwin.patch"
65 +)
66 +
67 +src_prepare() {
68 + default
69 +
70 + local variable
71 +
72 + # Disable renaming as it is stupid thing to do
73 + sed -i \
74 + -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \
75 + common/unicode/uconfig.h || die
76 +
77 + # Fix linking of icudata
78 + sed -i \
79 + -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \
80 + config/mh-linux || die
81 +
82 + # Append doxygen configuration to configure
83 + sed -i \
84 + -e 's:icudefs.mk:icudefs.mk Doxyfile:' \
85 + configure.ac || die
86 +
87 + eautoreconf
88 +}
89 +
90 +src_configure() {
91 + append-cxxflags -std=c++14
92 +
93 + if tc-is-cross-compiler; then
94 + mkdir "${WORKDIR}"/host || die
95 + pushd "${WORKDIR}"/host >/dev/null || die
96 +
97 + CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \
98 + CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \
99 + RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \
100 + "${S}"/configure --disable-renaming --disable-debug \
101 + --disable-samples --enable-static || die
102 + emake
103 +
104 + popd >/dev/null || die
105 + fi
106 +
107 + multilib-minimal_src_configure
108 +}
109 +
110 +multilib_src_configure() {
111 + local myeconfargs=(
112 + --disable-renaming
113 + --disable-samples
114 + --disable-layoutex
115 + $(use_enable debug)
116 + $(use_enable static-libs static)
117 + $(multilib_native_use_enable examples samples)
118 + )
119 +
120 + tc-is-cross-compiler && myeconfargs+=(
121 + --with-cross-build="${WORKDIR}"/host
122 + )
123 +
124 + # icu tries to use clang by default
125 + tc-export CC CXX
126 +
127 + # make sure we configure with the same shell as we run icu-config
128 + # with, or ECHO_N, ECHO_T and ECHO_C will be wrongly defined
129 + export CONFIG_SHELL="${EPREFIX}/bin/sh"
130 + # probably have no /bin/sh in prefix-chain
131 + [[ -x ${CONFIG_SHELL} ]] || CONFIG_SHELL="${BASH}"
132 +
133 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
134 +}
135 +
136 +multilib_src_compile() {
137 + default
138 +
139 + if multilib_is_native_abi && use doc; then
140 + doxygen -u Doxyfile || die
141 + doxygen Doxyfile || die
142 + fi
143 +}
144 +
145 +multilib_src_test() {
146 + # INTLTEST_OPTS: intltest options
147 + # -e: Exhaustive testing
148 + # -l: Reporting of memory leaks
149 + # -v: Increased verbosity
150 + # IOTEST_OPTS: iotest options
151 + # -e: Exhaustive testing
152 + # -v: Increased verbosity
153 + # CINTLTST_OPTS: cintltst options
154 + # -e: Exhaustive testing
155 + # -v: Increased verbosity
156 + emake -j1 VERBOSE="1" check
157 +}
158 +
159 +multilib_src_install() {
160 + default
161 +
162 + if multilib_is_native_abi && use doc; then
163 + docinto html
164 + dodoc -r doc/html/*
165 + fi
166 +}
167 +
168 +multilib_src_install_all() {
169 + einstalldocs
170 + docinto html
171 + dodoc ../readme.html
172 +}