# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ ESVN_REPO_URI="http://pyfacebook.googlecode.com/svn/trunk/" inherit distutils eutils versionator subversion DESCRIPTION="Python Client Library for the Facebook API" HOMEPAGE="http://code.google.com/p/pyfacebook" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86" IUSE="examples test" RDEPEND="dev-lang/python" DEPEND="${RDEPEND}" S="${WORKDIR}" src_test() { elog "Please note: You're using a live SVN ebuild." elog "We therefore won't fix any failures in the tests." elog "If you think it's pyfacebook's fault report it to upstream." elog "Otherwise either disable the tests or use a stable version." PYTHONPATH="." ${python} tests/test.py || die "tests failed" } src_compile() { distutils_src_compile } src_install() { distutils_python_version site_pkgs="/usr/$(get_libdir)/python${PYVER}/site-packages/" export PYTHONPATH="${PYTHONPATH}:${D}/${site_pkgs}" dodir ${site_pkgs} distutils_src_install dobin bin/djangofb.py if use examples ; then insinto /usr/share/doc/${PF} doins -r examples fi }