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: ChangeLog readline-5.2_p12.ebuild
Date: Wed, 02 Jan 2008 14:06:22
Message-Id: E1JA4EV-0005AZ-Jt@stork.gentoo.org
1 vapier 08/01/02 14:06:11
2
3 Modified: ChangeLog
4 Added: readline-5.2_p12.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.109 sys-libs/readline/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/ChangeLog?rev=1.109&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/ChangeLog?rev=1.109&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/ChangeLog?r1=1.108&r2=1.109
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v
19 retrieving revision 1.108
20 retrieving revision 1.109
21 diff -u -r1.108 -r1.109
22 --- ChangeLog 29 Sep 2007 05:03:43 -0000 1.108
23 +++ ChangeLog 2 Jan 2008 14:06:11 -0000 1.109
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-libs/readline
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v 1.108 2007/09/29 05:03:43 jer Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v 1.109 2008/01/02 14:06:11 vapier Exp $
30 +
31 +*readline-5.2_p12 (02 Jan 2008)
32 +
33 + 02 Jan 2008; Mike Frysinger <vapier@g.o> +readline-5.2_p12.ebuild:
34 + Version bump.
35
36 29 Sep 2007; Jeroen Roovers <jer@g.o> readline-5.2_p7.ebuild:
37 Stable for HPPA (bug #194013).
38
39
40
41 1.1 sys-libs/readline/readline-5.2_p12.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/readline-5.2_p12.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/readline-5.2_p12.ebuild?rev=1.1&content-type=text/plain
45
46 Index: readline-5.2_p12.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/readline-5.2_p12.ebuild,v 1.1 2008/01/02 14:06:11 vapier Exp $
51
52 inherit eutils multilib toolchain-funcs flag-o-matic
53
54 # Official patches
55 # See ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches/
56 PLEVEL=${PV##*_p}
57 MY_PV=${PV/_p*}
58 MY_P=${PN}-${MY_PV}
59
60 DESCRIPTION="Another cute console display library"
61 HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
62 SRC_URI="mirror://gnu/readline/${MY_P}.tar.gz
63 $(for ((i=1; i<=PLEVEL; i++)); do
64 printf 'ftp://ftp.cwru.edu/pub/bash/readline-%s-patches/readline%s-%03d\n' \
65 ${MY_PV} ${MY_PV/\.} ${i}
66 printf 'mirror://gnu/bash/readline-%s-patches/readline%s-%03d\n' \
67 ${MY_PV} ${MY_PV/\.} ${i}
68 done)"
69
70 LICENSE="GPL-2"
71 SLOT="0"
72 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
73 IUSE=""
74
75 # We must be certain that we have a bash that is linked
76 # to its internal readline, else we may get problems.
77 RDEPEND=">=sys-libs/ncurses-5.2-r2"
78 DEPEND="${RDEPEND}
79 >=app-shells/bash-2.05b-r2"
80
81 S=${WORKDIR}/${MY_P}
82
83 src_unpack() {
84 unpack ${MY_P}.tar.gz
85
86 cd "${S}"
87 # Official patches
88 local i
89 for ((i=1; i<=PLEVEL; i++)); do
90 epatch "${DISTDIR}"/${PN}${MY_PV/\.}-$(printf '%03d' ${i})
91 done
92 epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch
93 epatch "${FILESDIR}"/${PN}-5.2-rlfe-build.patch #151174
94 epatch "${FILESDIR}"/${PN}-5.1-rlfe-uclibc.patch
95
96 ln -s ../.. examples/rlfe/readline
97
98 # force ncurses linking #71420
99 # sed -i -e 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncurses:' support/shobj-conf || die "sed"
100 }
101
102 src_compile() {
103 append-flags -D_GNU_SOURCE
104
105 # the --libdir= is needed because if lib64 is a directory, it will default
106 # to using that... even if CONF_LIBDIR isnt set or we're using a version
107 # of portage without CONF_LIBDIR support.
108 econf --with-curses --libdir=/usr/$(get_libdir) || die
109 emake || die
110
111 if ! tc-is-cross-compiler ; then
112 cd examples/rlfe
113 econf || die
114 emake || die "make rlfe failed"
115 fi
116 }
117
118 src_install() {
119 emake DESTDIR="${D}" install || die
120 dodir /$(get_libdir)
121
122 mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)
123 chmod a+rx "${D}"/$(get_libdir)/*.so*
124
125 # Bug #4411
126 gen_usr_ldscript libreadline.so
127 gen_usr_ldscript libhistory.so
128
129 if ! tc-is-cross-compiler; then
130 dobin examples/rlfe/rlfe || die
131 fi
132
133 dodoc CHANGELOG CHANGES README USAGE NEWS
134 docinto ps
135 dodoc doc/*.ps
136 dohtml -r doc
137 }
138
139 pkg_preinst() {
140 preserve_old_lib /$(get_libdir)/lib{history,readline}.so.4 #29865
141 }
142
143 pkg_postinst() {
144 preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.4
145 }
146
147
148
149 --
150 gentoo-commits@g.o mailing list