Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o, lack@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in x11-wm/fluxbox: ChangeLog fluxbox-1.0.0.ebuild
Date: Tue, 09 Oct 2007 19:52:13
Message-Id: 20071009193659.GA962@supernova
1 On 14:45 Tue 09 Oct , Jim Ramsay (lack) wrote:
2 > 1.1 x11-wm/fluxbox/fluxbox-1.0.0.ebuild
3 >
4 > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/fluxbox/fluxbox-1.0.0.ebuild?rev=1.1&view=markup
5 > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/fluxbox/fluxbox-1.0.0.ebuild?rev=1.1&content-type=text/plain
6
7 > pkg_setup() {
8 > if use imlib ; then
9 > if ! built_with_use media-libs/imlib2 X ; then
10 > eerror "To build fluxbox with imlib in USE, you need an X enabled"
11 > eerror "media-libs/imlib2 . Either recompile imlib2 with the X"
12 > eerror "USE flag turned on or disable the imlib USE flag for fluxbox."
13 > die "USE=imlib requires imlib2 with USE=X"
14 > fi
15 > fi
16 > }
17
18 There's only one case you're interested in here, so you could just
19 combine the two things into a single statement:
20
21 if use imlib && ! built_with_use media-libs/imlib2 X; then
22
23 > src_compile() {
24 > export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig
25
26 This shouldn't be necessary anymore.
27
28 > src_install() {
29 > dodir /usr/share/fluxbox
30 > make DESTDIR="${D}" install || die "make install failed"
31
32 If emake doesn't work, please add a comment to that effect.
33
34 Thanks,
35 Donnie
36 --
37 gentoo-dev@g.o mailing list