From: W. Trevor King Date: Tue, 30 Sep 2014 17:22:55 +0000 (-0700) Subject: pyvows-9999.ebuild: Fix 'pyvows' -> 'pyVows' for PyPI page X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7a77ee8fa85521375a0c91ab1bfd6447e37d57be;p=wtk-overlay.git pyvows-9999.ebuild: Fix 'pyvows' -> 'pyVows' for PyPI page --- diff --git a/pyvows-9999.ebuild b/pyvows-9999.ebuild index 4846d58..a949b13 100644 --- a/pyvows-9999.ebuild +++ b/pyvows-9999.ebuild @@ -7,16 +7,19 @@ PYTHON_COMPAT=( python2_7 ) inherit distutils-r1 +MY_PN="pyVows" +MY_P="${MY_PN}-${PV}" + if [[ "${PV}" == "9999" ]]; then inherit git-2 EGIT_REPO_URI="git://github.com/heynemann/${PN}.git" SRC_URI="" else - SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz" fi DESCRIPTION="A test engine based on Vows.js" -HOMEPAGE="http://pyvows.org/ https://pypi.python.org/pypi/pyvows" +HOMEPAGE="http://pyvows.org/ https://pypi.python.org/pypi/pyVows" LICENSE="MIT" SLOT="0" @@ -34,6 +37,8 @@ DEPEND=" dev-python/coverage[${PYTHON_USEDEP}] )" +S="${WORKDIR}/${MY_P}" + python_prepare_all() { sed -i "s/packages=find_packages()/packages=find_packages(exclude=['tests', 'tests.*'])/" setup.py || die distutils-r1_python_prepare_all