1 |
commit: 80bdf35ff8faef0929418cbd79d841889f66b1ba |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 15 10:47:33 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 15 10:47:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80bdf35f |
7 |
|
8 |
sys-libs/readline: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-libs/readline/readline-7.0_p3-r1.ebuild | 174 ---------------------------- |
14 |
sys-libs/readline/readline-7.0_p3.ebuild | 163 -------------------------- |
15 |
2 files changed, 337 deletions(-) |
16 |
|
17 |
diff --git a/sys-libs/readline/readline-7.0_p3-r1.ebuild b/sys-libs/readline/readline-7.0_p3-r1.ebuild |
18 |
deleted file mode 100644 |
19 |
index 97d60560590..00000000000 |
20 |
--- a/sys-libs/readline/readline-7.0_p3-r1.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,174 +0,0 @@ |
23 |
-# Copyright 1999-2019 Gentoo Authors |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=6 |
27 |
- |
28 |
-inherit flag-o-matic multilib-minimal toolchain-funcs usr-ldscript |
29 |
- |
30 |
-# Official patches |
31 |
-# See ftp://ftp.cwru.edu/pub/bash/readline-7.0-patches/ |
32 |
-PLEVEL="${PV##*_p}" |
33 |
-MY_PV="${PV/_p*}" |
34 |
-MY_PV="${MY_PV/_/-}" |
35 |
-MY_P="${PN}-${MY_PV}" |
36 |
-[[ ${PV} != *_p* ]] && PLEVEL=0 |
37 |
-patches() { |
38 |
- [[ ${PLEVEL} -eq 0 ]] && return 1 |
39 |
- local opt=$1 |
40 |
- eval set -- {1..${PLEVEL}} |
41 |
- set -- $(printf "${PN}${MY_PV/\.}-%03d " "$@") |
42 |
- if [[ ${opt} == -s ]] ; then |
43 |
- echo "${@/#/${DISTDIR}/}" |
44 |
- else |
45 |
- local u |
46 |
- for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${PN} ; do |
47 |
- printf "${u}/${PN}-${MY_PV}-patches/%s " "$@" |
48 |
- done |
49 |
- fi |
50 |
-} |
51 |
- |
52 |
-DESCRIPTION="Another cute console display library" |
53 |
-HOMEPAGE="https://tiswww.case.edu/php/chet/readline/rltop.html" |
54 |
- |
55 |
-case ${PV} in |
56 |
- *_alpha*|*_beta*|*_rc*) |
57 |
- SRC_URI+=" ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz" |
58 |
- ;; |
59 |
- *) |
60 |
- SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz $(patches)" |
61 |
- ;; |
62 |
-esac |
63 |
- |
64 |
-LICENSE="GPL-3" |
65 |
-SLOT="0/7" # subslot matches SONAME major |
66 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
67 |
-IUSE="static-libs utils" |
68 |
- |
69 |
-RDEPEND=">=sys-libs/ncurses-5.9-r3:0=[static-libs?,${MULTILIB_USEDEP}]" |
70 |
-DEPEND="${RDEPEND} |
71 |
- virtual/pkgconfig" |
72 |
- |
73 |
-S=${WORKDIR}/${MY_P} |
74 |
- |
75 |
-PATCHES=( |
76 |
- "${FILESDIR}"/${PN}-5.0-no_rpath.patch |
77 |
- "${FILESDIR}"/${PN}-6.2-rlfe-tgoto.patch #385091 |
78 |
- "${FILESDIR}"/${PN}-7.0-headers.patch |
79 |
- "${FILESDIR}"/${PN}-7.0-missing-echo-proto.patch |
80 |
- "${FILESDIR}"/${PN}-7.0-mingw.patch |
81 |
-) |
82 |
- |
83 |
-# Needed because we don't want the patches being unpacked |
84 |
-# (which emits annoying and useless error messages) |
85 |
-src_unpack() { |
86 |
- unpack ${MY_P}.tar.gz |
87 |
-} |
88 |
- |
89 |
-src_prepare() { |
90 |
- [[ ${PLEVEL} -gt 0 ]] && eapply -p0 $(patches -s) |
91 |
- default |
92 |
- |
93 |
- # Force ncurses linking. #71420 |
94 |
- # Use pkg-config to get the right values. #457558 |
95 |
- local ncurses_libs=$($(tc-getPKG_CONFIG) ncurses --libs) |
96 |
- sed -i \ |
97 |
- -e "/^SHLIB_LIBS=/s:=.*:='${ncurses_libs}':" \ |
98 |
- support/shobj-conf || die |
99 |
- sed -i \ |
100 |
- -e "/^[[:space:]]*LIBS=.-lncurses/s:-lncurses:${ncurses_libs}:" \ |
101 |
- examples/rlfe/configure || die |
102 |
- |
103 |
- # fix building under Gentoo/FreeBSD; upstream FreeBSD deprecated |
104 |
- # objformat for years, so we don't want to rely on that. |
105 |
- sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die |
106 |
- |
107 |
- ln -s ../.. examples/rlfe/readline || die # for local readline headers |
108 |
-} |
109 |
- |
110 |
-src_configure() { |
111 |
- # fix implicit decls with widechar funcs |
112 |
- append-cppflags -D_GNU_SOURCE |
113 |
- # https://lists.gnu.org/archive/html/bug-readline/2010-07/msg00013.html |
114 |
- append-cppflags -Dxrealloc=_rl_realloc -Dxmalloc=_rl_malloc -Dxfree=_rl_free |
115 |
- |
116 |
- # Make sure configure picks a better ar than `ar`. #484866 |
117 |
- export ac_cv_prog_AR=$(tc-getAR) |
118 |
- |
119 |
- # Force the test since we used sed above to force it. |
120 |
- export bash_cv_termcap_lib=ncurses |
121 |
- |
122 |
- # Control cross-compiling cases when we know the right answer. |
123 |
- # In cases where the C library doesn't support wide characters, readline |
124 |
- # itself won't work correctly, so forcing the answer below should be OK. |
125 |
- if tc-is-cross-compiler ; then |
126 |
- use kernel_Winnt || export bash_cv_func_sigsetjmp='present' |
127 |
- export bash_cv_func_ctype_nonascii='yes' |
128 |
- export bash_cv_wcwidth_broken='no' #503312 |
129 |
- fi |
130 |
- |
131 |
- # This is for rlfe, but we need to make sure LDFLAGS doesn't change |
132 |
- # so we can re-use the config cache file between the two. |
133 |
- append-ldflags -L. |
134 |
- |
135 |
- multilib-minimal_src_configure |
136 |
-} |
137 |
- |
138 |
-multilib_src_configure() { |
139 |
- local myeconfargs=( |
140 |
- --cache-file="${BUILD_DIR}"/config.cache |
141 |
- --with-curses |
142 |
- $(use_enable static-libs static) |
143 |
- ) |
144 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
145 |
- |
146 |
- if use utils && multilib_is_native_abi && ! tc-is-cross-compiler ; then |
147 |
- # code is full of AC_TRY_RUN() |
148 |
- mkdir -p examples/rlfe || die |
149 |
- cd examples/rlfe || die |
150 |
- ECONF_SOURCE="${S}"/examples/rlfe \ |
151 |
- econf --cache-file="${BUILD_DIR}"/config.cache |
152 |
- fi |
153 |
-} |
154 |
- |
155 |
-multilib_src_compile() { |
156 |
- emake |
157 |
- |
158 |
- if use utils && multilib_is_native_abi && ! tc-is-cross-compiler ; then |
159 |
- # code is full of AC_TRY_RUN() |
160 |
- cd examples/rlfe || die |
161 |
- local l |
162 |
- for l in readline history ; do |
163 |
- ln -s ../../shlib/lib${l}$(get_libname)* lib${l}$(get_libname) || die |
164 |
- ln -s ../../lib${l}.a lib${l}.a || die |
165 |
- done |
166 |
- emake |
167 |
- fi |
168 |
-} |
169 |
- |
170 |
-multilib_src_install() { |
171 |
- default |
172 |
- |
173 |
- if multilib_is_native_abi ; then |
174 |
- gen_usr_ldscript -a readline history #4411 |
175 |
- |
176 |
- if use utils && ! tc-is-cross-compiler; then |
177 |
- dobin examples/rlfe/rlfe |
178 |
- fi |
179 |
- fi |
180 |
-} |
181 |
- |
182 |
-multilib_src_install_all() { |
183 |
- HTML_DOCS="doc/history.html doc/readline.html doc/rluserman.html" einstalldocs |
184 |
- dodoc USAGE |
185 |
- docinto ps |
186 |
- dodoc doc/*.ps |
187 |
-} |
188 |
-pkg_preinst() { |
189 |
- # bug #29865 |
190 |
- # Reappeared in #595324 with paludis so keeping this for now... |
191 |
- preserve_old_lib /$(get_libdir)/lib{history,readline}.so.{4,5,6} |
192 |
-} |
193 |
- |
194 |
-pkg_postinst() { |
195 |
- preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.{4,5,6} |
196 |
-} |
197 |
|
198 |
diff --git a/sys-libs/readline/readline-7.0_p3.ebuild b/sys-libs/readline/readline-7.0_p3.ebuild |
199 |
deleted file mode 100644 |
200 |
index 551fc0f5d3e..00000000000 |
201 |
--- a/sys-libs/readline/readline-7.0_p3.ebuild |
202 |
+++ /dev/null |
203 |
@@ -1,163 +0,0 @@ |
204 |
-# Copyright 1999-2019 Gentoo Authors |
205 |
-# Distributed under the terms of the GNU General Public License v2 |
206 |
- |
207 |
-EAPI="5" |
208 |
- |
209 |
-inherit eutils multilib toolchain-funcs flag-o-matic multilib-minimal usr-ldscript |
210 |
- |
211 |
-# Official patches |
212 |
-# See ftp://ftp.cwru.edu/pub/bash/readline-7.0-patches/ |
213 |
-PLEVEL=${PV##*_p} |
214 |
-MY_PV=${PV/_p*} |
215 |
-MY_PV=${MY_PV/_/-} |
216 |
-MY_P=${PN}-${MY_PV} |
217 |
-[[ ${PV} != *_p* ]] && PLEVEL=0 |
218 |
-patches() { |
219 |
- [[ ${PLEVEL} -eq 0 ]] && return 1 |
220 |
- local opt=$1 |
221 |
- eval set -- {1..${PLEVEL}} |
222 |
- set -- $(printf "${PN}${MY_PV/\.}-%03d " "$@") |
223 |
- if [[ ${opt} == -s ]] ; then |
224 |
- echo "${@/#/${DISTDIR}/}" |
225 |
- else |
226 |
- local u |
227 |
- for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${PN} ; do |
228 |
- printf "${u}/${PN}-${MY_PV}-patches/%s " "$@" |
229 |
- done |
230 |
- fi |
231 |
-} |
232 |
- |
233 |
-DESCRIPTION="Another cute console display library" |
234 |
-HOMEPAGE="https://tiswww.case.edu/php/chet/readline/rltop.html" |
235 |
-case ${PV} in |
236 |
-*_alpha*|*_beta*|*_rc*) SRC_URI+=" ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz" ;; |
237 |
-*) SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz $(patches)" ;; |
238 |
-esac |
239 |
- |
240 |
-LICENSE="GPL-3" |
241 |
-SLOT="0/7" # subslot matches SONAME major |
242 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
243 |
-IUSE="static-libs utils" |
244 |
- |
245 |
-RDEPEND=">=sys-libs/ncurses-5.9-r3:0=[static-libs?,${MULTILIB_USEDEP}]" |
246 |
-DEPEND="${RDEPEND} |
247 |
- virtual/pkgconfig" |
248 |
- |
249 |
-S=${WORKDIR}/${MY_P} |
250 |
- |
251 |
-src_unpack() { |
252 |
- unpack ${MY_P}.tar.gz |
253 |
-} |
254 |
- |
255 |
-src_prepare() { |
256 |
- [[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s) |
257 |
- epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch |
258 |
- epatch "${FILESDIR}"/${PN}-6.2-rlfe-tgoto.patch #385091 |
259 |
- epatch "${FILESDIR}"/${PN}-7.0-headers.patch |
260 |
- epatch "${FILESDIR}"/${PN}-7.0-missing-echo-proto.patch |
261 |
- |
262 |
- # Force ncurses linking. #71420 |
263 |
- # Use pkg-config to get the right values. #457558 |
264 |
- local ncurses_libs=$($(tc-getPKG_CONFIG) ncurses --libs) |
265 |
- sed -i \ |
266 |
- -e "/^SHLIB_LIBS=/s:=.*:='${ncurses_libs}':" \ |
267 |
- support/shobj-conf || die |
268 |
- sed -i \ |
269 |
- -e "/^[[:space:]]*LIBS=.-lncurses/s:-lncurses:${ncurses_libs}:" \ |
270 |
- examples/rlfe/configure || die |
271 |
- |
272 |
- # fix building under Gentoo/FreeBSD; upstream FreeBSD deprecated |
273 |
- # objformat for years, so we don't want to rely on that. |
274 |
- sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die |
275 |
- |
276 |
- ln -s ../.. examples/rlfe/readline # for local readline headers |
277 |
-} |
278 |
- |
279 |
-src_configure() { |
280 |
- # fix implicit decls with widechar funcs |
281 |
- append-cppflags -D_GNU_SOURCE |
282 |
- # https://lists.gnu.org/archive/html/bug-readline/2010-07/msg00013.html |
283 |
- append-cppflags -Dxrealloc=_rl_realloc -Dxmalloc=_rl_malloc -Dxfree=_rl_free |
284 |
- |
285 |
- # Make sure configure picks a better ar than `ar`. #484866 |
286 |
- export ac_cv_prog_AR=$(tc-getAR) |
287 |
- |
288 |
- # Force the test since we used sed above to force it. |
289 |
- export bash_cv_termcap_lib=ncurses |
290 |
- |
291 |
- # Control cross-compiling cases when we know the right answer. |
292 |
- # In cases where the C library doesn't support wide characters, readline |
293 |
- # itself won't work correctly, so forcing the answer below should be OK. |
294 |
- if tc-is-cross-compiler ; then |
295 |
- export bash_cv_func_sigsetjmp='present' |
296 |
- export bash_cv_func_ctype_nonascii='yes' |
297 |
- export bash_cv_wcwidth_broken='no' #503312 |
298 |
- fi |
299 |
- |
300 |
- # This is for rlfe, but we need to make sure LDFLAGS doesn't change |
301 |
- # so we can re-use the config cache file between the two. |
302 |
- append-ldflags -L. |
303 |
- |
304 |
- multilib-minimal_src_configure |
305 |
-} |
306 |
- |
307 |
-multilib_src_configure() { |
308 |
- ECONF_SOURCE=${S} \ |
309 |
- econf \ |
310 |
- --cache-file="${BUILD_DIR}"/config.cache \ |
311 |
- --docdir='$(datarootdir)'/doc/${PF} \ |
312 |
- --with-curses \ |
313 |
- $(use_enable static-libs static) |
314 |
- |
315 |
- if use utils && multilib_is_native_abi && ! tc-is-cross-compiler ; then |
316 |
- # code is full of AC_TRY_RUN() |
317 |
- mkdir -p examples/rlfe || die |
318 |
- cd examples/rlfe || die |
319 |
- ECONF_SOURCE=${S}/examples/rlfe \ |
320 |
- econf --cache-file="${BUILD_DIR}"/config.cache |
321 |
- fi |
322 |
-} |
323 |
- |
324 |
-multilib_src_compile() { |
325 |
- emake |
326 |
- |
327 |
- if use utils && multilib_is_native_abi && ! tc-is-cross-compiler ; then |
328 |
- # code is full of AC_TRY_RUN() |
329 |
- cd examples/rlfe || die |
330 |
- local l |
331 |
- for l in readline history ; do |
332 |
- ln -s ../../shlib/lib${l}$(get_libname)* lib${l}$(get_libname) |
333 |
- ln -sf ../../lib${l}.a lib${l}.a |
334 |
- done |
335 |
- emake |
336 |
- fi |
337 |
-} |
338 |
- |
339 |
-multilib_src_install() { |
340 |
- default |
341 |
- |
342 |
- if multilib_is_native_abi ; then |
343 |
- gen_usr_ldscript -a readline history #4411 |
344 |
- |
345 |
- if use utils && ! tc-is-cross-compiler; then |
346 |
- dobin examples/rlfe/rlfe |
347 |
- fi |
348 |
- fi |
349 |
-} |
350 |
- |
351 |
-multilib_src_install_all() { |
352 |
- einstalldocs |
353 |
- dodoc USAGE |
354 |
- dohtml -r doc/. |
355 |
- docinto ps |
356 |
- dodoc doc/*.ps |
357 |
-} |
358 |
-pkg_preinst() { |
359 |
- # bug #29865 |
360 |
- # Reappeared in #595324 with paludis so keeping this for now... |
361 |
- preserve_old_lib /$(get_libdir)/lib{history,readline}.so.{4,5,6} |
362 |
-} |
363 |
- |
364 |
-pkg_postinst() { |
365 |
- preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.{4,5,6} |
366 |
-} |