blob: e30e427f689ca269fac1b06b2e4049c8b2b8a659 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-pda/libopensync-plugin-irmc/libopensync-plugin-irmc-9999.ebuild,v 1.5 2010/06/11 12:15:30 ssuominen Exp $
inherit eutils cmake-utils subversion
DESCRIPTION="OpenSync IrMC plugin"
HOMEPAGE="http://www.opensync.org/"
SRC_URI=""
ESVN_REPO_URI="http://svn.opensync.org/plugins/irmc-sync"
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="bluetooth irda"
DEPEND="=app-pda/libopensync-${PV}*
>=dev-libs/openobex-1.0
bluetooth? ( net-wireless/bluez )"
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."
die "Please enable \"bluetooth\" or/and \"irda\" USE flags."
fi
if use bluetooth && ! built_with_use dev-libs/openobex bluetooth; then
eerror "You are trying to build ${CATEGORY}/${P} with the \"bluetooth\""
eerror "USE flag, but dev-libs/openobex was built without"
eerror "the \"bluetooth\" USE flag."
eerror "Please rebuild dev-libs/openobex with \"bluetooth\" USE flag."
die "Please rebuild dev-libs/openobex with \"bluetooth\" USE flag."
fi
if use irda && ! built_with_use dev-libs/openobex irda; then
eerror "You are trying to build ${CATEGORY}/${P} with the \"irda\""
eerror "USE flag, but dev-libs/openobex was built without"
eerror "the \"irda\" USE flag."
eerror "Please rebuild dev-libs/openobex with \"irda\" USE flag."
die "Please rebuild dev-libs/openobex with \"irda\" USE flag."
fi
}
src_compile() {
local mycmakeargs="
$(cmake-utils_use_enable bluetooth BLUETOOTH)
$(cmake-utils_use_enable irda IRDA)"
cmake-utils_src_compile
}
|