-# 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"
}
-