summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-pda/synce-sync-engine/ChangeLog6
-rw-r--r--app-pda/synce-sync-engine/metadata.xml3
-rw-r--r--app-pda/synce-sync-engine/synce-sync-engine-0.15.1-r1.ebuild31
3 files changed, 26 insertions, 14 deletions
diff --git a/app-pda/synce-sync-engine/ChangeLog b/app-pda/synce-sync-engine/ChangeLog
index d2985a941eff..0c5ce1092a31 100644
--- a/app-pda/synce-sync-engine/ChangeLog
+++ b/app-pda/synce-sync-engine/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-pda/synce-sync-engine
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-pda/synce-sync-engine/ChangeLog,v 1.10 2011/02/25 17:49:40 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-pda/synce-sync-engine/ChangeLog,v 1.11 2011/03/28 01:47:32 ssuominen Exp $
+
+ 28 Mar 2011; Samuli Suominen <ssuominen@gentoo.org>
+ synce-sync-engine-0.15.1-r1.ebuild, metadata.xml:
+ USE="opensync" with plugins for both 0.2x and 0.3x series.
*synce-sync-engine-0.15.1-r1 (25 Feb 2011)
diff --git a/app-pda/synce-sync-engine/metadata.xml b/app-pda/synce-sync-engine/metadata.xml
index cd109a873f9d..3487de82cb87 100644
--- a/app-pda/synce-sync-engine/metadata.xml
+++ b/app-pda/synce-sync-engine/metadata.xml
@@ -6,4 +6,7 @@
<email>ssuominen@gentoo.org</email>
<name>Samuli Suominen</name>
</maintainer>
+ <use>
+ <flag name='opensync'>Enable OpenSync (<pkg>app-pda/libopensync</pkg>) python plug-in</flag>
+ </use>
</pkgmetadata>
diff --git a/app-pda/synce-sync-engine/synce-sync-engine-0.15.1-r1.ebuild b/app-pda/synce-sync-engine/synce-sync-engine-0.15.1-r1.ebuild
index 46d3e38ceb05..2c78f2f36ee1 100644
--- a/app-pda/synce-sync-engine/synce-sync-engine-0.15.1-r1.ebuild
+++ b/app-pda/synce-sync-engine/synce-sync-engine-0.15.1-r1.ebuild
@@ -1,6 +1,6 @@
# 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-r1.ebuild,v 1.3 2011/02/25 22:13:34 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-pda/synce-sync-engine/synce-sync-engine-0.15.1-r1.ebuild,v 1.4 2011/03/28 01:47:32 ssuominen Exp $
EAPI=3
@@ -8,7 +8,7 @@ PYTHON_DEPEND="2:2.6"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
-inherit distutils
+inherit distutils multilib
DESCRIPTION="A synchronization engine for SynCE"
HOMEPAGE="http://www.synce.org/"
@@ -17,7 +17,7 @@ SRC_URI="mirror://sourceforge/synce/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="opensync"
RDEPEND="dev-libs/librapi2[python]
dev-libs/librra[python]
@@ -25,7 +25,8 @@ RDEPEND="dev-libs/librapi2[python]
dev-libs/libxml2[python]
dev-libs/libxslt[python]
dev-python/dbus-python
- dev-python/pygobject"
+ dev-python/pygobject
+ opensync? ( >=app-pda/libopensync-0.22 )"
DEPEND="${RDEPEND}"
PYTHON_MODNAME="SyncEngine"
@@ -45,18 +46,22 @@ src_install() {
distutils_src_install
- # opensync plug-in begin
+ ### opensync plug-in BEGIN
find "${D}" -type d -name plugins -exec rm -rf {} +
- docinto synce-opensync-plugin
- dodoc plugins/synce-opensync-plugin-* || die
- # end
+ if use opensync; then
+ insinto /usr/$(get_libdir)/opensync/python-plugin
+ local plug=plugins/synce-opensync-plugin-
- rm -rf "${D}"/usr/foobar
-}
+ if has_version ">=app-pda/libopensync-0.30"; then
+ newins ${plug}3x.py synce-plugin.py || die
+ else
+ newins ${plug}2x.py synce-plugin.py || die
+ fi
-pkg_postinst() {
- distutils_pkg_postinst
+ dodoc ${plug}3x.README || die
+ fi
+ ### opensync plug-in END
- einfo "See /usr/share/doc/${PF}/synce-opensync-plugin for opensync plug-in."
+ rm -rf "${D}"/usr/foobar
}