diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-03-21 00:57:34 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-03-21 00:57:34 +0000 |
commit | 5ed9112faa1df7d88169e72150be782755911569 (patch) | |
tree | 009217d70d68893d00eeba3a2ec9f109f7dca581 /sys-libs/readline | |
parent | Fix bad email in Changelog (diff) | |
download | gentoo-2-5ed9112faa1df7d88169e72150be782755911569.tar.gz gentoo-2-5ed9112faa1df7d88169e72150be782755911569.tar.bz2 gentoo-2-5ed9112faa1df7d88169e72150be782755911569.zip |
Version bump.
(Portage version: 2.1_pre6-r5)
Diffstat (limited to 'sys-libs/readline')
-rw-r--r-- | sys-libs/readline/ChangeLog | 7 | ||||
-rw-r--r-- | sys-libs/readline/files/digest-readline-5.1_p4 | 15 | ||||
-rw-r--r-- | sys-libs/readline/readline-5.1_p4.ebuild | 109 |
3 files changed, 130 insertions, 1 deletions
diff --git a/sys-libs/readline/ChangeLog b/sys-libs/readline/ChangeLog index 4a04ac13ffbf..ff1569d7071c 100644 --- a/sys-libs/readline/ChangeLog +++ b/sys-libs/readline/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-libs/readline # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v 1.70 2006/03/17 23:16:56 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/ChangeLog,v 1.71 2006/03/21 00:57:34 vapier Exp $ + +*readline-5.1_p4 (21 Mar 2006) + + 21 Mar 2006; Mike Frysinger <vapier@gentoo.org> +readline-5.1_p4.ebuild: + Version bump. *readline-5.1_p2 (17 Mar 2006) diff --git a/sys-libs/readline/files/digest-readline-5.1_p4 b/sys-libs/readline/files/digest-readline-5.1_p4 new file mode 100644 index 000000000000..08bde1dd87be --- /dev/null +++ b/sys-libs/readline/files/digest-readline-5.1_p4 @@ -0,0 +1,15 @@ +MD5 7ee5a692db88b30ca48927a13fd60e46 readline-5.1.tar.gz 2030276 +RMD160 e7e755bcde7a38740dd0ef6fc10d66614b74ea21 readline-5.1.tar.gz 2030276 +SHA256 163ec6407ec75a709c9077657b1fca9314cc74999d57d1c35ab185702bb067c6 readline-5.1.tar.gz 2030276 +MD5 63faf622820ca0828131c8b5aeac1e6a readline51-001 2042 +RMD160 93dd36106f68682c4dc73a9b1ecf62bf7943fae4 readline51-001 2042 +SHA256 2c9786b231a454504c3f38361af6fd74e61789bc1009eba5fb2447b5a3ac5774 readline51-001 2042 +MD5 e60f96f9277f42aa2e66020b2f30e55f readline51-002 1149 +RMD160 3eb4a80089d23f05d76f702952f0dbb7ef3ba24d readline51-002 1149 +SHA256 61b560d4a8e5e3b99a2911a46c0d4c4916f5d0ff61723b21c64cc7c0d59dfd35 readline51-002 1149 +MD5 c9c488f203dbfa1a7da843a07c6c2a25 readline51-003 707 +RMD160 73d81615e92c8f6f6a4155af571361863014c5df readline51-003 707 +SHA256 939ea5fb84ff519ae50b9c2749f441a59af9f97ed0bf8fc0981af612ea720160 readline51-003 707 +MD5 1b5e14a35a781dfce8ae23389cff30c0 readline51-004 2400 +RMD160 a1089571a8104ae5ba9d2c36eb600c09654a3d05 readline51-004 2400 +SHA256 ddb050c0161c9ccdabb84c75287fc8cc76791d096ebfb3e4bdc72f531d8551d1 readline51-004 2400 diff --git a/sys-libs/readline/readline-5.1_p4.ebuild b/sys-libs/readline/readline-5.1_p4.ebuild new file mode 100644 index 000000000000..610ac0d7bf25 --- /dev/null +++ b/sys-libs/readline/readline-5.1_p4.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/readline-5.1_p4.ebuild,v 1.1 2006/03/21 00:57:34 vapier Exp $ + +inherit eutils multilib toolchain-funcs + +# Official patches +# See ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches/ +PLEVEL=${PV##*_p} +MY_PV=${PV/_p*} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Another cute console display library" +HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html" +SRC_URI="mirror://gnu/readline/${MY_P}.tar.gz + $(for ((i=1; i<=PLEVEL; i++)); do + printf 'ftp://ftp.cwru.edu/pub/bash/readline-%s-patches/readline%s-%03d\n' \ + ${MY_PV} ${MY_PV/\.} ${i} + printf 'mirror://gnu/bash/readline-%s-patches/readline%s-%03d\n' \ + ${MY_PV} ${MY_PV/\.} ${i} + done)" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="" + +# We must be certain that we have a bash that is linked +# to its internal readline, else we may get problems. +RDEPEND=">=sys-libs/ncurses-5.2-r2" +DEPEND="${RDEPEND} + >=app-shells/bash-2.05b-r2" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${MY_P}.tar.gz + + cd "${S}" + # Official patches + local i + for ((i=1; i<=PLEVEL; i++)); do + epatch "${DISTDIR}"/${PN}${MY_PV/\.}-$(printf '%03d' ${i}) + done + epatch "${FILESDIR}"/bash-3.0-etc-inputrc.patch + epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch + epatch "${FILESDIR}"/${MY_P}-cleanups.patch + epatch "${FILESDIR}"/${MY_P}-rlfe-build.patch #116483 + epatch "${FILESDIR}"/${MY_P}-rlfe-uclibc.patch + epatch "${FILESDIR}"/${MY_P}-rlfe-libutil.patch + + ln -s ../.. examples/rlfe/readline + + # force ncurses linking #71420 + sed -i -e 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncurses:' support/shobj-conf || die "sed" +} + +src_compile() { + # 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 --libdir=/usr/$(get_libdir) || die + emake || die + + if ! tc-is-cross-compiler; then + cd examples/rlfe + econf || die + emake || die "make rlfe failed" + fi +} + +src_install() { + make DESTDIR="${D}" install || die + dodir /$(get_libdir) + + if ! use userland_Darwin ; then + mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir) + chmod a+rx "${D}"/$(get_libdir)/*.so* + + # Bug #4411 + gen_usr_ldscript libreadline.so + gen_usr_ldscript libhistory.so + fi + + if ! tc-is-cross-compiler; then + dobin examples/rlfe/rlfe || die + fi + + dodoc CHANGELOG CHANGES README USAGE NEWS + docinto ps + dodoc doc/*.ps + dohtml -r doc +} + +pkg_preinst() { + # Backwards compatibility #29865 + if [[ -e ${ROOT}/$(get_libdir)/libreadline.so.4 ]] ; then + cp -pPR "${ROOT}"/$(get_libdir)/libreadline.so.4* "${D}"/$(get_libdir)/ + touch "${D}"/$(get_libdir)/libreadline.so.4* + fi +} + +pkg_postinst() { + if [[ -e ${ROOT}/$(get_libdir)/libreadline.so.4 ]] ; then + ewarn "Your old readline libraries have been copied over." + ewarn "You should run 'revdep-rebuild --library libreadline.so.4' asap." + ewarn "Once you have, you can safely delete /$(get_libdir)/libreadline.so.4*" + fi +} |