# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="OpenSync synchronisation framework library" HOMEPAGE="http://www.opensync.org/" SRC_URI="mirror://sourceforge/opensync/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="debug doc python" DEPEND=">=dev-db/sqlite-3 >=dev-libs/glib-2 python? ( >=dev-lang/python-2.2 >=dev-lang/swig-1.3 ) doc? ( app-doc/doxygen ) debug? ( >=dev-libs/check-0.9.2 ) " #RDEPEND="" src_compile() { econf \ --enable-engine \ --enable-tools \ $(use_enable python) \ $(use_enable debug) \ $(use_enable debug unit-tests) \ $(use_enable debug tracing) \ || die "econf failed" emake || die "emake failed" # Create API docs if needed and possible if use doc; then doxygen Doxyfile fi } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS ChangeLog NEWS README TODO use doc && dohtml docs/html/* }