blob: 40f7ee6eef69eb44cc2460c79fd8cef806b1d264 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-pda/synce-sync-engine/synce-sync-engine-0.15.1-r3.ebuild,v 1.2 2011/10/23 22:04:47 tetromino Exp $
EAPI=3
PYTHON_DEPEND="2:2.6"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit distutils multilib
DESCRIPTION="A synchronization engine for SynCE"
HOMEPAGE="http://www.synce.org/"
SRC_URI="mirror://sourceforge/synce/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="opensync"
RDEPEND="dev-libs/librapi2[python]
dev-libs/librra[python]
dev-libs/librtfcomp[python]
dev-libs/libxml2[python]
dev-libs/libxslt[python]
dev-python/dbus-python
dev-python/pygobject:2
opensync? ( || (
>=app-pda/libopensync-0.39[python]
( =app-pda/libopensync-0.22*[python] app-pda/libopensync-plugin-python )
) )"
DEPEND="${RDEPEND}"
PYTHON_MODNAME="SyncEngine"
src_prepare() {
sed -i -e 's:share/doc/sync-engine:foobar:' setup.py || die
distutils_src_prepare
}
src_install() {
insinto /usr/share/dbus-1/services
doins config/org.synce.SyncEngine.service || die
insinto /etc
doins config/syncengine.conf.xml || die
distutils_src_install
### opensync plug-in BEGIN
find "${D}" -type d -name plugins -exec rm -rf {} +
if use opensync; then
local plug=plugins/synce-opensync-plugin-
if has_version ">=app-pda/libopensync-0.39"; then
insinto /usr/$(get_libdir)/libopensync1/python-plugins
newins ${plug}3x.py synce-plugin.py || die
else
# See OPENSYNC_PYTHONPLG_DIR variable in libopensync-python-plugin-0.22
# to verify path for python plugins.
insinto /usr/$(get_libdir)/opensync/python-plugins
newins ${plug}2x.py synce-plugin.py || die
fi
dodoc ${plug}3x.README || die
fi
### opensync plug-in END
rm -rf "${D}"/usr/foobar
}
|