1 |
polynomial-c 14/08/30 08:20:50 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: readline-6.3_p8-r1.ebuild |
5 |
Removed: readline-6.3_p6-r1.ebuild |
6 |
Log: |
7 |
Revbump to fix very long prompts in vi mode. Removed old |
8 |
|
9 |
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
10 |
|
11 |
Revision Changes Path |
12 |
1.216 sys-libs/readline/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/readline/ChangeLog?rev=1.216&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/readline/ChangeLog?rev=1.216&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/readline/ChangeLog?r1=1.215&r2=1.216 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v |
21 |
retrieving revision 1.215 |
22 |
retrieving revision 1.216 |
23 |
diff -u -r1.215 -r1.216 |
24 |
--- ChangeLog 23 Aug 2014 15:34:11 -0000 1.215 |
25 |
+++ ChangeLog 30 Aug 2014 08:20:50 -0000 1.216 |
26 |
@@ -1,6 +1,16 @@ |
27 |
# ChangeLog for sys-libs/readline |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v 1.215 2014/08/23 15:34:11 ago Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v 1.216 2014/08/30 08:20:50 polynomial-c Exp $ |
31 |
+ |
32 |
+*readline-6.3_p8-r1 (30 Aug 2014) |
33 |
+ |
34 |
+ 30 Aug 2014; Lars Wendler <polynomial-c@g.o> |
35 |
+ -readline-6.3_p6-r1.ebuild, +readline-6.3_p8-r1.ebuild, |
36 |
+ +files/readline-6.3-fix-long-prompt-vi-search.patch, |
37 |
+ -files/readline-6.3-horizontal-redisplay.patch, |
38 |
+ -files/readline-6.3-readline-sigint-cleanup.patch, |
39 |
+ -files/readline-6.3-revert-all-at-newline-history-segfault.patch: |
40 |
+ Revbump to fix very long prompts in vi mode. Removed old. |
41 |
|
42 |
23 Aug 2014; Agostino Sarubbo <ago@g.o> readline-6.2_p5-r1.ebuild: |
43 |
Stable for ia64, wrt bug #512012 |
44 |
|
45 |
|
46 |
|
47 |
1.1 sys-libs/readline/readline-6.3_p8-r1.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/readline/readline-6.3_p8-r1.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/readline/readline-6.3_p8-r1.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: readline-6.3_p8-r1.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2014 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/readline-6.3_p8-r1.ebuild,v 1.1 2014/08/30 08:20:50 polynomial-c Exp $ |
57 |
|
58 |
EAPI=4 |
59 |
|
60 |
inherit eutils multilib toolchain-funcs flag-o-matic multilib-minimal |
61 |
|
62 |
# Official patches |
63 |
# See ftp://ftp.cwru.edu/pub/bash/readline-6.3-patches/ |
64 |
PLEVEL=${PV##*_p} |
65 |
MY_PV=${PV/_p*} |
66 |
MY_PV=${MY_PV/_/-} |
67 |
MY_P=${PN}-${MY_PV} |
68 |
[[ ${PV} != *_p* ]] && PLEVEL=0 |
69 |
patches() { |
70 |
[[ ${PLEVEL} -eq 0 ]] && return 1 |
71 |
local opt=$1 |
72 |
eval set -- {1..${PLEVEL}} |
73 |
set -- $(printf "${PN}${MY_PV/\.}-%03d " "$@") |
74 |
if [[ ${opt} == -s ]] ; then |
75 |
echo "${@/#/${DISTDIR}/}" |
76 |
else |
77 |
local u |
78 |
for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${PN} ; do |
79 |
printf "${u}/${PN}-${MY_PV}-patches/%s " "$@" |
80 |
done |
81 |
fi |
82 |
} |
83 |
|
84 |
DESCRIPTION="Another cute console display library" |
85 |
HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html" |
86 |
SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz $(patches)" |
87 |
|
88 |
LICENSE="GPL-3" |
89 |
SLOT="0" |
90 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
91 |
IUSE="static-libs" |
92 |
|
93 |
RDEPEND=">=sys-libs/ncurses-5.9-r3[${MULTILIB_USEDEP}] |
94 |
abi_x86_32? ( |
95 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
96 |
!<=app-emulation/emul-linux-x86-baselibs-20131008-r7 |
97 |
)" |
98 |
DEPEND="${RDEPEND} |
99 |
virtual/pkgconfig" |
100 |
|
101 |
S=${WORKDIR}/${MY_P} |
102 |
|
103 |
src_unpack() { |
104 |
unpack ${MY_P}.tar.gz |
105 |
} |
106 |
|
107 |
src_prepare() { |
108 |
[[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s) |
109 |
epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch |
110 |
epatch "${FILESDIR}"/${PN}-6.2-rlfe-tgoto.patch #385091 |
111 |
epatch "${FILESDIR}"/${PN}-6.3-fix-long-prompt-vi-search.patch |
112 |
|
113 |
# Force ncurses linking. #71420 |
114 |
# Use pkg-config to get the right values. #457558 |
115 |
local ncurses_libs=$($(tc-getPKG_CONFIG) ncurses --libs) |
116 |
sed -i \ |
117 |
-e "/^SHLIB_LIBS=/s:=.*:='${ncurses_libs}':" \ |
118 |
support/shobj-conf || die |
119 |
sed -i \ |
120 |
-e "/^[[:space:]]*LIBS=.-lncurses/s:-lncurses:${ncurses_libs}:" \ |
121 |
examples/rlfe/configure || die |
122 |
|
123 |
# fix building under Gentoo/FreeBSD; upstream FreeBSD deprecated |
124 |
# objformat for years, so we don't want to rely on that. |
125 |
sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die |
126 |
|
127 |
ln -s ../.. examples/rlfe/readline # for local readline headers |
128 |
} |
129 |
|
130 |
src_configure() { |
131 |
# fix implicit decls with widechar funcs |
132 |
append-cppflags -D_GNU_SOURCE |
133 |
# http://lists.gnu.org/archive/html/bug-readline/2010-07/msg00013.html |
134 |
append-cppflags -Dxrealloc=_rl_realloc -Dxmalloc=_rl_malloc -Dxfree=_rl_free |
135 |
|
136 |
# Make sure configure picks a better ar than `ar`. #484866 |
137 |
export ac_cv_prog_AR=$(tc-getAR) |
138 |
|
139 |
# Force the test since we used sed above to force it. |
140 |
export bash_cv_termcap_lib=ncurses |
141 |
|
142 |
# Control cross-compiling cases when we know the right answer. |
143 |
# In cases where the C library doesn't support wide characters, readline |
144 |
# itself won't work correctly, so forcing the answer below should be OK. |
145 |
if tc-is-cross-compiler ; then |
146 |
export bash_cv_func_sigsetjmp='present' |
147 |
export bash_cv_func_ctype_nonascii='yes' |
148 |
export bash_cv_wcwidth_broken='no' #503312 |
149 |
fi |
150 |
|
151 |
# This is for rlfe, but we need to make sure LDFLAGS doesn't change |
152 |
# so we can re-use the config cache file between the two. |
153 |
append-ldflags -L. |
154 |
|
155 |
multilib-minimal_src_configure |
156 |
} |
157 |
|
158 |
multilib_src_configure() { |
159 |
ECONF_SOURCE=${S} \ |
160 |
econf \ |
161 |
--cache-file="${BUILD_DIR}"/config.cache \ |
162 |
--with-curses \ |
163 |
$(use_enable static-libs static) |
164 |
|
165 |
if multilib_is_native_abi && ! tc-is-cross-compiler ; then |
166 |
# code is full of AC_TRY_RUN() |
167 |
mkdir -p examples/rlfe || die |
168 |
cd examples/rlfe || die |
169 |
ECONF_SOURCE=${S}/examples/rlfe \ |
170 |
econf --cache-file="${BUILD_DIR}"/config.cache |
171 |
fi |
172 |
} |
173 |
|
174 |
multilib_src_compile() { |
175 |
emake |
176 |
|
177 |
if multilib_is_native_abi && ! tc-is-cross-compiler ; then |
178 |
# code is full of AC_TRY_RUN() |
179 |
cd examples/rlfe || die |
180 |
local l |
181 |
for l in readline history ; do |
182 |
ln -s ../../shlib/lib${l}$(get_libname)* lib${l}$(get_libname) |
183 |
ln -sf ../../lib${l}.a lib${l}.a |
184 |
done |
185 |
emake |
186 |
fi |
187 |
} |
188 |
|
189 |
multilib_src_install() { |
190 |
default |
191 |
|
192 |
if multilib_is_native_abi ; then |
193 |
gen_usr_ldscript -a readline history #4411 |
194 |
|
195 |
if ! tc-is-cross-compiler; then |
196 |
dobin examples/rlfe/rlfe |
197 |
fi |
198 |
fi |
199 |
} |
200 |
|
201 |
multilib_src_install_all() { |
202 |
einstalldocs |
203 |
dodoc USAGE |
204 |
dohtml -r doc/. |
205 |
docinto ps |
206 |
dodoc doc/*.ps |
207 |
} |
208 |
|
209 |
pkg_preinst() { |
210 |
preserve_old_lib /$(get_libdir)/lib{history,readline}.so.{4,5} #29865 |
211 |
} |
212 |
|
213 |
pkg_postinst() { |
214 |
preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.{4,5} |
215 |
} |