# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-mobilephone/obex-data-server/obex-data-server-0.4.2.ebuild,v 1.4 2009/02/24 01:40:49 josejx Exp $ EAPI="1" DESCRIPTION="a DBus service providing easy to use API for using OBEX" HOMEPAGE="http://tadas.dailyda.com/blog/category/obex-data-server/" SRC_URI="http://tadas.dailyda.com/software/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" IUSE="debug gtk imagemagick" RDEPEND="dev-libs/glib:2 >=dev-libs/dbus-glib-0.7 sys-apps/dbus || ( >=net-wireless/bluez-4.18 >=net-wireless/bluez-libs-3.34 ) >=dev-libs/openobex-1.3 imagemagick? ( !gtk? ( media-gfx/imagemagick ) ) gtk? ( x11-libs/gtk+ ) !app-mobilephone/obexd" DEPEND="dev-util/pkgconfig ${RDEPEND}" src_compile() { local bip="no" use imagemagick && bip="magick" use gtk && bip="gdk-pixbuf" econf \ $(use_enable debug) \ --enable-system-config \ --enable-bip=${bip} emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" }