Lines 2-8
Link Here
|
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.2_p4.ebuild,v 1.2 2013/02/17 23:40:35 zmedico Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/readline-6.2_p4.ebuild,v 1.2 2013/02/17 23:40:35 zmedico Exp $ |
4 |
|
4 |
|
5 |
inherit eutils multilib toolchain-funcs flag-o-matic |
5 |
EAPI=5 |
|
|
6 |
|
7 |
inherit eutils multilib toolchain-funcs flag-o-matic multilib-minimal |
6 |
|
8 |
|
7 |
# Official patches |
9 |
# Official patches |
8 |
# See ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/ |
10 |
# See ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/ |
Lines 35-41
Link Here
|
35 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
37 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
36 |
IUSE="static-libs" |
38 |
IUSE="static-libs" |
37 |
|
39 |
|
38 |
RDEPEND=">=sys-libs/ncurses-5.2-r2" |
40 |
RDEPEND=">=sys-libs/ncurses-5.2-r2[${MULTILIB_USEDEP}] |
|
|
41 |
abi_x86_32? ( |
42 |
!<=app-emulation/emul-linux-x86-baselibs-20131008-r6 |
43 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
44 |
)" |
39 |
DEPEND="${RDEPEND}" |
45 |
DEPEND="${RDEPEND}" |
40 |
|
46 |
|
41 |
S=${WORKDIR}/${MY_P} |
47 |
S=${WORKDIR}/${MY_P} |
Lines 56-64
Link Here
|
56 |
sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die |
62 |
sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die |
57 |
|
63 |
|
58 |
ln -s ../.. examples/rlfe/readline # for local readline headers |
64 |
ln -s ../.. examples/rlfe/readline # for local readline headers |
|
|
65 |
|
66 |
multilib_copy_sources |
59 |
} |
67 |
} |
60 |
|
68 |
|
61 |
src_compile() { |
69 |
multilib_src_compile() { |
62 |
# fix implicit decls with widechar funcs |
70 |
# fix implicit decls with widechar funcs |
63 |
append-cppflags -D_GNU_SOURCE |
71 |
append-cppflags -D_GNU_SOURCE |
64 |
# http://lists.gnu.org/archive/html/bug-readline/2010-07/msg00013.html |
72 |
# http://lists.gnu.org/archive/html/bug-readline/2010-07/msg00013.html |
Lines 68-77
Link Here
|
68 |
# so we can re-use the config cache file between the two. |
76 |
# so we can re-use the config cache file between the two. |
69 |
append-ldflags -L. |
77 |
append-ldflags -L. |
70 |
econf \ |
78 |
econf \ |
71 |
--cache-file="${S}"/config.cache \ |
79 |
--cache-file=config.cache \ |
72 |
--with-curses \ |
80 |
--with-curses \ |
73 |
$(use_enable static-libs static) |
81 |
$(use_enable static-libs static) |
74 |
emake || die |
82 |
emake |
75 |
|
83 |
|
76 |
if ! tc-is-cross-compiler ; then |
84 |
if ! tc-is-cross-compiler ; then |
77 |
# code is full of AC_TRY_RUN() |
85 |
# code is full of AC_TRY_RUN() |
Lines 81-99
Link Here
|
81 |
ln -s ../../shlib/lib${l}$(get_libname)* lib${l}$(get_libname) |
89 |
ln -s ../../shlib/lib${l}$(get_libname)* lib${l}$(get_libname) |
82 |
ln -sf ../../lib${l}.a lib${l}.a |
90 |
ln -sf ../../lib${l}.a lib${l}.a |
83 |
done |
91 |
done |
84 |
econf --cache-file="${S}"/config.cache |
92 |
econf --cache-file=../../config.cache |
85 |
emake || die |
93 |
emake |
86 |
fi |
94 |
fi |
87 |
} |
95 |
} |
88 |
|
96 |
|
89 |
src_install() { |
97 |
multilib_src_install() { |
90 |
emake DESTDIR="${D}" install || die |
98 |
emake DESTDIR="${D}" install |
91 |
gen_usr_ldscript -a readline history #4411 |
99 |
gen_usr_ldscript -a readline history #4411 |
92 |
|
100 |
|
93 |
if ! tc-is-cross-compiler; then |
101 |
if ! tc-is-cross-compiler; then |
94 |
dobin examples/rlfe/rlfe || die |
102 |
dobin examples/rlfe/rlfe |
95 |
fi |
103 |
fi |
|
|
104 |
} |
96 |
|
105 |
|
|
|
106 |
multilib_src_install_all() { |
97 |
dodoc CHANGELOG CHANGES README USAGE NEWS |
107 |
dodoc CHANGELOG CHANGES README USAGE NEWS |
98 |
docinto ps |
108 |
docinto ps |
99 |
dodoc doc/*.ps |
109 |
dodoc doc/*.ps |