diff options
author | 2006-03-27 19:16:22 +0000 | |
---|---|---|
committer | 2006-03-27 19:16:22 +0000 | |
commit | fac0b840e356a25a85b9fec3561213df9068a8bf (patch) | |
tree | 78f892b0e399532a3ca212b2d8ccd3cb2608f1fb /dev-util/dialog/dialog-1.0.20050206.ebuild | |
parent | Add ~ppc keyword. (diff) | |
download | gentoo-2-fac0b840e356a25a85b9fec3561213df9068a8bf.tar.gz gentoo-2-fac0b840e356a25a85b9fec3561213df9068a8bf.tar.bz2 gentoo-2-fac0b840e356a25a85b9fec3561213df9068a8bf.zip |
Add unicode error message to older versions
(Portage version: 2.1_pre7-r1)
Diffstat (limited to 'dev-util/dialog/dialog-1.0.20050206.ebuild')
-rw-r--r-- | dev-util/dialog/dialog-1.0.20050206.ebuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/dev-util/dialog/dialog-1.0.20050206.ebuild b/dev-util/dialog/dialog-1.0.20050206.ebuild index 6b4bb28cd19d..6065f55112af 100644 --- a/dev-util/dialog/dialog-1.0.20050206.ebuild +++ b/dev-util/dialog/dialog-1.0.20050206.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/dialog/dialog-1.0.20050206.ebuild,v 1.10 2005/07/05 09:36:19 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/dialog/dialog-1.0.20050206.ebuild,v 1.11 2006/03/27 19:16:22 truedfx Exp $ inherit eutils @@ -18,6 +18,16 @@ IUSE="unicode" DEPEND=">=app-shells/bash-2.04-r3 >=sys-libs/ncurses-5.2-r5" +pkg_setup() { + if use unicode && ! built_with_use sys-libs/ncurses unicode; then + eerror "Installing dialog with the unicode flag requires ncurses be" + eerror "built with it as well. Please make sure your /etc/make.conf" + eerror "or /etc/portage/package.use enables it, and re-install" + eerror "ncurses with \`emerge --oneshot sys-libs/ncurses\`." + die "Re-emerge ncurses with the unicode flag" + fi +} + src_compile() { #export LANG=C use unicode && ncursesw="w" |