diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-02-21 06:52:44 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-02-21 06:52:44 +0000 |
commit | 4eca465f78daaaea8fe704d8771833cb19b26575 (patch) | |
tree | ceec8e0129c4d2bc3d83515d9ef1b7d4ceb0a9a5 /sys-libs/ncurses/ncurses-5.5-r3.ebuild | |
parent | Add local USE flags: mozembed, sourceview and nolibglade for dev-php5/php-gtk. (diff) | |
download | gentoo-2-4eca465f78daaaea8fe704d8771833cb19b26575.tar.gz gentoo-2-4eca465f78daaaea8fe704d8771833cb19b26575.tar.bz2 gentoo-2-4eca465f78daaaea8fe704d8771833cb19b26575.zip |
Preserve libncursesw.so.5 when building with USE=-unicode #106820 by Harald van Dijk.
(Portage version: 2.1.2-r10)
Diffstat (limited to 'sys-libs/ncurses/ncurses-5.5-r3.ebuild')
-rw-r--r-- | sys-libs/ncurses/ncurses-5.5-r3.ebuild | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sys-libs/ncurses/ncurses-5.5-r3.ebuild b/sys-libs/ncurses/ncurses-5.5-r3.ebuild index a68a6e460567..281dbf535b30 100644 --- a/sys-libs/ncurses/ncurses-5.5-r3.ebuild +++ b/sys-libs/ncurses/ncurses-5.5-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.5-r3.ebuild,v 1.12 2007/01/16 22:36:05 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.5-r3.ebuild,v 1.13 2007/02/21 06:52:44 vapier Exp $ inherit eutils flag-o-matic toolchain-funcs @@ -166,18 +166,9 @@ src_install() { } pkg_preinst() { - if [[ ! -f ${ROOT}/etc/env.d/50ncurses ]] ; then - mkdir -p "${ROOT}"/etc/env.d - echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > \ - "${ROOT}"/etc/env.d/50ncurses - fi + use unicode || preserve_old_lib /$(get_libdir)/libncursesw.so.5 } pkg_postinst() { - # Old ncurses may still be around from old build tbz2's. - rm -f "${ROOT}"/lib/libncurses.so.5.[23] "${ROOT}"/usr/lib/lib{form,menu,panel}.so.5.[23] - if [[ $(get_libdir) != "lib" ]] ; then - rm -f "${ROOT}"/$(get_libdir)/libncurses.so.5.[23] \ - "${ROOT}"/usr/$(get_libdir)/lib{form,menu,panel}.so.5.[23] - fi + use unicode || preserve_old_lib_notify /$(get_libdir)/libncursesw.so.5 } |