2010-05-09 08:54:13 +02:00
|
|
|
# Copyright 1999-2009 Gentoo Foundation
|
2008-12-08 20:43:30 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2010-05-09 08:54:13 +02:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/app-pda/libopensync-plugin-irmc/libopensync-plugin-irmc-0.36.ebuild,v 1.4 2009/09/19 16:26:56 betelgeuse Exp $
|
|
|
|
|
|
|
|
EAPI="2"
|
2008-12-08 20:43:30 +01:00
|
|
|
|
|
|
|
inherit eutils cmake-utils
|
|
|
|
|
|
|
|
DESCRIPTION="OpenSync IrMC plugin"
|
|
|
|
HOMEPAGE="http://www.opensync.org/"
|
|
|
|
SRC_URI="http://www.opensync.org/download/releases/${PV}/${P}.tar.bz2"
|
|
|
|
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
SLOT="0"
|
|
|
|
LICENSE="GPL-2"
|
2010-05-09 08:54:13 +02:00
|
|
|
IUSE="+bluetooth irda"
|
2008-12-08 20:43:30 +01:00
|
|
|
|
|
|
|
DEPEND=">=app-pda/libopensync-${PV}
|
2010-05-09 08:54:13 +02:00
|
|
|
>=dev-libs/openobex-1.0[bluetooth?,irda?]
|
|
|
|
bluetooth? ( || ( net-wireless/bluez net-wireless/bluez-libs ) )"
|
2008-12-08 20:43:30 +01:00
|
|
|
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
if ! use irda && ! use bluetooth; then
|
|
|
|
eerror "${CATEGORY}/${P} without support for bluetooth nor irda is unusable."
|
|
|
|
eerror "Please enable \"bluetooth\" or/and \"irda\" USE flags."
|
2010-05-09 08:54:13 +02:00
|
|
|
die "Please enable \"bluetooth\" or/and \"irda\" USE flags."
|
2008-12-08 20:43:30 +01:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2010-05-09 08:54:13 +02:00
|
|
|
src_configure() {
|
2008-12-08 20:43:30 +01:00
|
|
|
local mycmakeargs="
|
|
|
|
$(cmake-utils_use_enable bluetooth BLUETOOTH)
|
|
|
|
$(cmake-utils_use_enable irda IRDA)"
|
|
|
|
|
2010-05-09 08:54:13 +02:00
|
|
|
cmake-utils_src_configure
|
2008-12-08 20:43:30 +01:00
|
|
|
}
|