42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Copyright 1999-2011 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.5.ebuild,v 1.8 2011/02/25 21:59:22 eva Exp $
|
|
|
|
EAPI="2"
|
|
|
|
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 ~arm ~hppa ppc x86"
|
|
|
|
IUSE="debug gtk imagemagick usb"
|
|
|
|
RDEPEND="dev-libs/glib:2
|
|
>=dev-libs/dbus-glib-0.7
|
|
sys-apps/dbus
|
|
>=net-wireless/bluez-4.31
|
|
>=dev-libs/openobex-1.3
|
|
imagemagick? ( !gtk? ( media-gfx/imagemagick ) )
|
|
gtk? ( x11-libs/gtk+:2 )
|
|
usb? ( virtual/libusb:0 )
|
|
!app-mobilephone/obexd[server]"
|
|
|
|
DEPEND="dev-util/pkgconfig
|
|
${RDEPEND}"
|
|
|
|
src_configure() {
|
|
local bip="no"
|
|
use imagemagick && bip="magick"
|
|
use gtk && bip="gdk-pixbuf"
|
|
econf \
|
|
--enable-bip=${bip} \
|
|
$(use usb || echo "--disable-usb") \
|
|
--disable-system-config \
|
|
$(use_enable debug)
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install || die "emake install failed"
|
|
}
|