diff options
author | Patrick Lauer <patrick@gentoo.org> | 2016-03-08 11:00:49 +0100 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2016-03-08 11:01:05 +0100 |
commit | 17f7e2b853e732450d908ab95ce9ef10ae5efbbd (patch) | |
tree | db3f639487852a99fdff58874c2885b52db29a84 /dev-python/waitress | |
parent | dev-python/pylons-sphinx-themes: Initial import. Dependency of waitress. (diff) | |
download | gentoo-17f7e2b853e732450d908ab95ce9ef10ae5efbbd.tar.gz gentoo-17f7e2b853e732450d908ab95ce9ef10ae5efbbd.tar.bz2 gentoo-17f7e2b853e732450d908ab95ce9ef10ae5efbbd.zip |
dev-python/waitress: Fix docs generation #576660
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-python/waitress')
-rw-r--r-- | dev-python/waitress/waitress-0.8.10-r1.ebuild (renamed from dev-python/waitress/waitress-0.8.10.ebuild) | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/dev-python/waitress/waitress-0.8.10.ebuild b/dev-python/waitress/waitress-0.8.10-r1.ebuild index c9fe158908cb..64a250b74730 100644 --- a/dev-python/waitress/waitress-0.8.10.ebuild +++ b/dev-python/waitress/waitress-0.8.10-r1.ebuild @@ -10,8 +10,7 @@ inherit distutils-r1 DESCRIPTION="A pure-Python WSGI server" HOMEPAGE="http://docs.pylonsproject.org/projects/waitress/en/latest/ https://pypi.python.org/pypi/waitress/ https://github.com/Pylons/waitress" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz \ - doc? ( https://dev.gentoo.org/~idella4/pylons_sphinx_theme.tar.gz )" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" @@ -22,18 +21,14 @@ RDEPEND="" DEPEND="${RDEPEND} app-arch/unzip dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/pylons-sphinx-themes[${PYTHON_USEDEP}] ) test? ( dev-python/nose[${PYTHON_USEDEP}] )" -python_prepare_all() { +src_prepare() { if use doc; then - local PATCHES=( "${FILESDIR}"/${P}-doc.patch ) - mv "${WORKDIR}"/_themes ./docs/ || die + sed -i -e "s/^version = .*/version = \'${PV}\'/" docs/conf.py || die fi - - # Fix generation of documentation with Waitress not installed. Bug #525384 - sed -e "s/^version = pkg_resources.get_distribution('waitress').version$/version = '${PV}'/" -i docs/conf.py - - distutils-r1_python_prepare_all + distutils-r1_src_prepare } python_compile_all() { |