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