diff options
author | 2012-11-24 02:04:41 +0000 | |
---|---|---|
committer | 2012-11-24 02:04:41 +0000 | |
commit | d04a87d90b8e8c1b78300fba226437cf2885c5cb (patch) | |
tree | 07a947a4de9b0e37a9b08926fa2448b235d8f79d /dev-python/urwid/urwid-1.1.0.ebuild | |
parent | stable arm ppc64, bug #442510 (diff) | |
download | historical-d04a87d90b8e8c1b78300fba226437cf2885c5cb.tar.gz historical-d04a87d90b8e8c1b78300fba226437cf2885c5cb.tar.bz2 historical-d04a87d90b8e8c1b78300fba226437cf2885c5cb.zip |
Version bump. Fix html docs build with python-3.
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64
Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'dev-python/urwid/urwid-1.1.0.ebuild')
-rw-r--r-- | dev-python/urwid/urwid-1.1.0.ebuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dev-python/urwid/urwid-1.1.0.ebuild b/dev-python/urwid/urwid-1.1.0.ebuild index d527d6c170b1..4e53373a0090 100644 --- a/dev-python/urwid/urwid-1.1.0.ebuild +++ b/dev-python/urwid/urwid-1.1.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/urwid/urwid-1.1.0.ebuild,v 1.2 2012/11/05 22:10:00 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/urwid/urwid-1.1.0.ebuild,v 1.3 2012/11/24 02:04:27 radhermit Exp $ EAPI="4" PYTHON_USE_WITH="ncurses" @@ -30,6 +30,10 @@ src_prepare() { distutils_src_prepare epatch "${FILESDIR}"/${P}-sphinx.patch + + if [[ $(python_get_version -f --major) == 3 ]] ; then + 2to3-$(PYTHON -f --ABI) -nw --no-diffs docs/conf.py || die + fi } src_compile() { @@ -37,14 +41,14 @@ src_compile() { if use doc ; then cd docs - sphinx-build . _build || die + PYTHONPATH="$(ls -d ../build-$(PYTHON -f --ABI)/lib*)" sphinx-build . _build/html || die fi } src_install() { distutils_src_install - use doc && dohtml -r docs/_build/* + use doc && dohtml -r docs/_build/html/* if use examples ; then dodoc -r examples |