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-layoutex/
Date: Sat, 30 Mar 2019 09:59:59
Message-Id: 1553939902.ad32d5d527fbd90b744364ac09afb2358a284932.asturm@gentoo
1 commit: ad32d5d527fbd90b744364ac09afb2358a284932
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 29 22:46:37 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 30 09:58:22 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad32d5d5
7
8 dev-libs/icu-layoutex: 64.1 version bump
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 dev-libs/icu-layoutex/Manifest | 1 +
14 dev-libs/icu-layoutex/icu-layoutex-64.1.ebuild | 109 +++++++++++++++++++++++++
15 2 files changed, 110 insertions(+)
16
17 diff --git a/dev-libs/icu-layoutex/Manifest b/dev-libs/icu-layoutex/Manifest
18 index 96711e6dbbe..f77c1e6b6c9 100644
19 --- a/dev-libs/icu-layoutex/Manifest
20 +++ b/dev-libs/icu-layoutex/Manifest
21 @@ -1,2 +1,3 @@
22 DIST icu4c-58_2-src.tgz 23369902 BLAKE2B cdd2e02c3aba050f5b7f8b38c5a3731e3e5f1cc1403ef86a50908b95560ea3cf8a2d47119fa60cf34f22a8b65eaa2392fd5bcbd3bc48b3da541fe3d9bd7392c0 SHA512 5c21af748f48b392e6c0412bd0aee92162ea931820dcbfab4ec6e0299868504b303d88f7586cc95de55c777ac0dca3a29d6c8ca0892c646ebc864c8a5b5a162a
23 DIST icu4c-63_1-src.tgz 23746939 BLAKE2B 5a665554506ff705c83c7a03a1b5598b1a48afbe1c6caaccd5a2d7d5aae16b3e18d7bc65ed552fc4df86248a2f13962438f19bca6c2a579843204c7dc52e6278 SHA512 9ab407ed840a00cdda7470dcc4c40299a125ad246ae4d019c4b1ede54781157fd63af015a8228cd95dbc47e4d15a0932b2c657489046a19788e5e8266eac079c
24 +DIST icu4c-64_1-src.tgz 24013136 BLAKE2B e577bd4c9b822e5ef3a101b3ef46b7b42ca18077d6e05fca543ff1eb702261f017981fb22dd3970662397530b390f648d4417c84dcf3d6ed0d298dd7a8c38897 SHA512 5eca8342d8bdf902689243506643e04512744b33962687e118f6810af6f7fd073678f67b991d2ae9139d257713b63abb4222b96687234df01ad5ff62df16ede0
25
26 diff --git a/dev-libs/icu-layoutex/icu-layoutex-64.1.ebuild b/dev-libs/icu-layoutex/icu-layoutex-64.1.ebuild
27 new file mode 100644
28 index 00000000000..9f738852cf9
29 --- /dev/null
30 +++ b/dev-libs/icu-layoutex/icu-layoutex-64.1.ebuild
31 @@ -0,0 +1,109 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit autotools flag-o-matic multilib-minimal toolchain-funcs
38 +
39 +DESCRIPTION="External layout part of International Components for Unicode"
40 +HOMEPAGE="http://www.icu-project.org/"
41 +SRC_URI="http://download.icu-project.org/files/icu4c/${PV/_/}/icu4c-${PV//./_}-src.tgz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0/${PV}"
45 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
46 +IUSE="debug static-libs"
47 +
48 +BDEPEND="
49 + virtual/pkgconfig[${MULTILIB_USEDEP}]
50 +"
51 +DEPEND="
52 + ~dev-libs/icu-${PV}[${MULTILIB_USEDEP}]
53 + dev-libs/icu-le-hb[${MULTILIB_USEDEP}]
54 +"
55 +RDEPEND="${DEPEND}"
56 +
57 +S="${WORKDIR}/${PN/-layoutex}/source"
58 +
59 +PATCHES=(
60 + "${FILESDIR}/${PN}-58.1-remove-bashisms.patch"
61 +)
62 +
63 +src_prepare() {
64 + # apply patches
65 + default
66 +
67 + # Disable renaming as it is stupid thing to do
68 + sed -i \
69 + -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \
70 + common/unicode/uconfig.h || die
71 +
72 + # Fix linking of icudata
73 + sed -i \
74 + -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \
75 + config/mh-linux || die
76 +
77 + eautoreconf
78 +}
79 +
80 +src_configure() {
81 + # Use C++14
82 + append-cxxflags -std=c++14
83 +
84 + if tc-is-cross-compiler; then
85 + mkdir "${WORKDIR}"/host || die
86 + pushd "${WORKDIR}"/host >/dev/null || die
87 +
88 + CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \
89 + CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \
90 + RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \
91 + "${S}"/configure --disable-renaming --disable-debug \
92 + --disable-samples --enable-static || die
93 + emake
94 +
95 + popd >/dev/null || die
96 + fi
97 +
98 + multilib-minimal_src_configure
99 +}
100 +
101 +multilib_src_configure() {
102 + local myeconfargs=(
103 + --disable-renaming
104 + --disable-samples
105 + --enable-layoutex
106 + $(use_enable debug)
107 + $(use_enable static-libs static)
108 + )
109 +
110 + tc-is-cross-compiler && myeconfargs+=(
111 + --with-cross-build="${WORKDIR}"/host
112 + )
113 +
114 + # icu tries to use clang by default
115 + tc-export CC CXX
116 +
117 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
118 +}
119 +
120 +multilib_src_test() {
121 + # INTLTEST_OPTS: intltest options
122 + # -e: Exhaustive testing
123 + # -l: Reporting of memory leaks
124 + # -v: Increased verbosity
125 + # IOTEST_OPTS: iotest options
126 + # -e: Exhaustive testing
127 + # -v: Increased verbosity
128 + # CINTLTST_OPTS: cintltst options
129 + # -e: Exhaustive testing
130 + # -v: Increased verbosity
131 + pushd layoutex &>/dev/null || die
132 + emake -j1 VERBOSE="1" check
133 + popd &>/dev/null || die
134 +}
135 +
136 +multilib_src_install() {
137 + pushd layoutex &>/dev/null || die
138 + default
139 + popd &>/dev/null || die
140 +}