Gentoo Archives: gentoo-dev

From: Tim Harder <radhermit@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] ebuild laziness and binpkg overhead
Date: Wed, 13 Jun 2012 03:41:09
Message-Id: 20120613034009.GC23248@freyja
In Reply to: Re: [gentoo-dev] ebuild laziness and binpkg overhead by Michael Sterrett
1 On 2012-06-12 Tue 20:20, Michael Sterrett wrote:
2 > Calling "use" in global scope isn't allowed so what are you suggesting
3 > they do instead?
4
5 Can't they just do something similar to how most cmake-utils and
6 autotools-utils users do things? For example:
7
8 src_configure() {
9    G2CONF="${G2CONF}
10        --disable-bash-completion
11        --disable-hal
12        --disable-schemas-compile
13        --with-dbus-service-dir=/usr/share/dbus-1/services
14        $(use_enable afp)
15        $(use_enable archive)
16        $(use_enable avahi)
17        $(use_enable bluetooth obexftp)
18        $(use_enable bluray)
19        $(use_enable cdda)
20        $(use_enable fuse)
21        $(use_enable gdu)
22        $(use_enable gphoto2)
23        $(use_enable ios afc)
24        $(use_enable udev)
25        $(use_enable udev gudev)
26        $(use_enable http)
27        $(use_enable gnome-keyring keyring)
28        $(use_enable samba)"
29
30 gnome2_src_configure
31 }
32
33 Seems like that should work fine.
34
35 Tim