diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-01-13 19:36:31 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-01-13 19:36:31 +0000 |
commit | 50fbb41e004a8093411265fb86458b949eac3494 (patch) | |
tree | fe5756943b429b47474e93eb0b5c8ee848a26956 /sys-libs/readline/readline-5.2_p1.ebuild | |
parent | fix EBUILD_PHASE check in preserve_old_lib funcs (diff) | |
download | gentoo-2-50fbb41e004a8093411265fb86458b949eac3494.tar.gz gentoo-2-50fbb41e004a8093411265fb86458b949eac3494.tar.bz2 gentoo-2-50fbb41e004a8093411265fb86458b949eac3494.zip |
Switch to using preserve_old_lib().
(Portage version: 2.1.2_rc4-r8)
Diffstat (limited to 'sys-libs/readline/readline-5.2_p1.ebuild')
-rw-r--r-- | sys-libs/readline/readline-5.2_p1.ebuild | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/sys-libs/readline/readline-5.2_p1.ebuild b/sys-libs/readline/readline-5.2_p1.ebuild index 4cf7db659665..754e7c33e2dc 100644 --- a/sys-libs/readline/readline-5.2_p1.ebuild +++ b/sys-libs/readline/readline-5.2_p1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/readline-5.2_p1.ebuild,v 1.2 2007/01/13 19:29:06 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/readline/readline-5.2_p1.ebuild,v 1.3 2007/01/13 19:36:31 vapier Exp $ inherit eutils multilib toolchain-funcs flag-o-matic @@ -93,17 +93,9 @@ src_install() { } 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 + preserve_old_lib /$(get_libdir)/lib{history,readline}.so.4 #29865 } 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 + preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.4 } |