diff options
author | Harald van Dijk <truedfx@gentoo.org> | 2006-03-27 19:16:22 +0000 |
---|---|---|
committer | Harald van Dijk <truedfx@gentoo.org> | 2006-03-27 19:16:22 +0000 |
commit | fac0b840e356a25a85b9fec3561213df9068a8bf (patch) | |
tree | 78f892b0e399532a3ca212b2d8ccd3cb2608f1fb /dev-util/dialog | |
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')
-rw-r--r-- | dev-util/dialog/ChangeLog | 6 | ||||
-rw-r--r-- | dev-util/dialog/dialog-1.0.20050206.ebuild | 14 | ||||
-rw-r--r-- | dev-util/dialog/dialog-1.0.20050306.ebuild | 14 |
3 files changed, 29 insertions, 5 deletions
diff --git a/dev-util/dialog/ChangeLog b/dev-util/dialog/ChangeLog index 879171638bc8..990d6b340bba 100644 --- a/dev-util/dialog/ChangeLog +++ b/dev-util/dialog/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-util/dialog # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/dialog/ChangeLog,v 1.59 2006/01/14 07:51:22 truedfx Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/dialog/ChangeLog,v 1.60 2006/03/27 19:16:22 truedfx Exp $ + + 27 Mar 2006; Harald van Dijk <truedfx@gentoo.org> + dialog-1.0.20050206.ebuild, dialog-1.0.20050306.ebuild: + Also have a clear error message for unicode in older versions 14 Jan 2006; Harald van Dijk <truedfx@gentoo.org> dialog-1.0.20051107.ebuild: 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" diff --git a/dev-util/dialog/dialog-1.0.20050306.ebuild b/dev-util/dialog/dialog-1.0.20050306.ebuild index 181e3549dec3..9d98f31cc2e1 100644 --- a/dev-util/dialog/dialog-1.0.20050306.ebuild +++ b/dev-util/dialog/dialog-1.0.20050306.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.20050306.ebuild,v 1.1 2005/07/05 09:36:19 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/dialog/dialog-1.0.20050306.ebuild,v 1.2 2006/03/27 19:16:22 truedfx Exp $ MY_PV="${PV/1.0./1.0-}" S=${WORKDIR}/${PN}-${MY_PV} @@ -16,6 +16,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" |