From 420965b12b8b543bed064506a9cdd39af5add35b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 7 Jun 2011 23:51:06 -0400 Subject: [PATCH] Update yolk ebuild with output from my current g-pypi tip. --- dev-python/yolk/Manifest | 2 +- dev-python/yolk/yolk-0.4.1.ebuild | 40 ++++++++++++++++++------------- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/dev-python/yolk/Manifest b/dev-python/yolk/Manifest index 1c4365a..9155dfd 100644 --- a/dev-python/yolk/Manifest +++ b/dev-python/yolk/Manifest @@ -1,4 +1,4 @@ DIST yolk-0.4.1.tar.gz 80537 RMD160 5a672ab6ba8f121787c008b2e1e5d2b4fd8270d0 SHA1 004e7bf297ac9a752d4d41c3f7eeea7adaa7a675 SHA256 f03d9ebe2fa67aa210868312a474d949d26732b743aeece970e06f02ff740212 -EBUILD yolk-0.4.1.ebuild 839 RMD160 558f0c50c18bfeebd302d5dc0fb90bd99b84f268 SHA1 84859275ab9759c87972b07c7ef7356c797345b8 SHA256 787116b9dc7086d983cd2e578029d0af18c9129ddf487993955b0f5a368f2243 +EBUILD yolk-0.4.1.ebuild 1025 RMD160 551ff7f147cb38ed288757b28fe3a897ed5a0499 SHA1 79bb533d623f011aaa24f45a5e27706a1a7b731a SHA256 2fecf51c92423b62d46312c5ec8f40abb4c485d6e7167c4dec451d3bcc574608 MISC ChangeLog 1522 RMD160 5f29db29c1a5938ce9b1b5cf4c776c7da2fb25b0 SHA1 c68f608038c04260496298843826b91a2d43c4fd SHA256 cf85fb0ee581a5dd0a0cb1551fcea83c9aa0007ef6ea1d083c85beef112d0fcf MISC metadata.xml 416 RMD160 53ceca4e28f719127e86cad99db5d8f451e3f79d SHA1 ef053c60eacd712e5b2d9926b5c3e88ca9fe2b2c SHA256 65dd4c97684e9134162af7ba97209b91b83c1b9e003801bfb2aa205788482222 diff --git a/dev-python/yolk/yolk-0.4.1.ebuild b/dev-python/yolk/yolk-0.4.1.ebuild index 45de06c..3c545e7 100644 --- a/dev-python/yolk/yolk-0.4.1.ebuild +++ b/dev-python/yolk/yolk-0.4.1.ebuild @@ -1,36 +1,42 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ +# API of python.eclass in EAPI > 3 not established (see python.eclass)' EAPI="3" + +# HACK: PYTHON_DEPEND and RESTRICT_PYTHON_ABIS currently hardcoded. PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.*" +PYTHON_MODNAME="yolk" + inherit distutils -DESCRIPTION="Tool and library for querying PyPI and locally installed Python packages" -HOMEPAGE="http://pypi.python.org/pypi/yolk" +DESCRIPTION="Command-line tool querying PyPI and Python packages installed on your system." +HOMEPAGE="http://tools.assembla.com/yolk/" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - LICENSE="GPL-2" +KEYWORDS="~x86 ~xmd64" SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="examples" - -DEPEND="dev-python/setuptools" -RDEPEND="dev-python/yolk-portage" +IUSE="test doc examples" +DEPEND="dev-python/setuptools + test? ( dev-python/nose )" +RDEPEND="dev-python/setuptools + dev-python/yolk-portage" src_install() { distutils_src_install - + if use doc; then + dodoc "${S}"/docs/* + fi if use examples; then - docinto examples/plugins - dodoc examples/plugins/* - docinto examples/plugins/yolk_portage - dodoc examples/plugins/yolk_portage/* - docinto examples/plugins/yolk_pkg_manager - dodoc examples/plugins/yolk_pkg_manager/* - prepalldocs + insinto /usr/share/doc/"${PF}"/examples + doins -r "${S}"/examples/* fi } + +src_test() { + PYTHONPATH=. "${python}" setup.py nosetests || die "tests failed" +} -- 2.26.2