Gentoo Archives: gentoo-dev

From: Marien Zwart <marienz@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New eclass: gkrellm-plugin
Date: Thu, 08 Mar 2007 22:46:24
Message-Id: 20070308224159.GE3806@cyclops.localdomain
In Reply to: Re: [gentoo-dev] New eclass: gkrellm-plugin by Jim Ramsay
1 On Thu, Mar 08, 2007 at 03:51:42PM -0600, Jim Ramsay wrote:
2 > gkrellm-plugin_pkg_setup() {
3 > if [[ -z "${PLUGIN_NO_XCHECK}" ]] &&
4 > ! built_with_use app-admin/gkrellm X; then
5 > eerror "This plugin requires the X frontend of gkrellm."
6 > eerror "Please re-emerge app-admin/gkrellm with USE=\"X\""
7 > die "Please re-emerge app-admin/gkrellm with USE=\"X\""
8 > fi
9 > }
10
11 This is basically horrible nitpicking, but perhaps point at
12 package.use here to prevent people from doing USE=X emerge gkrellm on
13 the commandline (prevents accidentally remerging gkrellm with -X and
14 breaking stuff later and all that)?
15
16 (http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=2
17 does not quite mention this specifically, and is a bit long to link to
18 anyway, or I'd say link to that in the message)
19
20 --
21 Marien.