1 |
commit: acf7e0fe996d39ee62dee482f66e17911132471b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 30 07:21:36 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 30 07:21:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acf7e0fe |
7 |
|
8 |
sys-libs/readline: drop 8.1_p2 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-libs/readline/readline-8.1_p2.ebuild | 206 ------------------------------- |
13 |
1 file changed, 206 deletions(-) |
14 |
|
15 |
diff --git a/sys-libs/readline/readline-8.1_p2.ebuild b/sys-libs/readline/readline-8.1_p2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 72ba36ee3ea8..000000000000 |
18 |
--- a/sys-libs/readline/readline-8.1_p2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,206 +0,0 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
- |
26 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/chetramey.asc |
27 |
-inherit flag-o-matic multilib multilib-minimal preserve-libs toolchain-funcs usr-ldscript verify-sig |
28 |
- |
29 |
-# Official patches |
30 |
-# See ftp://ftp.cwru.edu/pub/bash/readline-8.1-patches/ |
31 |
-PLEVEL="${PV##*_p}" |
32 |
-MY_PV="${PV/_p*}" |
33 |
-MY_PV="${MY_PV/_/-}" |
34 |
-MY_P="${PN}-${MY_PV}" |
35 |
-[[ ${PV} != *_p* ]] && PLEVEL=0 |
36 |
-patches() { |
37 |
- [[ ${PLEVEL} -eq 0 ]] && return 1 |
38 |
- local opt=$1 |
39 |
- eval set -- {1..${PLEVEL}} |
40 |
- set -- $(printf "${PN}${MY_PV/\.}-%03d " "$@") |
41 |
- if [[ ${opt} == -s ]] ; then |
42 |
- echo "${@/#/${DISTDIR}/}" |
43 |
- else |
44 |
- local u |
45 |
- for u in mirror://gnu/${PN} ftp://ftp.cwru.edu/pub/bash ; do |
46 |
- printf "${u}/${PN}-${MY_PV}-patches/%s " "$@" |
47 |
- printf "${u}/${PN}-${MY_PV}-patches/%s.sig " "$@" |
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 |
- SRC_URI+=" verify-sig? ( ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz.sig )" |
59 |
- ;; |
60 |
- *) |
61 |
- SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz $(patches)" |
62 |
- SRC_URI+=" verify-sig? ( mirror://gnu/${PN}/${MY_P}.tar.gz.sig )" |
63 |
- ;; |
64 |
-esac |
65 |
- |
66 |
-LICENSE="GPL-3" |
67 |
-SLOT="0/8" # subslot matches SONAME major |
68 |
-[[ "${PV}" == *_rc* ]] || \ |
69 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
70 |
-IUSE="static-libs +unicode utils" |
71 |
- |
72 |
-RDEPEND=">=sys-libs/ncurses-5.9-r3:=[static-libs?,unicode(+)?,${MULTILIB_USEDEP}]" |
73 |
-DEPEND="${RDEPEND}" |
74 |
-BDEPEND="virtual/pkgconfig |
75 |
- verify-sig? ( sec-keys/openpgp-keys-chetramey )" |
76 |
- |
77 |
-S="${WORKDIR}/${MY_P}" |
78 |
- |
79 |
-PATCHES=( |
80 |
- "${FILESDIR}"/${PN}-5.0-no_rpath.patch |
81 |
- "${FILESDIR}"/${PN}-6.2-rlfe-tgoto.patch #385091 |
82 |
- "${FILESDIR}"/${PN}-7.0-headers.patch |
83 |
- "${FILESDIR}"/${PN}-8.0-headers.patch |
84 |
- "${FILESDIR}"/${PN}-8.0-darwin-shlib-versioning.patch |
85 |
- "${FILESDIR}"/${PN}-8.1-windows-signals.patch |
86 |
-) |
87 |
- |
88 |
-# Needed because we don't want the patches being unpacked |
89 |
-# (which emits annoying and useless error messages) |
90 |
-src_unpack() { |
91 |
- verify-sig_src_unpack |
92 |
- |
93 |
- unpack ${MY_P}.tar.gz |
94 |
-} |
95 |
- |
96 |
-src_prepare() { |
97 |
- [[ ${PLEVEL} -gt 0 ]] && eapply -p0 $(patches -s) |
98 |
- default |
99 |
- |
100 |
- if use prefix && [[ ! -x "${BROOT}"/usr/bin/pkg-config ]] ; then |
101 |
- # If we're bootstrapping, make a guess. We don't have pkg-config |
102 |
- # around yet. bug #818103. |
103 |
- # Incorrectly populating this leads to underlinked libreadline. |
104 |
- local ncurses_libs |
105 |
- local ncurses_libs_suffix=$(usex unicode w '') |
106 |
- |
107 |
- ncurses_libs="-lncurses${ncurses_libs_suffix}" |
108 |
- |
109 |
- if has_version "sys-libs/ncurses[tinfo(+)]" ; then |
110 |
- ncurses_libs+=" -ltinfo${ncurses_libs_suffix}" |
111 |
- fi |
112 |
- else |
113 |
- # Force ncurses linking. #71420 |
114 |
- # Use pkg-config to get the right values. #457558 |
115 |
- local ncurses_libs=$($(tc-getPKG_CONFIG) ncurses$(usex unicode w '') --libs) |
116 |
- fi |
117 |
- |
118 |
- sed -i \ |
119 |
- -e "/^SHLIB_LIBS=/s:=.*:='${ncurses_libs}':" \ |
120 |
- support/shobj-conf || die |
121 |
- sed -i \ |
122 |
- -e "/^[[:space:]]*LIBS=.-lncurses/s:-lncurses:${ncurses_libs}:" \ |
123 |
- examples/rlfe/configure || die |
124 |
- |
125 |
- # fix building under Gentoo/FreeBSD; upstream FreeBSD deprecated |
126 |
- # objformat for years, so we don't want to rely on that. |
127 |
- sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die |
128 |
- |
129 |
- ln -s ../.. examples/rlfe/readline || die # for local readline headers |
130 |
-} |
131 |
- |
132 |
-src_configure() { |
133 |
- # fix implicit decls with widechar funcs |
134 |
- append-cppflags -D_GNU_SOURCE |
135 |
- # https://lists.gnu.org/archive/html/bug-readline/2010-07/msg00013.html |
136 |
- append-cppflags -Dxrealloc=_rl_realloc -Dxmalloc=_rl_malloc -Dxfree=_rl_free |
137 |
- |
138 |
- # Make sure configure picks a better ar than `ar`. #484866 |
139 |
- export ac_cv_prog_AR=$(tc-getAR) |
140 |
- |
141 |
- # Force the test since we used sed above to force it. |
142 |
- export bash_cv_termcap_lib=ncurses |
143 |
- |
144 |
- # Control cross-compiling cases when we know the right answer. |
145 |
- # In cases where the C library doesn't support wide characters, readline |
146 |
- # itself won't work correctly, so forcing the answer below should be OK. |
147 |
- if tc-is-cross-compiler ; then |
148 |
- use kernel_Winnt || export bash_cv_func_sigsetjmp='present' |
149 |
- export bash_cv_func_ctype_nonascii='yes' |
150 |
- export bash_cv_wcwidth_broken='no' #503312 |
151 |
- fi |
152 |
- |
153 |
- # This is for rlfe, but we need to make sure LDFLAGS doesn't change |
154 |
- # so we can re-use the config cache file between the two. |
155 |
- append-ldflags -L. |
156 |
- |
157 |
- multilib-minimal_src_configure |
158 |
-} |
159 |
- |
160 |
-multilib_src_configure() { |
161 |
- local myeconfargs=( |
162 |
- --cache-file="${BUILD_DIR}"/config.cache |
163 |
- --with-curses |
164 |
- $(use_enable static-libs static) |
165 |
- ) |
166 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
167 |
- |
168 |
- if use utils && multilib_is_native_abi && ! tc-is-cross-compiler ; then |
169 |
- # code is full of AC_TRY_RUN() |
170 |
- mkdir -p examples/rlfe || die |
171 |
- cd examples/rlfe || die |
172 |
- ECONF_SOURCE="${S}"/examples/rlfe \ |
173 |
- econf --cache-file="${BUILD_DIR}"/config.cache |
174 |
- fi |
175 |
-} |
176 |
- |
177 |
-multilib_src_compile() { |
178 |
- emake |
179 |
- |
180 |
- if use utils && multilib_is_native_abi && ! tc-is-cross-compiler ; then |
181 |
- # code is full of AC_TRY_RUN() |
182 |
- cd examples/rlfe || die |
183 |
- local l |
184 |
- for l in readline history ; do |
185 |
- ln -s ../../shlib/lib${l}$(get_libname)* lib${l}$(get_libname) || die |
186 |
- ln -s ../../lib${l}.a lib${l}.a || die |
187 |
- done |
188 |
- emake |
189 |
- fi |
190 |
-} |
191 |
- |
192 |
-multilib_src_install() { |
193 |
- default |
194 |
- |
195 |
- if multilib_is_native_abi ; then |
196 |
- gen_usr_ldscript -a readline history #4411 |
197 |
- |
198 |
- if use utils && ! tc-is-cross-compiler; then |
199 |
- dobin examples/rlfe/rlfe |
200 |
- fi |
201 |
- fi |
202 |
-} |
203 |
- |
204 |
-multilib_src_install_all() { |
205 |
- HTML_DOCS="doc/history.html doc/readline.html doc/rluserman.html" einstalldocs |
206 |
- dodoc USAGE |
207 |
- docinto ps |
208 |
- dodoc doc/*.ps |
209 |
-} |
210 |
-pkg_preinst() { |
211 |
- # bug #29865 |
212 |
- # Reappeared in #595324 with paludis so keeping this for now... |
213 |
- preserve_old_lib \ |
214 |
- /$(get_libdir)/lib{history,readline}$(get_libname 4) \ |
215 |
- /$(get_libdir)/lib{history,readline}$(get_libname 5) \ |
216 |
- /$(get_libdir)/lib{history,readline}$(get_libname 6) \ |
217 |
- /$(get_libdir)/lib{history,readline}$(get_libname 7) |
218 |
-} |
219 |
- |
220 |
-pkg_postinst() { |
221 |
- preserve_old_lib_notify \ |
222 |
- /$(get_libdir)/lib{history,readline}$(get_libname 4) \ |
223 |
- /$(get_libdir)/lib{history,readline}$(get_libname 5) \ |
224 |
- /$(get_libdir)/lib{history,readline}$(get_libname 6) \ |
225 |
- /$(get_libdir)/lib{history,readline}$(get_libname 7) |
226 |
-} |