From: W. Trevor King Date: Wed, 8 Jun 2011 04:00:56 +0000 (-0400) Subject: Update g-pypi ebuild based on output from my current g-pypi. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3b30c12d1c8eba86cb9735d3aa2ae717d35161f4;p=wtk-prefix-overlay.git Update g-pypi ebuild based on output from my current g-pypi. --- diff --git a/app-portage/g-pypi/g-pypi-0.2.1.ebuild b/app-portage/g-pypi/g-pypi-0.2.1.ebuild index ae4fecb..95f45d3 100644 --- a/app-portage/g-pypi/g-pypi-0.2.1.ebuild +++ b/app-portage/g-pypi/g-pypi-0.2.1.ebuild @@ -1,27 +1,41 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ -inherit distutils +EAPI="3" + +PYTHON_DEPEND="*:2.6" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" +PYTHON_MODNAME="g_pypi" -DESCRIPTION="Create Python ebuilds for Gentoo by querying The Python Package Index" -HOMEPAGE="http://tools.assembla.com/g-pypi/" -SRC_URI="http://pypi.python.org/packages/source/g/${PN}/${P}.tar.gz" +inherit distutils + +DESCRIPTION="Tool for creating Gentoo ebuilds for Python packages by querying PyPI (The Cheese Shop)" +HOMEPAGE="http://code.google.com/p/${PN}/" +SRC_URI="mirror://pypi/{$PN:0:1}/${PN}/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" SLOT="0" -IUSE="test" +IUSE="test doc" DEPEND="dev-python/setuptools test? ( dev-python/nose )" -RDEPEND="dev-python/setuptools - dev-python/pygments +RDEPEND="dev-python/pygments + dev-python/setuptools dev-python/cheetah - app-portage/gentoolkit dev-python/configobj + app-portage/gentoolkit dev-python/yolk" +src_install() { + distutils_src_install + if use doc; then + dodoc "${S}"/docs/* + fi + +} + src_test() { PYTHONPATH=. "${python}" setup.py nosetests || die "tests failed" } -