Lines 1-6
Link Here
|
1 |
# Copyright 1999-2006 Gentoo Foundation |
1 |
# Copyright 1999-2006 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/adesklets/adesklets-0.5.0.ebuild,v 1.4 2006/02/11 00:03:09 nelchael Exp $ |
3 |
# $Header: |
4 |
|
4 |
|
5 |
DESCRIPTION="An interactive Imlib2 console for the X Window system" |
5 |
DESCRIPTION="An interactive Imlib2 console for the X Window system" |
6 |
HOMEPAGE="http://adesklets.sf.net/" |
6 |
HOMEPAGE="http://adesklets.sf.net/" |
Lines 9-15
Link Here
|
9 |
SLOT="0" |
9 |
SLOT="0" |
10 |
LICENSE="GPL-2" |
10 |
LICENSE="GPL-2" |
11 |
KEYWORDS="amd64 ~ppc x86" |
11 |
KEYWORDS="amd64 ~ppc x86" |
12 |
IUSE="X python" |
12 |
IUSE="X python debug ctrlmenu" |
13 |
|
13 |
|
14 |
RDEPEND="X? ( || ( ( |
14 |
RDEPEND="X? ( || ( ( |
15 |
x11-libs/libX11 |
15 |
x11-libs/libX11 |
Lines 21-32
Link Here
|
21 |
X? ( || ( x11-proto/xproto virtual/x11 ) ) |
21 |
X? ( || ( x11-proto/xproto virtual/x11 ) ) |
22 |
python? ( >=dev-lang/python-2.3.4-r1 )" |
22 |
python? ( >=dev-lang/python-2.3.4-r1 )" |
23 |
|
23 |
|
|
|
24 |
inherit eutils |
25 |
|
26 |
src_unpack() |
27 |
{ |
28 |
unpack ${A} |
29 |
cd ${S} |
30 |
epatch ${FILESDIR}/${P}-ctrlmenu.patch || die "epatch failed" |
31 |
# when performing minor changes to src/adesklets.c or src/commands.c, |
32 |
# touching these files will avoid unneeded processing |
33 |
touch scripting/enums scripting/prototypes |
34 |
} |
35 |
|
24 |
src_compile() |
36 |
src_compile() |
25 |
{ |
37 |
{ |
26 |
local myconf="" |
38 |
local myconf="" |
27 |
|
39 |
|
28 |
use X || myconf="--without-x" |
40 |
use X || myconf="--without-x" |
29 |
use python || myconf="${myconf} --without-python-support" |
41 |
use python || myconf="${myconf} --without-python-support" |
|
|
42 |
myconf="${myconf} $(use_enable debug)" |
43 |
use ctrlmenu && myconf="--enable-control-on-context-menu" |
30 |
|
44 |
|
31 |
econf ${myconf} || die |
45 |
econf ${myconf} || die |
32 |
emake || die |
46 |
emake || die |
Lines 40-45
Link Here
|
40 |
doinfo doc/*.info || die "info page installation failed" |
54 |
doinfo doc/*.info || die "info page installation failed" |
41 |
doman doc/*.1 || die "man page installation failed" |
55 |
doman doc/*.1 || die "man page installation failed" |
42 |
dodoc ChangeLog NEWS TODO AUTHORS |
56 |
dodoc ChangeLog NEWS TODO AUTHORS |
|
|
57 |
use debug && |
58 |
{ |
59 |
echo 'ADESKLETS_LOG="/tmp/adesklets_log"' > 70adesklets |
60 |
doenvd 70adesklets |
61 |
} |
62 |
|
43 |
} |
63 |
} |
44 |
|
64 |
|
45 |
pkg_postinst() |
65 |
pkg_postinst() |
Lines 66-69
Link Here
|
66 |
ewarn |
86 |
ewarn |
67 |
ewarn "Type USE=\"python\" emerge adesklets to correct this." |
87 |
ewarn "Type USE=\"python\" emerge adesklets to correct this." |
68 |
} |
88 |
} |
|
|
89 |
|
90 |
use debug && |
91 |
{ |
92 |
ewarn "You installed a debug build. Make sure you do:" |
93 |
ewarn |
94 |
ewarn "source /etc/profile" |
95 |
ewarn |
96 |
ewarn "If you want to use adesklets from your already" |
97 |
ewarn "opened sessions. The sessions log are automatically" |
98 |
ewarn "saved to /tmp/adesklets_log.pid*." |
99 |
} |
69 |
} |
100 |
} |