Simplify src_test().
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Wed, 26 May 2010 18:24:41 +0000 (18:24 +0000)
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Wed, 26 May 2010 18:24:41 +0000 (18:24 +0000)
Package-Manager: portage-HEAD/cvs/Linux x86_64

dev-python/sphinx/sphinx-0.6.5.ebuild
dev-python/sphinx/sphinx-0.6.6.ebuild
dev-python/sphinx/sphinx-1.0_beta1.ebuild

index 34c09e9f8526cd381e1140e36dd492ec399424d7..c0e0253752db6c1657d13c55170d1928ca968bcc 100644 (file)
@@ -1,9 +1,10 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-0.6.5.ebuild,v 1.9 2010/05/21 20:56:18 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-0.6.5.ebuild,v 1.10 2010/05/26 18:24:41 arfrever Exp $
 
-EAPI="2"
+EAPI="3"
 SUPPORT_PYTHON_ABIS="1"
+DISTUTILS_SRC_TEST="nosetests"
 
 inherit distutils
 
@@ -36,17 +37,11 @@ src_compile() {
 
        if use doc; then
                cd doc
+               einfo "Generation of documentation"
                PYTHONPATH="../" emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed"
        fi
 }
 
-src_test() {
-       testing() {
-               PYTHONPATH="build-${PYTHON_ABI}/lib" nosetests-${PYTHON_ABI}
-       }
-       python_execute_function testing
-}
-
 src_install() {
        distutils_src_install
 
@@ -60,8 +55,7 @@ pkg_postinst() {
 
        # Generating the Grammar pickle to avoid on the fly generation causing sandbox violations (bug #266015)
        generation_of_grammar_pickle() {
-               "$(PYTHON)" -c "from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${ROOT%/}${EPREFIX}$(python_get_sitedir)/sphinx/pycode/Grammar.txt')" \
-               || die "Generation of grammar pickle failed"
+               "$(PYTHON)" -c "from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${ROOT%/}${EPREFIX}$(python_get_sitedir)/sphinx/pycode/Grammar.txt')" || die "Generation of grammar pickle failed"
        }
        python_execute_function --action-message 'Generation of Grammar pickle with Python ${PYTHON_ABI}...' generation_of_grammar_pickle
 }
index 6ca8b56098645e398b91835cf1d10525ae5ca17f..e85ac26fa099c75799cbc55e916b1661045d7103 100644 (file)
@@ -1,9 +1,10 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-0.6.6.ebuild,v 1.1 2010/05/25 10:38:38 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-0.6.6.ebuild,v 1.2 2010/05/26 18:24:41 arfrever Exp $
 
-EAPI="2"
+EAPI="3"
 SUPPORT_PYTHON_ABIS="1"
+DISTUTILS_SRC_TEST="nosetests"
 
 inherit distutils
 
@@ -36,17 +37,11 @@ src_compile() {
 
        if use doc; then
                cd doc
+               einfo "Generation of documentation"
                PYTHONPATH="../" emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed"
        fi
 }
 
-src_test() {
-       testing() {
-               PYTHONPATH="build-${PYTHON_ABI}/lib" nosetests-${PYTHON_ABI}
-       }
-       python_execute_function testing
-}
-
 src_install() {
        distutils_src_install
 
@@ -60,8 +55,7 @@ pkg_postinst() {
 
        # Generating the Grammar pickle to avoid on the fly generation causing sandbox violations (bug #266015)
        generation_of_grammar_pickle() {
-               "$(PYTHON)" -c "from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${ROOT%/}${EPREFIX}$(python_get_sitedir)/sphinx/pycode/Grammar.txt')" \
-               || die "Generation of grammar pickle failed"
+               "$(PYTHON)" -c "from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${ROOT%/}${EPREFIX}$(python_get_sitedir)/sphinx/pycode/Grammar.txt')" || die "Generation of grammar pickle failed"
        }
        python_execute_function --action-message 'Generation of Grammar pickle with Python ${PYTHON_ABI}...' generation_of_grammar_pickle
 }
index 81f44c5bc7eeb6740899eb0cf19d8539b9c59161..0136a56f7f6a374a39269e552c9990d5f8d49d2d 100644 (file)
@@ -1,9 +1,10 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.0_beta1.ebuild,v 1.1 2010/05/25 10:53:47 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.0_beta1.ebuild,v 1.2 2010/05/26 18:24:41 arfrever Exp $
 
-EAPI="2"
+EAPI="3"
 SUPPORT_PYTHON_ABIS="1"
+DISTUTILS_SRC_TEST="nosetests"
 
 inherit distutils
 
@@ -36,17 +37,11 @@ src_compile() {
 
        if use doc; then
                cd doc
+               einfo "Generation of documentation"
                PYTHONPATH="../" emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed"
        fi
 }
 
-src_test() {
-       testing() {
-               PYTHONPATH="build-${PYTHON_ABI}/lib" nosetests-${PYTHON_ABI}
-       }
-       python_execute_function testing
-}
-
 src_install() {
        distutils_src_install
 
@@ -60,8 +55,7 @@ pkg_postinst() {
 
        # Generating the Grammar pickle to avoid on the fly generation causing sandbox violations (bug #266015)
        generation_of_grammar_pickle() {
-               "$(PYTHON)" -c "from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${ROOT%/}${EPREFIX}$(python_get_sitedir)/sphinx/pycode/Grammar.txt')" \
-               || die "Generation of grammar pickle failed"
+               "$(PYTHON)" -c "from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${ROOT%/}${EPREFIX}$(python_get_sitedir)/sphinx/pycode/Grammar.txt')" || die "Generation of grammar pickle failed"
        }
        python_execute_function --action-message 'Generation of Grammar pickle with Python ${PYTHON_ABI}...' generation_of_grammar_pickle
 }