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.0_p4.ebuild ChangeLog
Date: Sat, 29 Aug 2009 16:01:21
Message-Id: E1MhVBk-0006Xu-SI@stork.gentoo.org
1 vapier 09/08/29 21:10:20
2
3 Modified: ChangeLog
4 Added: readline-6.0_p4.ebuild
5 Log:
6 Version bump #283138 by Arfrever Frehtes Taifersar Arahesis.
7 (Portage version: 2.2_rc40/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.130 sys-libs/readline/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/ChangeLog?rev=1.130&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/ChangeLog?rev=1.130&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/ChangeLog?r1=1.129&r2=1.130
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v
19 retrieving revision 1.129
20 retrieving revision 1.130
21 diff -u -r1.129 -r1.130
22 --- ChangeLog 18 May 2009 11:48:26 -0000 1.129
23 +++ ChangeLog 29 Aug 2009 21:10:20 -0000 1.130
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-libs/readline
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v 1.129 2009/05/18 11:48:26 flameeyes Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v 1.130 2009/08/29 21:10:20 vapier Exp $
29 +
30 +*readline-6.0_p4 (29 Aug 2009)
31 +
32 + 29 Aug 2009; Mike Frysinger <vapier@g.o> +readline-6.0_p4.ebuild:
33 + Version bump #283138 by Arfrever Frehtes Taifersar Arahesis.
34
35 18 May 2009; Diego E. Pettenò <flameeyes@g.o>
36 readline-6.0_p3.ebuild:
37
38
39
40 1.1 sys-libs/readline/readline-6.0_p4.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/readline-6.0_p4.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/readline-6.0_p4.ebuild?rev=1.1&content-type=text/plain
44
45 Index: readline-6.0_p4.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/readline-6.0_p4.ebuild,v 1.1 2009/08/29 21:10:20 vapier Exp $
50
51 inherit autotools eutils multilib toolchain-funcs flag-o-matic
52
53 # Official patches
54 # See ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/
55 PLEVEL=${PV##*_p}
56 MY_PV=${PV/_p*}
57 MY_P=${PN}-${MY_PV}
58 [[ ${PV} != *_p* ]] && PLEVEL=0
59 patches() {
60 [[ ${PLEVEL} -eq 0 ]] && return 1
61 local opt=$1
62 eval set -- {1..${PLEVEL}}
63 set -- $(printf "${PN}${MY_PV/\.}-%03d " "$@")
64 if [[ ${opt} == -s ]] ; then
65 echo "${@/#/${DISTDIR}/}"
66 else
67 local u
68 for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${PN} ; do
69 printf "${u}/${PN}-${MY_PV}-patches/%s " "$@"
70 done
71 fi
72 }
73
74 DESCRIPTION="Another cute console display library"
75 HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
76 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz $(patches)"
77
78 LICENSE="GPL-2"
79 SLOT="0"
80 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
81 IUSE=""
82
83 # We must be certain that we have a bash that is linked
84 # to its internal readline, else we may get problems.
85 RDEPEND=">=sys-libs/ncurses-5.2-r2"
86 DEPEND="${RDEPEND}
87 >=app-shells/bash-2.05b-r2"
88
89 S=${WORKDIR}/${MY_P}
90
91 src_unpack() {
92 unpack ${MY_P}.tar.gz
93
94 cd "${S}"
95 [[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
96 epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch
97 epatch "${FILESDIR}"/${PN}-6.0-rlfe-build.patch #151174
98 epatch "${FILESDIR}"/${PN}-5.2-no-ignore-shlib-errors.patch #216952
99
100 # force ncurses linking #71420
101 sed -i -e 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncurses:' support/shobj-conf || die "sed"
102
103 # fix building under Gentoo/FreeBSD; upstream FreeBSD deprecated
104 # objformat for years, so we don't want to rely on that.
105 sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die
106
107 # the bundled rlfe had its configure.in updated, but no one actually
108 # ran autoconf to have the configure file updated
109 ln -s ../.. examples/rlfe/readline
110 cd examples/rlfe
111 eautoconf
112 }
113
114 src_compile() {
115 append-cppflags -D_GNU_SOURCE
116
117 econf --with-curses || die
118 emake || die
119
120 if ! tc-is-cross-compiler ; then
121 cd examples/rlfe
122 append-ldflags -Lreadline
123 econf || die
124 emake || die "make rlfe failed"
125 fi
126 }
127
128 src_install() {
129 emake DESTDIR="${D}" install || die
130 gen_usr_ldscript -a readline history #4411
131
132 if ! tc-is-cross-compiler; then
133 dobin examples/rlfe/rlfe || die
134 fi
135
136 dodoc CHANGELOG CHANGES README USAGE NEWS
137 docinto ps
138 dodoc doc/*.ps
139 dohtml -r doc
140 }
141
142 pkg_preinst() {
143 preserve_old_lib /$(get_libdir)/lib{history,readline}.so.{4,5} #29865
144 }
145
146 pkg_postinst() {
147 preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.{4,5}
148 }