summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-10-24 19:20:21 -0400
committerMike Frysinger <vapier@gentoo.org>2015-10-24 19:28:13 -0400
commitca2e48ba82de7f4f4ae68742ce49463910de1988 (patch)
tree6ef15ea9de5b8156d7c39778eb7ea5ecb22db908 /sys-libs/readline
parentsys-kernel/vanilla-sources: Linux patch 4.1.11 (diff)
downloadgentoo-ca2e48ba82de7f4f4ae68742ce49463910de1988.tar.gz
gentoo-ca2e48ba82de7f4f4ae68742ce49463910de1988.tar.bz2
gentoo-ca2e48ba82de7f4f4ae68742ce49463910de1988.zip
sys-libs/readline: add multilib support to older SLOTs #563884
This makes the two old SLOTs look more like each other. It drops the CONF_LIBDIR hack as this seems to date back to really old versions of portage. There is no automatic logic in the configure scripts.
Diffstat (limited to 'sys-libs/readline')
-rw-r--r--sys-libs/readline/readline-4.3_p5.ebuild26
-rw-r--r--sys-libs/readline/readline-5.2_p14.ebuild34
2 files changed, 30 insertions, 30 deletions
diff --git a/sys-libs/readline/readline-4.3_p5.ebuild b/sys-libs/readline/readline-4.3_p5.ebuild
index 986d7449dacc..416f92cd272a 100644
--- a/sys-libs/readline/readline-4.3_p5.ebuild
+++ b/sys-libs/readline/readline-4.3_p5.ebuild
@@ -1,10 +1,12 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# This version is just for the ABI .4 library
-inherit eutils flag-o-matic
+EAPI="5"
+
+inherit eutils multilib-minimal flag-o-matic
# Official patches
# See ftp://ftp.cwru.edu/pub/bash/readline-4.3-patches/
@@ -36,26 +38,28 @@ SLOT="${PV:0:1}"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
IUSE=""
-RDEPEND=">=sys-libs/ncurses-5.2-r2"
+RDEPEND=">=sys-libs/ncurses-5.2-r2:0[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${MY_P}
-src_unpack() {
- unpack ${MY_P}.tar.gz
- cd "${S}"
+src_prepare() {
[[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
# force ncurses linking #71420
sed -i -e 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncurses:' support/shobj-conf || die "sed"
}
-src_compile() {
+multilib_src_configure() {
append-cppflags -D_GNU_SOURCE
- econf --with-curses --disable-static || die
- emake -C shlib || die
+ ECONF_SOURCE=${S} \
+ econf --with-curses --disable-static
+}
+
+multilib_src_compile() {
+ emake -C shlib
}
-src_install() {
- emake -C shlib DESTDIR="${D}" install || die
+multilib_src_install() {
+ emake -C shlib DESTDIR="${D}" install
rm -f "${D}"/usr/lib*/*.so
}
diff --git a/sys-libs/readline/readline-5.2_p14.ebuild b/sys-libs/readline/readline-5.2_p14.ebuild
index 89f18029e84b..814c028fdf5e 100644
--- a/sys-libs/readline/readline-5.2_p14.ebuild
+++ b/sys-libs/readline/readline-5.2_p14.ebuild
@@ -1,10 +1,12 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# This version is just for the ABI .5 library
-inherit eutils multilib flag-o-matic
+EAPI="5"
+
+inherit eutils multilib-minimal flag-o-matic
# Official patches
# See ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches/
@@ -36,35 +38,29 @@ SLOT="${PV:0:1}"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE=""
-RDEPEND=">=sys-libs/ncurses-5.2-r2"
+RDEPEND=">=sys-libs/ncurses-5.2-r2:0[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${MY_P}
-src_unpack() {
- unpack ${MY_P}.tar.gz
- cd "${S}"
+src_prepare() {
[[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch
# force ncurses linking #71420
sed -i -e 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncurses:' support/shobj-conf || die "sed"
}
-src_compile() {
- append-flags -D_GNU_SOURCE
+multilib_src_configure() {
+ append-cppflags -D_GNU_SOURCE
+ ECONF_SOURCE=${S} \
+ econf --with-curses --disable-static
+}
- # the --libdir= is needed because if lib64 is a directory, it will default
- # to using that... even if CONF_LIBDIR isnt set or we're using a version
- # of portage without CONF_LIBDIR support.
- econf \
- --with-curses \
- --disable-static \
- --libdir=/usr/$(get_libdir) \
- || die
- emake -C shlib || die
+multilib_src_compile() {
+ emake -C shlib
}
-src_install() {
- emake -C shlib DESTDIR="${D}" install || die
+multilib_src_install() {
+ emake -C shlib DESTDIR="${D}" install
rm -f "${D}"/usr/lib*/*.so
}