diff options
Diffstat (limited to 'dev-python/anyvc/anyvc-0.3.1.ebuild')
-rw-r--r-- | dev-python/anyvc/anyvc-0.3.1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/anyvc/anyvc-0.3.1.ebuild b/dev-python/anyvc/anyvc-0.3.1.ebuild new file mode 100644 index 000000000000..c4e4afe0346d --- /dev/null +++ b/dev-python/anyvc/anyvc-0.3.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/anyvc/anyvc-0.3.1.ebuild,v 1.1 2010/06/23 23:46:34 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils + +DESCRIPTION="Library to access any version control system" +HOMEPAGE="http://pypi.python.org/pypi/anyvc" +SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bazaar doc git mercurial subversion" + +RDEPEND="dev-python/execnet + bazaar? ( dev-vcs/bzr ) + git? ( dev-python/dulwich ) + mercurial? ( dev-vcs/mercurial ) + subversion? ( dev-python/subvertpy )" +DEPEND="${RDEPEND} + dev-python/setuptools + doc? ( dev-python/sphinx )" + +src_compile() { + distutils_src_compile + + if use doc; then + einfo "Generation of documentation" + sphinx-build -b html docs docs_output || die "Generation of documentation failed" + fi +} + +src_install() { + distutils_src_install + + if use doc; then + pushd docs_output > /dev/null + docinto html + cp -R [a-z]* _static "${ED}usr/share/doc/${PF}/html" || die "Installation of documentation failed" + popd > /dev/null + fi +} |