1 |
--- |
2 |
sys-libs/readline/Manifest | 12 -- |
3 |
.../readline/files/readline-5.0-no_rpath.patch | 13 -- |
4 |
.../readline-5.2-no-ignore-shlib-errors.patch | 24 ---- |
5 |
.../readline/files/readline-6.2-rlfe-tgoto.patch | 14 -- |
6 |
sys-libs/readline/metadata.xml | 5 - |
7 |
sys-libs/readline/readline-6.2_p4-r99.ebuild | 110 --------------- |
8 |
sys-libs/readline/readline-6.2_p5-r99.ebuild | 154 --------------------- |
9 |
7 files changed, 332 deletions(-) |
10 |
delete mode 100644 sys-libs/readline/Manifest |
11 |
delete mode 100644 sys-libs/readline/files/readline-5.0-no_rpath.patch |
12 |
delete mode 100644 sys-libs/readline/files/readline-5.2-no-ignore-shlib-errors.patch |
13 |
delete mode 100644 sys-libs/readline/files/readline-6.2-rlfe-tgoto.patch |
14 |
delete mode 100644 sys-libs/readline/metadata.xml |
15 |
delete mode 100644 sys-libs/readline/readline-6.2_p4-r99.ebuild |
16 |
delete mode 100644 sys-libs/readline/readline-6.2_p5-r99.ebuild |
17 |
|
18 |
diff --git a/sys-libs/readline/Manifest b/sys-libs/readline/Manifest |
19 |
deleted file mode 100644 |
20 |
index 7836e0d..0000000 |
21 |
--- a/sys-libs/readline/Manifest |
22 |
+++ /dev/null |
23 |
@@ -1,12 +0,0 @@ |
24 |
-AUX readline-5.0-no_rpath.patch 363 SHA256 59df6107772d1a93550bacc267a2c00f9dfd6d5380b8497d8fd756a7191b9e4b SHA512 c0344c5b831433ad3a8499a91d36615e849a9b520f8ca35cd9cae6d5bc55729adbf97d003e335d210cb3806b2f39af273b4b5f98380dac371dc184053e245bb2 WHIRLPOOL c0d2fe9d1d1f36cf89279f315c373a7385d255ebbeab8ebf1ede7b99196660611499c7db85554b036ad3df4f0b4375558b1d1ce7cbae5f5731172181f7d167ac |
25 |
-AUX readline-5.2-no-ignore-shlib-errors.patch 688 SHA256 2c585c4e2d69d6b91157f378a3dd11cb49beefab808eef3350cf1b8357b2efc6 SHA512 23f88aee11a9ebe15406293695f3de2a7a6c52b8b138c199c64f9dbb9b59d9063f12f8693656e61611e72f6298f7d919016cd240434e78ea2232876690a8b738 WHIRLPOOL ae87d544fa32dbd2b6f27f164dd4e6d0e8a3f399d4a9bde81bcb631985c6e69db11705dc372c21a4f9d3a26cf4279023aeae97fd0d243ca8e1c0e547b59084a4 |
26 |
-AUX readline-6.2-rlfe-tgoto.patch 379 SHA256 6bd5db93cba1cdf751b424a25a1f08c87bae2b42ff59c6c0aa34d659115cbfc1 SHA512 1d2c3aafc949d92fdf6abbee60a60c80f0327f81694d5d8f3a166f1c24d37346caca3e72c9971106b96b2758a9a01269346954fe20bc381eb9da2e6a2737fc3c WHIRLPOOL daab79312136fa728ea77839d6ad663554055e2acd7acff036b8d168f4a0791d57503aa196be4f834caf32ba72ec73c3125adb9b11b5d6898bb796016e83175a |
27 |
-DIST readline-6.2.tar.gz 2277926 SHA256 79a696070a058c233c72dd6ac697021cc64abd5ed51e59db867d66d196a89381 SHA512 fa5b4f1b6f81bc0b3be0739adb06dab0668603ff256fe62b59ebfe21d5a9e340a758a8eef569df8c4c4ecb86cdd9698a6dabc2ee8c70a769de2bd5930c32ff59 WHIRLPOOL 5d92645085f253206c16533e3cb35bb382d6fe616bf2144feb06f9ffb9b4d7cc25ceaa846b98f17aa442552a0e80642a62d57fe20982e0ed8fdefb75c2f9bbf0 |
28 |
-DIST readline62-001 1388 SHA256 38a86c417437692db01069c8ab40a9a8f548e67ad9af0390221b024b1c39b4e3 SHA512 e505161a9ab28f6c1086a6a4ecc5a82da9001d79e4c2b7c44cd82e86dca90bc726ee2387a31e8b4c6893b240877a766fdd913ee7294389722214e6281c518478 WHIRLPOOL 28c63b09a62fa1b64902b04a3c5607da742f7f308648262736240138fa7c957f21856556c8dd2dc08749acf143c271907c69124a978191a5ddb21a6dcf9ee70a |
29 |
-DIST readline62-002 1714 SHA256 1e6349128cb573172063ea007c67af79256889c809973002ca66c5dfc503c7d4 SHA512 e86cb15b4df7b2a4cf68148a3e2414b48f70ad23d9685764627906164a74f31967ba8247510229aa19dfb7f6e8e92ff89164896e79b2d7320d3a62187a9173f5 WHIRLPOOL 444fa6eaa6b3e13728224f49a012f969f736d9b448d4c7da6cf0fdd3cfb33d24ca7566801d0ffa5a642fa581571c485e3c913b4a057a096a665735a84d9fbfe8 |
30 |
-DIST readline62-003 1911 SHA256 cb2131ff352d6e5f82edc09755191f74220b15f026bdb6c52624931c79622374 SHA512 863a4f0725df357fdd4a2ea738a8b81d850f36652705a45a415762a643fcf32f71ecb29f9faf9acd84d0b4b67580329adc491ab3562f0ad6f4b808768539301e WHIRLPOOL 86d10b4c23eef4c64ece0a4537f13cf68198888cfdd83eb38124da8610b971e87dfcdbd64c52fd21ca6d3753298b6582ce15378112d575944ff7d9b68baea3a6 |
31 |
-DIST readline62-004 3335 SHA256 09bd342479ea5bb8b6411bfdf7d302fab2e521d1d241bcb8344d3bad5d9f5476 SHA512 d5c80fb49748b586867a4df0900a73257a2973653c00e1403b9ba4eb5b265cdf6b32b6432f10c23482051f173fe63c18f2b569940b9a609ee29da60ce0ae38b2 WHIRLPOOL 471ace4d86d241d11fb494e885b6e6f78a5938bcbd7f438250e0410849ed2c94ae6743162576412d7d2b7125c2151b009d97295578a716327d8a9cd003543884 |
32 |
-DIST readline62-005 2143 SHA256 ef02905e4d544a5a511142e8b8282e325411200c7eaca4287f413f3ea85cc1f4 SHA512 8717df6034b64cc185e006cd0a00ba80b2cc06406420fb4e080affc4bfe2d4bab07b4d0c8fdd1f5b95692ee6b572199731daeaa64c17a0d799853e132d130e90 WHIRLPOOL 5469407cbc196bfffff890d288ac8dc1a11c34a9ac87baba615587617a3e540331cf54db89de861c8fcc126a443afc91af108d9e94f6234ec80c1ade219b51a0 |
33 |
-EBUILD readline-6.2_p4-r99.ebuild 3020 SHA256 feac9434c2e6ce418a919329cfb9d4ae804d463d6cc43e0d1ae2848477d3c4b5 SHA512 17058b0652f75580bf330e07dcf5dc0df455ad4c51cfdeba2cb8ec4fa1148f16b117d6176de69b00552c7ea2a880a9a014e960e74632b10d3bf45172fdc4a6c8 WHIRLPOOL 5e67c7bef740e0758a6bfc82c334d77f7c44f5038401ca8fc66b827f8ec6b7217002fc4d277484b955c942d0002c8a1c934b891cb9474a013fbdba2c38954fee |
34 |
-EBUILD readline-6.2_p5-r99.ebuild 4081 SHA256 249c584db3fd7638c03f6313600d87e6701b1c86edd18b2e6a972b94521ddb4b SHA512 ca46b44366edc031c791dca4d36037546d234d384319697210b632ec937bf3c939856bdf5812b89dfc399421d57cb9d9dd2cb7f16b074548079a08287f1d0007 WHIRLPOOL 4ccb6f2eb525d4e109a7a4bdfaf38faeb16a9303287dc83c76084caa175adf4d426208147d4f583366ff1813755aa50370222f3f5e2226813322cd0a91b870e1 |
35 |
-MISC metadata.xml 164 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 SHA512 8eb0d5153d388f6ea069c64b93882244816a0a09aecc0d73cb872121ce0eb24c5ccafa96aad0b620b2300f319e1af101fa7fa6c5d0d561719d49bb07da0a2eca WHIRLPOOL 11a1441bddb7a6c69653c663902b7da5767ae6ad515ac2aabfc42fe37927a1ccc21472deeee454009ff720201a41c3e4a912df42661a0a87150fb46126da2d52 |
36 |
diff --git a/sys-libs/readline/files/readline-5.0-no_rpath.patch b/sys-libs/readline/files/readline-5.0-no_rpath.patch |
37 |
deleted file mode 100644 |
38 |
index 624b2d7..0000000 |
39 |
--- a/sys-libs/readline/files/readline-5.0-no_rpath.patch |
40 |
+++ /dev/null |
41 |
@@ -1,13 +0,0 @@ |
42 |
-ripped from Fedora |
43 |
- |
44 |
---- support/shobj-conf |
45 |
-+++ support/shobj-conf |
46 |
-@@ -102,7 +102,7 @@ |
47 |
- SHOBJ_LD='${CC}' |
48 |
- SHOBJ_LDFLAGS='-shared -Wl,-soname,$@' |
49 |
- |
50 |
-- SHLIB_XLDFLAGS='-Wl,-rpath,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`' |
51 |
-+ SHLIB_XLDFLAGS='-Wl,-soname,`basename $@ $(SHLIB_MINOR)`' |
52 |
- SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' |
53 |
- ;; |
54 |
- |
55 |
diff --git a/sys-libs/readline/files/readline-5.2-no-ignore-shlib-errors.patch b/sys-libs/readline/files/readline-5.2-no-ignore-shlib-errors.patch |
56 |
deleted file mode 100644 |
57 |
index fc63491..0000000 |
58 |
--- a/sys-libs/readline/files/readline-5.2-no-ignore-shlib-errors.patch |
59 |
+++ /dev/null |
60 |
@@ -1,24 +0,0 @@ |
61 |
-dont ignore errors in the shlib subdir |
62 |
- |
63 |
-http://bugs.gentoo.org/216952 |
64 |
- |
65 |
---- Makefile.in |
66 |
-+++ Makefile.in |
67 |
-@@ -194,7 +194,7 @@ |
68 |
- |
69 |
- shared: force |
70 |
- -test -d shlib || mkdir shlib |
71 |
-- -( cd shlib ; ${MAKE} ${MFLAGS} all ) |
72 |
-+ ( cd shlib ; ${MAKE} ${MFLAGS} all ) |
73 |
- |
74 |
- documentation: force |
75 |
- -test -d doc || mkdir doc |
76 |
-@@ -238,7 +238,7 @@ |
77 |
- -( cd shlib; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} uninstall ) |
78 |
- |
79 |
- install-shared: installdirs install-headers shared install-doc |
80 |
-- -( cd shlib ; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} install ) |
81 |
-+ ( cd shlib ; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} install ) |
82 |
- |
83 |
- uninstall-shared: maybe-uninstall-headers |
84 |
- -( cd shlib; ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} uninstall ) |
85 |
diff --git a/sys-libs/readline/files/readline-6.2-rlfe-tgoto.patch b/sys-libs/readline/files/readline-6.2-rlfe-tgoto.patch |
86 |
deleted file mode 100644 |
87 |
index b898bf0..0000000 |
88 |
--- a/sys-libs/readline/files/readline-6.2-rlfe-tgoto.patch |
89 |
+++ /dev/null |
90 |
@@ -1,14 +0,0 @@ |
91 |
-https://bugs.gentoo.org/385091 |
92 |
- |
93 |
-https://lists.gnu.org/archive/html/bug-readline/2011-10/msg00000.html |
94 |
- |
95 |
---- a/examples/rlfe/configure |
96 |
-+++ b/examples/rlfe/configure |
97 |
-@@ -4062,6 +4062,7 @@ cat confdefs.h >>conftest.$ac_ext |
98 |
- cat >>conftest.$ac_ext <<_ACEOF |
99 |
- /* end confdefs.h. */ |
100 |
- |
101 |
-+extern char *tgoto(char *, int, int); |
102 |
- main() |
103 |
- { |
104 |
- exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1); |
105 |
diff --git a/sys-libs/readline/metadata.xml b/sys-libs/readline/metadata.xml |
106 |
deleted file mode 100644 |
107 |
index 96a2d58..0000000 |
108 |
--- a/sys-libs/readline/metadata.xml |
109 |
+++ /dev/null |
110 |
@@ -1,5 +0,0 @@ |
111 |
-<?xml version="1.0" encoding="UTF-8"?> |
112 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
113 |
-<pkgmetadata> |
114 |
-<herd>base-system</herd> |
115 |
-</pkgmetadata> |
116 |
diff --git a/sys-libs/readline/readline-6.2_p4-r99.ebuild b/sys-libs/readline/readline-6.2_p4-r99.ebuild |
117 |
deleted file mode 100644 |
118 |
index 54df6a4..0000000 |
119 |
--- a/sys-libs/readline/readline-6.2_p4-r99.ebuild |
120 |
+++ /dev/null |
121 |
@@ -1,110 +0,0 @@ |
122 |
-# Copyright 1999-2013 Gentoo Foundation |
123 |
-# Distributed under the terms of the GNU General Public License v2 |
124 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/readline-6.2_p4.ebuild,v 1.2 2013/02/17 23:40:35 zmedico Exp $ |
125 |
- |
126 |
-inherit eutils multilib toolchain-funcs flag-o-matic |
127 |
- |
128 |
-# Official patches |
129 |
-# See ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/ |
130 |
-PLEVEL=${PV##*_p} |
131 |
-MY_PV=${PV/_p*} |
132 |
-MY_PV=${MY_PV/_/-} |
133 |
-MY_P=${PN}-${MY_PV} |
134 |
-[[ ${PV} != *_p* ]] && PLEVEL=0 |
135 |
-patches() { |
136 |
- [[ ${PLEVEL} -eq 0 ]] && return 1 |
137 |
- local opt=$1 |
138 |
- eval set -- {1..${PLEVEL}} |
139 |
- set -- $(printf "${PN}${MY_PV/\.}-%03d " "$@") |
140 |
- if [[ ${opt} == -s ]] ; then |
141 |
- echo "${@/#/${DISTDIR}/}" |
142 |
- else |
143 |
- local u |
144 |
- for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${PN} ; do |
145 |
- printf "${u}/${PN}-${MY_PV}-patches/%s " "$@" |
146 |
- done |
147 |
- fi |
148 |
-} |
149 |
- |
150 |
-DESCRIPTION="Another cute console display library" |
151 |
-HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html" |
152 |
-SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz $(patches)" |
153 |
- |
154 |
-LICENSE="GPL-3" |
155 |
-SLOT="0" |
156 |
-KEYWORDS="amd64 arm ~mips ppc x86" |
157 |
-IUSE="static-libs" |
158 |
- |
159 |
-RDEPEND=">=sys-libs/ncurses-5.2-r2" |
160 |
-DEPEND="${RDEPEND}" |
161 |
- |
162 |
-S=${WORKDIR}/${MY_P} |
163 |
- |
164 |
-src_unpack() { |
165 |
- unpack ${MY_P}.tar.gz |
166 |
- |
167 |
- cd "${S}" |
168 |
- sed -i -e 's:sgtty:termios:' examples/rlfe/os.h |
169 |
- [[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s) |
170 |
- epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch |
171 |
- epatch "${FILESDIR}"/${PN}-5.2-no-ignore-shlib-errors.patch #216952 |
172 |
- |
173 |
- # force ncurses linking #71420 |
174 |
- sed -i -e 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncurses:' support/shobj-conf || die "sed" |
175 |
- |
176 |
- # fix building under Gentoo/FreeBSD; upstream FreeBSD deprecated |
177 |
- # objformat for years, so we don't want to rely on that. |
178 |
- sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die |
179 |
- |
180 |
- ln -s ../.. examples/rlfe/readline # for local readline headers |
181 |
-} |
182 |
- |
183 |
-src_compile() { |
184 |
- # fix implicit decls with widechar funcs |
185 |
- append-cppflags -D_GNU_SOURCE |
186 |
- # http://lists.gnu.org/archive/html/bug-readline/2010-07/msg00013.html |
187 |
- append-cppflags -Dxrealloc=_rl_realloc -Dxmalloc=_rl_malloc -Dxfree=_rl_free |
188 |
- |
189 |
- # This is for rlfe, but we need to make sure LDFLAGS doesn't change |
190 |
- # so we can re-use the config cache file between the two. |
191 |
- append-ldflags -L. |
192 |
- econf \ |
193 |
- --cache-file="${S}"/config.cache \ |
194 |
- --with-curses \ |
195 |
- $(use_enable static-libs static) |
196 |
- emake || die |
197 |
- |
198 |
- if ! tc-is-cross-compiler ; then |
199 |
- # code is full of AC_TRY_RUN() |
200 |
- cd examples/rlfe |
201 |
- local l |
202 |
- for l in readline history ; do |
203 |
- ln -s ../../shlib/lib${l}$(get_libname)* lib${l}$(get_libname) |
204 |
- ln -sf ../../lib${l}.a lib${l}.a |
205 |
- done |
206 |
- econf --cache-file="${S}"/config.cache |
207 |
- emake || die |
208 |
- fi |
209 |
-} |
210 |
- |
211 |
-src_install() { |
212 |
- emake DESTDIR="${D}" install || die |
213 |
- gen_usr_ldscript -a readline history #4411 |
214 |
- |
215 |
- if ! tc-is-cross-compiler; then |
216 |
- dobin examples/rlfe/rlfe || die |
217 |
- fi |
218 |
- |
219 |
- dodoc CHANGELOG CHANGES README USAGE NEWS |
220 |
- docinto ps |
221 |
- dodoc doc/*.ps |
222 |
- dohtml -r doc |
223 |
-} |
224 |
- |
225 |
-pkg_preinst() { |
226 |
- preserve_old_lib /$(get_libdir)/lib{history,readline}.so.{4,5} #29865 |
227 |
-} |
228 |
- |
229 |
-pkg_postinst() { |
230 |
- preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.{4,5} |
231 |
-} |
232 |
diff --git a/sys-libs/readline/readline-6.2_p5-r99.ebuild b/sys-libs/readline/readline-6.2_p5-r99.ebuild |
233 |
deleted file mode 100644 |
234 |
index ee13305..0000000 |
235 |
--- a/sys-libs/readline/readline-6.2_p5-r99.ebuild |
236 |
+++ /dev/null |
237 |
@@ -1,154 +0,0 @@ |
238 |
-# Copyright 1999-2014 Gentoo Foundation |
239 |
-# Distributed under the terms of the GNU General Public License v2 |
240 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/readline-6.2_p5-r1.ebuild,v 1.14 2014/07/18 10:56:45 pacho Exp $ |
241 |
- |
242 |
-EAPI="4" |
243 |
- |
244 |
-inherit eutils multilib toolchain-funcs flag-o-matic multilib-minimal |
245 |
- |
246 |
-# Official patches |
247 |
-# See ftp://ftp.cwru.edu/pub/bash/readline-6.2-patches/ |
248 |
-PLEVEL=${PV##*_p} |
249 |
-MY_PV=${PV/_p*} |
250 |
-MY_PV=${MY_PV/_/-} |
251 |
-MY_P=${PN}-${MY_PV} |
252 |
-[[ ${PV} != *_p* ]] && PLEVEL=0 |
253 |
-patches() { |
254 |
- [[ ${PLEVEL} -eq 0 ]] && return 1 |
255 |
- local opt=$1 |
256 |
- eval set -- {1..${PLEVEL}} |
257 |
- set -- $(printf "${PN}${MY_PV/\.}-%03d " "$@") |
258 |
- if [[ ${opt} == -s ]] ; then |
259 |
- echo "${@/#/${DISTDIR}/}" |
260 |
- else |
261 |
- local u |
262 |
- for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${PN} ; do |
263 |
- printf "${u}/${PN}-${MY_PV}-patches/%s " "$@" |
264 |
- done |
265 |
- fi |
266 |
-} |
267 |
- |
268 |
-DESCRIPTION="Another cute console display library" |
269 |
-HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html" |
270 |
-SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz $(patches)" |
271 |
- |
272 |
-LICENSE="GPL-3" |
273 |
-SLOT="0" |
274 |
-KEYWORDS="amd64 arm ~mips ppc x86" |
275 |
-IUSE="static-libs" |
276 |
- |
277 |
-RDEPEND=">=sys-libs/ncurses-5.9-r3[${MULTILIB_USEDEP}] |
278 |
- abi_x86_32? ( |
279 |
- !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
280 |
- !<=app-emulation/emul-linux-x86-baselibs-20131008-r7 |
281 |
- )" |
282 |
-DEPEND="${RDEPEND} |
283 |
- virtual/pkgconfig" |
284 |
- |
285 |
-S=${WORKDIR}/${MY_P} |
286 |
- |
287 |
-src_unpack() { |
288 |
- unpack ${MY_P}.tar.gz |
289 |
-} |
290 |
- |
291 |
-src_prepare() { |
292 |
- sed -i -e 's:sgtty:termios:' examples/rlfe/os.h # For musl |
293 |
- [[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s) |
294 |
- epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch |
295 |
- epatch "${FILESDIR}"/${PN}-5.2-no-ignore-shlib-errors.patch #216952 |
296 |
- epatch "${FILESDIR}"/${PN}-6.2-rlfe-tgoto.patch #385091 |
297 |
- |
298 |
- # Force ncurses linking. #71420 |
299 |
- # Use pkg-config to get the right values. #457558 |
300 |
- local ncurses_libs=$($(tc-getPKG_CONFIG) ncurses --libs) |
301 |
- sed -i \ |
302 |
- -e "/^SHLIB_LIBS=/s:=.*:='${ncurses_libs}':" \ |
303 |
- support/shobj-conf || die |
304 |
- sed -i \ |
305 |
- -e "/^[[:space:]]*LIBS=.-lncurses/s:-lncurses:${ncurses_libs}:" \ |
306 |
- examples/rlfe/configure || die |
307 |
- |
308 |
- # fix building under Gentoo/FreeBSD; upstream FreeBSD deprecated |
309 |
- # objformat for years, so we don't want to rely on that. |
310 |
- sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die |
311 |
- |
312 |
- ln -s ../.. examples/rlfe/readline # for local readline headers |
313 |
-} |
314 |
- |
315 |
-src_configure() { |
316 |
- # fix implicit decls with widechar funcs |
317 |
- append-cppflags -D_GNU_SOURCE |
318 |
- # http://lists.gnu.org/archive/html/bug-readline/2010-07/msg00013.html |
319 |
- append-cppflags -Dxrealloc=_rl_realloc -Dxmalloc=_rl_malloc -Dxfree=_rl_free |
320 |
- |
321 |
- # Make sure configure picks a better ar than `ar`. #484866 |
322 |
- export ac_cv_prog_AR=$(tc-getAR) |
323 |
- |
324 |
- # Force the test since we used sed above to force it. |
325 |
- export bash_cv_termcap_lib=ncurses |
326 |
- |
327 |
- # This is for rlfe, but we need to make sure LDFLAGS doesn't change |
328 |
- # so we can re-use the config cache file between the two. |
329 |
- append-ldflags -L. |
330 |
- |
331 |
- multilib-minimal_src_configure |
332 |
-} |
333 |
- |
334 |
-multilib_src_configure() { |
335 |
- ECONF_SOURCE=${S} \ |
336 |
- econf \ |
337 |
- --cache-file="${BUILD_DIR}"/config.cache \ |
338 |
- --with-curses \ |
339 |
- $(use_enable static-libs static) |
340 |
- |
341 |
- if multilib_is_native_abi && ! tc-is-cross-compiler ; then |
342 |
- # code is full of AC_TRY_RUN() |
343 |
- mkdir -p examples/rlfe || die |
344 |
- cd examples/rlfe || die |
345 |
- ECONF_SOURCE=${S}/examples/rlfe \ |
346 |
- econf --cache-file="${BUILD_DIR}"/config.cache |
347 |
- fi |
348 |
-} |
349 |
- |
350 |
-multilib_src_compile() { |
351 |
- emake |
352 |
- |
353 |
- if multilib_is_native_abi && ! tc-is-cross-compiler ; then |
354 |
- # code is full of AC_TRY_RUN() |
355 |
- cd examples/rlfe || die |
356 |
- local l |
357 |
- for l in readline history ; do |
358 |
- ln -s ../../shlib/lib${l}$(get_libname)* lib${l}$(get_libname) |
359 |
- ln -sf ../../lib${l}.a lib${l}.a |
360 |
- done |
361 |
- emake |
362 |
- fi |
363 |
-} |
364 |
- |
365 |
-multilib_src_install() { |
366 |
- default |
367 |
- |
368 |
- if multilib_is_native_abi ; then |
369 |
- gen_usr_ldscript -a readline history #4411 |
370 |
- |
371 |
- if ! tc-is-cross-compiler; then |
372 |
- dobin examples/rlfe/rlfe |
373 |
- fi |
374 |
- fi |
375 |
-} |
376 |
- |
377 |
-multilib_src_install_all() { |
378 |
- einstalldocs |
379 |
- dodoc USAGE |
380 |
- dohtml -r doc/. |
381 |
- docinto ps |
382 |
- dodoc doc/*.ps |
383 |
-} |
384 |
- |
385 |
-pkg_preinst() { |
386 |
- preserve_old_lib /$(get_libdir)/lib{history,readline}.so.{4,5} #29865 |
387 |
-} |
388 |
- |
389 |
-pkg_postinst() { |
390 |
- preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.{4,5} |
391 |
-} |
392 |
-- |
393 |
2.3.6 |