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 18:48:21
Message-Id: 20070308184607.GA3806@cyclops.localdomain
In Reply to: [gentoo-dev] New eclass: gkrellm-plugin by Jim Ramsay
1 On Thu, Mar 08, 2007 at 11:19:20AM -0600, Jim Ramsay wrote:
2 > gkrellm-plugin_pkg_setup() {
3 > if ! built_with_use app-admin/gkrellm X && \
4 > ! has X ${IUSE}; 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 Any chance of plugins existing (or appearing in the future) that work
12 with a USE=-X gkrellm and a USE=X gkrellm the same way? In that case
13 that check will not do the right thing. Perhaps add a var the plugin
14 ebuild can set to indicate it does not need gkrellm built with X even
15 though the plugin has no X USE flag?
16
17 This will also error out if you try to build a plugin that has the X
18 USE flag with both the plugin and gkrellm itself built with -X, you
19 probably meant to check for "use X" too?
20
21 --
22 Marien.

Replies

Subject Author
Re: [gentoo-dev] New eclass: gkrellm-plugin Jim Ramsay <lack@g.o>