Use $(PYTHON -f) instead of ${python}.
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Sun, 28 Feb 2010 10:51:15 +0000 (10:51 +0000)
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Sun, 28 Feb 2010 10:51:15 +0000 (10:51 +0000)
Package-Manager: portage-15495-svn/cvs/Linux x86_64

dev-python/enthoughtbase/enthoughtbase-3.0.3.ebuild
dev-python/sphinx/sphinx-0.6.3.ebuild

index 8157e6434df4a415803525d4e1f7a301ace35210..3e316a3f2b7d6431e32e414f83621c6719d4417f 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/enthoughtbase/enthoughtbase-3.0.3.ebuild,v 1.5 2010/02/26 04:47:30 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/enthoughtbase/enthoughtbase-3.0.3.ebuild,v 1.6 2010/02/28 10:47:17 arfrever Exp $
 
 EAPI="2"
 SUPPORT_PYTHON_ABIS="1"
@@ -42,7 +42,7 @@ src_compile() {
        distutils_src_compile
        if use doc; then
                export VARTEXFONTS="${T}/fonts"
-               ${python} setup.py build_docs --formats=html,pdf \
+               "$(PYTHON -f)" setup.py build_docs --formats=html,pdf \
                        || die "doc building failed"
        fi
 }
index e506cbcaa63948be8cb8a7bf0687881a18810f56..0c8209dcb771fe8925daa769fb2612f480b50b90 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2009 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-0.6.3.ebuild,v 1.12 2009/12/20 12:27:24 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-0.6.3.ebuild,v 1.13 2010/02/28 10:51:15 arfrever Exp $
 
 EAPI="2"
 SUPPORT_PYTHON_ABIS="1"
@@ -25,20 +25,18 @@ RDEPEND=">=dev-python/pygments-0.8
 DEPEND="${RDEPEND}
        dev-python/setuptools
        test? ( dev-python/nose )"
-
-RESTRICT_PYTHON_ABIS="3*"
+RESTRICT_PYTHON_ABIS="3.*"
 
 S="${WORKDIR}/${MY_P}"
 
+DOCS="CHANGES"
+
 src_compile() {
-       DOCS="CHANGES"
        distutils_src_compile
 
        if use doc; then
                cd doc
-               PYTHONPATH="../" emake \
-                       SPHINXBUILD="${python} ../sphinx-build.py" \
-                       html || die "making docs failed"
+               PYTHONPATH="../" emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed"
        fi
 }
 
@@ -53,7 +51,7 @@ src_install() {
        distutils_src_install
 
        if use doc; then
-               dohtml -A txt -r doc/_build/html/* || die
+               dohtml -A txt -r doc/_build/html/* || die "dohtml failed"
        fi
 }