Gentoo Archives: gentoo-dev

From: Michael Cummings <mcummings@××××××××.net>
To: Johannes Ball? <joba123@×××××.de>
Cc: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Ebuild programming question
Date: Wed, 20 Nov 2002 01:17:07
Message-Id: 20021120011536.GA10585@datanode.net
In Reply to: [gentoo-dev] Ebuild programming question by "Johannes Ballé"
1 Check the configure script that comes with the program (assuming there
2 is one :) ). Usually, you can do something like (not perfect syntax,
3 but you get the idea):
4 -------------------
5
6 use gtk || ${myconf} = "${myconf} --disable-gtk"
7
8 ...
9
10
11 ./configure ${myconf}
12
13
14 --------------------
15 or something to that affect (and assuming that the configure option is
16 disable-gtk)
17
18 On Wed, Nov 20, 2002 at 01:32:40AM +0100, Johannes Ball? wrote:
19 > Would it be considered bad practice to put a dependency like "gtk? ( gtk... )"
20 > into the ebuild, but leave it to the configure script to sort out whether gtk
21 > is installed or not (hence, whether to compile the gtk tools or not)?
22 >
23
24 --
25 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Ebuild programming question "Johannes Ballé" <joba123@×××××.de>