Gentoo Archives: gentoo-commits

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