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_p14.ebuild
Date: Sat, 03 Oct 2009 23:39:09
Message-Id: E1MuEBu-0003e9-Oq@stork.gentoo.org
1 vapier 09/10/03 23:39:06
2
3 Modified: ChangeLog
4 Added: readline-5.2_p14.ebuild
5 Log:
6 New version for .5 SONAME only.
7 (Portage version: 2.2_rc42/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.139 sys-libs/readline/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/ChangeLog?rev=1.139&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/ChangeLog?rev=1.139&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/ChangeLog?r1=1.138&r2=1.139
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v
19 retrieving revision 1.138
20 retrieving revision 1.139
21 diff -u -r1.138 -r1.139
22 --- ChangeLog 30 Sep 2009 03:04:28 -0000 1.138
23 +++ ChangeLog 3 Oct 2009 23:39:06 -0000 1.139
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.138 2009/09/30 03:04:28 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v 1.139 2009/10/03 23:39:06 vapier Exp $
29 +
30 +*readline-5.2_p14 (03 Oct 2009)
31 +
32 + 03 Oct 2009; Mike Frysinger <vapier@g.o> +readline-5.2_p14.ebuild:
33 + New version for .5 SONAME only.
34
35 30 Sep 2009; Mike Frysinger <vapier@g.o> readline-6.0_p4.ebuild:
36 Restore readline symlink to find local headers.
37
38
39
40 1.1 sys-libs/readline/readline-5.2_p14.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/readline-5.2_p14.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/readline/readline-5.2_p14.ebuild?rev=1.1&content-type=text/plain
44
45 Index: readline-5.2_p14.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-5.2_p14.ebuild,v 1.1 2009/10/03 23:39:06 vapier Exp $
50
51 # This version is just for the ABI .5 library
52
53 inherit eutils multilib flag-o-matic
54
55 # Official patches
56 # See ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches/
57 PLEVEL=${PV##*_p}
58 MY_PV=${PV/_p*}
59 MY_P=${PN}-${MY_PV}
60 [[ ${PV} != *_p* ]] && PLEVEL=0
61 patches() {
62 [[ ${PLEVEL} -eq 0 ]] && return 1
63 local opt=$1
64 eval set -- {1..${PLEVEL}}
65 set -- $(printf "${PN}${MY_PV/\.}-%03d " "$@")
66 if [[ ${opt} == -s ]] ; then
67 echo "${@/#/${DISTDIR}/}"
68 else
69 local u
70 for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${PN} ; do
71 printf "${u}/${PN}-${MY_PV}-patches/%s " "$@"
72 done
73 fi
74 }
75
76 DESCRIPTION="Another cute console display library"
77 HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
78 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz $(patches)"
79
80 LICENSE="GPL-2"
81 SLOT="${PV:0:1}"
82 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
83 IUSE=""
84
85 RDEPEND=">=sys-libs/ncurses-5.2-r2"
86 DEPEND="${RDEPEND}"
87
88 S=${WORKDIR}/${MY_P}
89
90 src_unpack() {
91 unpack ${MY_P}.tar.gz
92 cd "${S}"
93 [[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
94 epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch
95 # force ncurses linking #71420
96 sed -i -e 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncurses:' support/shobj-conf || die "sed"
97 }
98
99 src_compile() {
100 append-flags -D_GNU_SOURCE
101
102 # the --libdir= is needed because if lib64 is a directory, it will default
103 # to using that... even if CONF_LIBDIR isnt set or we're using a version
104 # of portage without CONF_LIBDIR support.
105 econf \
106 --with-curses \
107 --disable-static \
108 --libdir=/usr/$(get_libdir) \
109 || die
110 emake -C shlib || die
111 }
112
113 src_install() {
114 emake -C shlib DESTDIR="${D}" install || die
115 rm -f "${D}"/usr/lib*/*.so
116 }