|
|
# Copyright 1999-2006 Gentoo Foundation | # Copyright 1999-2006 Gentoo Foundation |
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/adesklets/adesklets-0.5.0.ebuild,v 1.4 2006/02/11 00:03:09 nelchael Exp $ |
# $Header: |
|
|
|
inherit eutils |
| |
DESCRIPTION="An interactive Imlib2 console for the X Window system" | DESCRIPTION="An interactive Imlib2 console for the X Window system" |
HOMEPAGE="http://adesklets.sf.net/" | HOMEPAGE="http://adesklets.sf.net/" |
|
|
SLOT="0" | SLOT="0" |
LICENSE="GPL-2" | LICENSE="GPL-2" |
KEYWORDS="amd64 ~ppc x86" | KEYWORDS="amd64 ~ppc x86" |
IUSE="X python" |
IUSE="X python debug ctrlmenu" |
|
|
RDEPEND="X? ( || ( ( |
|
x11-libs/libX11 |
|
x11-apps/xprop |
|
x11-libs/libXt ) |
|
virtual/x11 ) )" |
|
| |
DEPEND=">=media-libs/imlib2-1.2.0-r2 | DEPEND=">=media-libs/imlib2-1.2.0-r2 |
X? ( || ( x11-proto/xproto virtual/x11 ) ) |
X? ( || ( ( |
|
x11-libs/libX11 |
|
x11-libs/libXt |
|
x11-proto/xproto ) |
|
virtual/x11 ) ) |
python? ( >=dev-lang/python-2.3.4-r1 )" | python? ( >=dev-lang/python-2.3.4-r1 )" |
| |
|
src_unpack() |
|
{ |
|
unpack ${A} |
|
cd ${S} |
|
epatch ${FILESDIR}/${P}-ctrlmenu.patch || die "epatch failed" |
|
# when patching src/adesklets.c or src/commands.c, you need to touch these files |
|
touch scripting/enums scripting/prototypes |
|
} |
|
|
src_compile() | src_compile() |
{ | { |
local myconf="" |
local myconf="--enable-control-on-context-menu" |
| |
use X || myconf="--without-x" | use X || myconf="--without-x" |
use python || myconf="${myconf} --without-python-support" | use python || myconf="${myconf} --without-python-support" |
|
myconf="${myconf} $(use_enable debug)" |
| |
econf ${myconf} || die | econf ${myconf} || die |
emake || die | emake || die |