Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/icu/
Date: Sat, 27 May 2017 21:39:30
Message-Id: 1495921146.db9f3be0288ac79f479f53f6c2a112ce418ba7b1.dilfridge@gentoo
1 commit: db9f3be0288ac79f479f53f6c2a112ce418ba7b1
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 27 21:38:25 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat May 27 21:39:06 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db9f3be0
7
8 dev-libs/icu: Remove old
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-libs/icu/icu-58.2.ebuild | 157 -------------------------------------------
13 1 file changed, 157 deletions(-)
14
15 diff --git a/dev-libs/icu/icu-58.2.ebuild b/dev-libs/icu/icu-58.2.ebuild
16 deleted file mode 100644
17 index c196c5b8917..00000000000
18 --- a/dev-libs/icu/icu-58.2.ebuild
19 +++ /dev/null
20 @@ -1,157 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -inherit eutils flag-o-matic toolchain-funcs autotools multilib-minimal
27 -
28 -DESCRIPTION="International Components for Unicode"
29 -HOMEPAGE="http://www.icu-project.org/"
30 -SRC_URI="http://download.icu-project.org/files/icu4c/${PV/_/}/icu4c-${PV//./_}-src.tgz"
31 -
32 -LICENSE="BSD"
33 -
34 -SLOT="0/${PV}"
35 -
36 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
37 -IUSE="debug doc examples static-libs"
38 -
39 -DEPEND="
40 - virtual/pkgconfig
41 - doc? (
42 - app-doc/doxygen[dot]
43 - )
44 -"
45 -
46 -S="${WORKDIR}/${PN}/source"
47 -
48 -MULTILIB_CHOST_TOOLS=(
49 - /usr/bin/icu-config
50 -)
51 -
52 -PATCHES=(
53 - "${FILESDIR}/${PN}-58.1-remove-bashisms.patch"
54 - "${FILESDIR}/${PN}-58.1-iterator.patch"
55 -)
56 -
57 -pkg_pretend() {
58 - if tc-is-gcc ; then
59 - if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \
60 - || $(gcc-major-version) -lt 4 ]] ; then
61 - die "You need at least sys-devel/gcc-4.9"
62 - fi
63 - fi
64 -}
65 -
66 -src_prepare() {
67 - # apply patches
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 - # Use C++14
92 - append-cxxflags -std=c++14
93 -
94 - if tc-is-gcc ; then
95 - if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \
96 - || $(gcc-major-version) -lt 4 ]] ; then
97 - die "You need at least sys-devel/gcc-4.9"
98 - fi
99 - fi
100 -
101 - if tc-is-cross-compiler; then
102 - mkdir "${WORKDIR}"/host || die
103 - pushd "${WORKDIR}"/host >/dev/null || die
104 -
105 - CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \
106 - CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \
107 - RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \
108 - "${S}"/configure --disable-renaming --disable-debug \
109 - --disable-samples --enable-static || die
110 - emake
111 -
112 - popd >/dev/null || die
113 - fi
114 -
115 - multilib-minimal_src_configure
116 -}
117 -
118 -multilib_src_configure() {
119 - local myeconfargs=(
120 - --disable-renaming
121 - --disable-samples
122 - --disable-layoutex
123 - $(use_enable debug)
124 - $(use_enable static-libs static)
125 - )
126 -
127 - multilib_is_native_abi && myeconfargs+=(
128 - $(use_enable examples samples)
129 - )
130 - tc-is-cross-compiler && myeconfargs+=(
131 - --with-cross-build="${WORKDIR}"/host
132 - )
133 -
134 - # icu tries to use clang by default
135 - tc-export CC CXX
136 -
137 - ECONF_SOURCE=${S} \
138 - econf "${myeconfargs[@]}"
139 -}
140 -
141 -multilib_src_compile() {
142 - default
143 -
144 - if multilib_is_native_abi && use doc; then
145 - doxygen -u Doxyfile || die
146 - doxygen Doxyfile || die
147 - fi
148 -}
149 -
150 -multilib_src_test() {
151 - # INTLTEST_OPTS: intltest options
152 - # -e: Exhaustive testing
153 - # -l: Reporting of memory leaks
154 - # -v: Increased verbosity
155 - # IOTEST_OPTS: iotest options
156 - # -e: Exhaustive testing
157 - # -v: Increased verbosity
158 - # CINTLTST_OPTS: cintltst options
159 - # -e: Exhaustive testing
160 - # -v: Increased verbosity
161 - emake -j1 VERBOSE="1" check
162 -}
163 -
164 -multilib_src_install() {
165 - default
166 -
167 - if multilib_is_native_abi && use doc; then
168 - docinto html
169 - dodoc -r doc/html/*
170 - fi
171 -}
172 -
173 -multilib_src_install_all() {
174 - einstalldocs
175 - docinto html
176 - dodoc ../readme.html
177 -}