Lines 1-6
Link Here
|
1 |
# Copyright 1999-2014 Gentoo Foundation |
1 |
# Copyright 1999-2014 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/readline-6.3_p8.ebuild,v 1.1 2014/08/12 11:15:41 polynomial-c Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/readline-6.3_p8-r1.ebuild,v 1.1 2014/08/30 08:20:50 polynomial-c Exp $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
|
6 |
|
Lines 34-40
Link Here
|
34 |
|
34 |
|
35 |
LICENSE="GPL-3" |
35 |
LICENSE="GPL-3" |
36 |
SLOT="0" |
36 |
SLOT="0" |
37 |
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" |
37 |
KEYWORDS="~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-ma cos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
38 |
IUSE="static-libs" |
38 |
IUSE="static-libs" |
39 |
|
39 |
|
40 |
RDEPEND=">=sys-libs/ncurses-5.9-r3[${MULTILIB_USEDEP}] |
40 |
RDEPEND=">=sys-libs/ncurses-5.9-r3[${MULTILIB_USEDEP}] |
Lines 53-60
Link Here
|
53 |
|
53 |
|
54 |
src_prepare() { |
54 |
src_prepare() { |
55 |
[[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s) |
55 |
[[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s) |
|
|
56 |
|
56 |
epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch |
57 |
epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch |
|
|
58 |
epatch "${FILESDIR}"/${PN}-5.1-rlfe-extern.patch |
59 |
epatch "${FILESDIR}"/${PN}-5.2-rlfe-aix-eff_uid.patch |
60 |
epatch "${FILESDIR}"/${PN}-5.2-rlfe-hpux.patch |
61 |
epatch "${FILESDIR}"/${PN}-5.2-ia64hpux.patch |
62 |
epatch "${FILESDIR}"/${PN}-6.0-mint.patch |
63 |
epatch "${FILESDIR}"/${PN}-6.0-rlfe-solaris.patch |
64 |
epatch "${FILESDIR}"/${PN}-6.1-aix-soname.patch |
65 |
epatch "${FILESDIR}"/${PN}-6.1-aix-expfull.patch |
57 |
epatch "${FILESDIR}"/${PN}-6.2-rlfe-tgoto.patch #385091 |
66 |
epatch "${FILESDIR}"/${PN}-6.2-rlfe-tgoto.patch #385091 |
|
|
67 |
epatch "${FILESDIR}"/${PN}-6.3-interix.patch |
68 |
epatch "${FILESDIR}"/${PN}-6.3-fix-long-prompt-vi-search.patch |
58 |
|
69 |
|
59 |
# Force ncurses linking. #71420 |
70 |
# Force ncurses linking. #71420 |
60 |
# Use pkg-config to get the right values. #457558 |
71 |
# Use pkg-config to get the right values. #457558 |
Lines 70-75
Link Here
|
70 |
# objformat for years, so we don't want to rely on that. |
81 |
# objformat for years, so we don't want to rely on that. |
71 |
sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die |
82 |
sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die |
72 |
|
83 |
|
|
|
84 |
# support OSX Lion |
85 |
sed -i -e 's/darwin10\*/darwin1\[01\]\*/g' support/shobj-conf || die |
86 |
|
73 |
ln -s ../.. examples/rlfe/readline # for local readline headers |
87 |
ln -s ../.. examples/rlfe/readline # for local readline headers |
74 |
} |
88 |
} |
75 |
|
89 |
|
Lines 125-131
Link Here
|
125 |
cd examples/rlfe || die |
139 |
cd examples/rlfe || die |
126 |
local l |
140 |
local l |
127 |
for l in readline history ; do |
141 |
for l in readline history ; do |
128 |
ln -s ../../shlib/lib${l}$(get_libname)* lib${l}$(get_libname) |
142 |
ln -s ../../shlib/lib${l}*$(get_libname)* lib${l}$(get_libname) |
129 |
ln -sf ../../lib${l}.a lib${l}.a |
143 |
ln -sf ../../lib${l}.a lib${l}.a |
130 |
done |
144 |
done |
131 |
emake |
145 |
emake |
Lines 153-161
Link Here
|
153 |
} |
167 |
} |
154 |
|
168 |
|
155 |
pkg_preinst() { |
169 |
pkg_preinst() { |
156 |
preserve_old_lib /$(get_libdir)/lib{history,readline}.so.{4,5} #29865 |
170 |
preserve_old_lib /$(get_libdir)/lib{history,readline}$(get_libname 4) #29865 |
|
|
171 |
preserve_old_lib /$(get_libdir)/lib{history,readline}$(get_libname 5) #29865 |
157 |
} |
172 |
} |
158 |
|
173 |
|
159 |
pkg_postinst() { |
174 |
pkg_postinst() { |
160 |
preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.{4,5} |
175 |
preserve_old_lib_notify /$(get_libdir)/lib{history,readline}$(get_libname 4) |
|
|
176 |
preserve_old_lib_notify /$(get_libdir)/lib{history,readline}$(get_libname 5) |
161 |
} |
177 |
} |