--- /usr/portage/sys-libs/readline/readline-6.3_p8.ebuild 2014-08-12 08:15:41.000000000 -0300 +++ readline/readline-6.3_p8-r1.ebuild 2014-11-27 14:46:38.906392953 -0200 @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $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 $ +# $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 $ EAPI=4 @@ -34,7 +34,7 @@ LICENSE="GPL-3" SLOT="0" -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" +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" IUSE="static-libs" RDEPEND=">=sys-libs/ncurses-5.9-r3[${MULTILIB_USEDEP}] @@ -53,8 +53,19 @@ src_prepare() { [[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s) + epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch + epatch "${FILESDIR}"/${PN}-5.1-rlfe-extern.patch + epatch "${FILESDIR}"/${PN}-5.2-rlfe-aix-eff_uid.patch + epatch "${FILESDIR}"/${PN}-5.2-rlfe-hpux.patch + epatch "${FILESDIR}"/${PN}-5.2-ia64hpux.patch + epatch "${FILESDIR}"/${PN}-6.0-mint.patch + epatch "${FILESDIR}"/${PN}-6.0-rlfe-solaris.patch + epatch "${FILESDIR}"/${PN}-6.1-aix-soname.patch + epatch "${FILESDIR}"/${PN}-6.1-aix-expfull.patch epatch "${FILESDIR}"/${PN}-6.2-rlfe-tgoto.patch #385091 + epatch "${FILESDIR}"/${PN}-6.3-interix.patch + epatch "${FILESDIR}"/${PN}-6.3-fix-long-prompt-vi-search.patch # Force ncurses linking. #71420 # Use pkg-config to get the right values. #457558 @@ -70,6 +81,9 @@ # objformat for years, so we don't want to rely on that. sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die + # support OSX Lion + sed -i -e 's/darwin10\*/darwin1\[01\]\*/g' support/shobj-conf || die + ln -s ../.. examples/rlfe/readline # for local readline headers } @@ -125,7 +139,7 @@ cd examples/rlfe || die local l for l in readline history ; do - ln -s ../../shlib/lib${l}$(get_libname)* lib${l}$(get_libname) + ln -s ../../shlib/lib${l}*$(get_libname)* lib${l}$(get_libname) ln -sf ../../lib${l}.a lib${l}.a done emake @@ -153,9 +167,11 @@ } pkg_preinst() { - preserve_old_lib /$(get_libdir)/lib{history,readline}.so.{4,5} #29865 + preserve_old_lib /$(get_libdir)/lib{history,readline}$(get_libname 4) #29865 + preserve_old_lib /$(get_libdir)/lib{history,readline}$(get_libname 5) #29865 } pkg_postinst() { - preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.{4,5} + preserve_old_lib_notify /$(get_libdir)/lib{history,readline}$(get_libname 4) + preserve_old_lib_notify /$(get_libdir)/lib{history,readline}$(get_libname 5) }