summaryrefslogtreecommitdiff
blob: e7eef4265c4e030cf7156c5b827bf428ed9e5d98 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
# /var/cvsroot/gentoo-x86/app-pda/syncevolution/syncevolution-1.1.1.ebuild,v 1.3
# 2011/03/21 21:56:01 nirbheek Exp $

EAPI=4

inherit eutils gnome2

DESCRIPTION="A SyncML desktop client and server"
HOMEPAGE="http://syncevolution.org/"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="akonadi sqlite +gtk +eds bluetooth +gnome keyring kwallet xmlrpc"

SRC_URI="http://downloads.syncevolution.org/syncevolution/sources/${P}.tar.gz"

RDEPEND=">=gnome-base/gconf-2:2
	>=dev-libs/glib-2.16:2
	>=net-libs/libsoup-2.4:2.4
	>=sys-apps/dbus-1.2
	x11-libs/libnotify
	keyring? ( >=gnome-base/gnome-keyring-2.20 )
	dev-python/twisted-web
	>=dev-libs/boost-1.35
	akonadi? ( kde-base/kdepim-common-libs )
	gtk? ( >=x11-libs/gtk+-2.18:2
		dev-libs/libunique:1 )
	eds? ( >=gnome-extra/evolution-data-server-1.2
		>=dev-libs/libical-0.43 )
	xmlrpc? ( >=dev-libs/xmlrpc-c-1.06
		>=dev-db/sqlite-3.7.2 )
	bluetooth? (
		>=net-wireless/bluez-4
		>=dev-libs/openobex-1.5
		gnome? ( >=net-wireless/gnome-bluetooth-2.28 ) )"
DEPEND="${RDEPEND}
	dev-libs/libxslt
	dev-python/docutils
	>=dev-util/pkgconfig-0.9
	>=dev-util/intltool-0.37.1"

DOCS="README NEWS AUTHORS HACKING"

REQUIRED_USE="xmlrpc? ( sqlite )"

src_prepare() {
	epatch "${FILESDIR}/fix-akonadi-build.patch"
	# patches from bugs.meego.com #20370
	epatch "${FILESDIR}/do-not-check-for-or-use-gtk-builder-convert.patch"
	epatch "${FILESDIR}/do-not-check-for-libglade-because-it-is-not-used.patch"
	# additional patch to remove the usage and check for gtk-builder-convert
	epatch "${FILESDIR}/do-not-use-gtk-builder-convert.patch"
}

pkg_setup() {
	G2CONF="--with-rst2man=/usr/bin/rst2man.py
		--with-rst2html=/usr/bin/rst2html.py
		--enable-dbus-service
		$(use_enable akonadi)
		$(use_enable bluetooth)
		$(use_enable sqlite)
		$(use_enable eds ebook)
		$(use_enable eds ecal)
		$(use_enable keyring gnome-keyring)
		$(use_enable kwallet)
		$(use_enable xmlrpc)
		$(use_enable xmlrpc sqlite)
		$(use_enable xmlrpc file)"
	if use bluetooth; then
		G2CONF="${G2CONF}
			$(use_enable gnome gnome-bluetooth-panel-plugin)"
	else
		G2CONF="${G2CONF} --disable-gnome-bluetooth-panel-plugin"
	fi
	if use gtk; then
		G2CONF="${G2CONF} --enable-gui=gtk"
	else
		G2CONF="${G2CONF} --enable-gui=no"
	fi
}