Gentoo Archives: gentoo-commits

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