# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils python DESCRIPTION="SynCE - Synchronization engine" HOMEPAGE="http://sourceforge.net/projects/synce/" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="dev-python/pygobject dev-python/dbus-python >=app-pda/libopensync-plugin-python-0.21 dev-libs/libxml2 dev-libs/libxslt dev-python/pyxml ~app-pda/synce-odccm-0.10.0 =app-pda/synce-rra-0.10.0 =app-pda/synce-librtfcomp-1.1 =app-pda/synce-pywbxml-0.1" SRC_URI="mirror://sourceforge/synce/${P}.tar.gz" src_unpack() { unpack ${A} cd ${S} # Change python package path to normal on 'tools' folder for I in tools/*.py ; do sed -i \ -e "#sys.path.insert(0,#d" \ $I done } src_compile() { einfo "nothing to compile" } src_install() { python_version SITE_PACKAGES="/usr/lib/python${PYVER}/site-packages/engine" dobin sync-engine dobin tools/*.py dodir ${SITE_PACKAGES} cp -R engine/* ${D}/${SITE_PACKAGES} insinto /usr/share/${PN}/ doins config.xml cp -R tests ${D}/usr/share/${PN}/ insinto /usr/lib/opensync/python-plugins newins opensync-plugin.py synce.py dodoc CHANGELOG } pkg_postinst() { einfo "Plase copy:" einfo "/usr/share/${PN}/config.xml" einfo "to" einfo "~/.synce/ directory" einfo "Change it to fit your needs" }