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 patching src/adesklets.c or src/commands.c, you need to touch these files |
32 |
touch scripting/enums scripting/prototypes |
33 |
} |
34 |
|
24 |
src_compile() |
35 |
src_compile() |
25 |
{ |
36 |
{ |
26 |
local myconf="" |
37 |
local myconf="" |
27 |
|
38 |
|
28 |
use X || myconf="--without-x" |
39 |
use X || myconf="--without-x" |
29 |
use python || myconf="${myconf} --without-python-support" |
40 |
use python || myconf="${myconf} --without-python-support" |
|
|
41 |
myconf="${myconf} $(use_enable debug)" |
42 |
use ctrlmenu && myconf="--enable-control-on-context-menu" |
30 |
|
43 |
|
31 |
econf ${myconf} || die |
44 |
econf ${myconf} || die |
32 |
emake || die |
45 |
emake || die |
Lines 40-45
Link Here
|
40 |
doinfo doc/*.info || die "info page installation failed" |
53 |
doinfo doc/*.info || die "info page installation failed" |
41 |
doman doc/*.1 || die "man page installation failed" |
54 |
doman doc/*.1 || die "man page installation failed" |
42 |
dodoc ChangeLog NEWS TODO AUTHORS |
55 |
dodoc ChangeLog NEWS TODO AUTHORS |
|
|
56 |
use debug && |
57 |
{ |
58 |
echo 'ADESKLETS_LOG="/tmp/adesklets_log"' > 70adesklets |
59 |
doenvd 70adesklets |
60 |
} |
61 |
|
43 |
} |
62 |
} |
44 |
|
63 |
|
45 |
pkg_postinst() |
64 |
pkg_postinst() |
Lines 66-69
Link Here
|
66 |
ewarn |
85 |
ewarn |
67 |
ewarn "Type USE=\"python\" emerge adesklets to correct this." |
86 |
ewarn "Type USE=\"python\" emerge adesklets to correct this." |
68 |
} |
87 |
} |
|
|
88 |
|
89 |
use debug && |
90 |
{ |
91 |
ewarn "You installed a debug build. Make sure you do:" |
92 |
ewarn |
93 |
ewarn "source /etc/profile" |
94 |
ewarn |
95 |
ewarn "If you want to use adesklets from your already" |
96 |
ewarn "opened sessions. The sessions log are automatically" |
97 |
ewarn "saved to /tmp/adesklets_log.pid*." |
98 |
} |
69 |
} |
99 |
} |