Update g-pypi ebuild based on output from my current g-pypi.
authorW. Trevor King <wking@drexel.edu>
Wed, 8 Jun 2011 04:00:56 +0000 (00:00 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 8 Jun 2011 04:00:56 +0000 (00:00 -0400)
app-portage/g-pypi/g-pypi-0.2.1.ebuild

index ae4fecb6537d3774ce7046480b5d60cb2130c6ab..95f45d3ca71979ea23c07921d9e3a5fb920475b6 100644 (file)
@@ -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"
 }
-