Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: sys-libs/readline/readline-6.1_p2.ebuild

Issue 6776028: Upgrade libxml2 and its portage dependencies (Closed) Base URL: ssh://gitrw.chromium.org:9222/portage-stable.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sys-libs/readline/metadata.xml ('k') | sys-libs/zlib/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/readline-6.1_p2.ebuild,v 1. 8 2011/03/01 00:34:48 ranger Exp $
4
5 inherit autotools eutils multilib toolchain-funcs flag-o-matic
6
7 # Official patches
8 # See ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/
9 PLEVEL=${PV##*_p}
10 MY_PV=${PV/_p*}
11 MY_PV=${MY_PV/_/-}
12 MY_P=${PN}-${MY_PV}
13 [[ ${PV} != *_p* ]] && PLEVEL=0
14 patches() {
15 [[ ${PLEVEL} -eq 0 ]] && return 1
16 local opt=$1
17 eval set -- {1..${PLEVEL}}
18 set -- $(printf "${PN}${MY_PV/\.}-%03d " "$@")
19 if [[ ${opt} == -s ]] ; then
20 echo "${@/#/${DISTDIR}/}"
21 else
22 local u
23 for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${PN} ; do
24 printf "${u}/${PN}-${MY_PV}-patches/%s " "$@"
25 done
26 fi
27 }
28
29 DESCRIPTION="Another cute console display library"
30 HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
31 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz $(patches)"
32
33 LICENSE="GPL-3"
34 SLOT="0"
35 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~spar c-fbsd ~x86-fbsd"
36 IUSE=""
37
38 # We must be certain that we have a bash that is linked
39 # to its internal readline, else we may get problems.
40 RDEPEND=">=sys-libs/ncurses-5.2-r2"
41 DEPEND="${RDEPEND}
42 >=app-shells/bash-2.05b-r2"
43
44 S=${WORKDIR}/${MY_P}
45
46 src_unpack() {
47 unpack ${MY_P}.tar.gz
48
49 cd "${S}"
50 [[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
51 epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch
52 epatch "${FILESDIR}"/${PN}-5.2-no-ignore-shlib-errors.patch #216952
53 epatch "${FILESDIR}"/${PN}-6.1-rlfe-freebsd.patch # 301508
54
55 # force ncurses linking #71420
56 sed -i -e 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncurses:' support/shobj-conf || d ie "sed"
57
58 # fix building under Gentoo/FreeBSD; upstream FreeBSD deprecated
59 # objformat for years, so we don't want to rely on that.
60 sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf | | die
61
62 ln -s ../.. examples/rlfe/readline # for local readline headers
63 }
64
65 src_compile() {
66 append-cppflags -D_GNU_SOURCE
67
68 econf --with-curses || die
69 emake || die
70
71 if ! tc-is-cross-compiler ; then
72 # code is full of AC_TRY_RUN()
73 cd examples/rlfe
74 append-ldflags -L.
75 local l
76 for l in readline history ; do
77 ln -s ../../shlib/lib${l}$(get_libname)* lib${l}$(get_li bname)
78 ln -sf ../../lib${l}.a lib${l}.a
79 done
80 econf || die
81 emake || die
82 fi
83 }
84
85 src_install() {
86 emake DESTDIR="${D}" install || die
87 gen_usr_ldscript -a readline history #4411
88
89 if ! tc-is-cross-compiler; then
90 dobin examples/rlfe/rlfe || die
91 fi
92
93 dodoc CHANGELOG CHANGES README USAGE NEWS
94 docinto ps
95 dodoc doc/*.ps
96 dohtml -r doc
97 }
98
99 pkg_preinst() {
100 preserve_old_lib /$(get_libdir)/lib{history,readline}.so.{4,5} #29865
101 }
102
103 pkg_postinst() {
104 preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.{4,5}
105 }
OLDNEW
« no previous file with comments | « sys-libs/readline/metadata.xml ('k') | sys-libs/zlib/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698