Index: south-0.8.1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/south/south-0.8.1.ebuild,v retrieving revision 1.2 diff -u -B -r1.2 south-0.8.1.ebuild --- south-0.8.1.ebuild 3 Jun 2013 04:22:41 -0000 1.2 +++ south-0.8.1.ebuild 14 Sep 2013 08:35:54 -0000 @@ -4,7 +4,7 @@ EAPI=5 -PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) +PYTHON_COMPAT=( python{2_6,2_7} ) inherit vcs-snapshot distutils-r1 @@ -20,7 +20,9 @@ RDEPEND="dev-python/django[${PYTHON_USEDEP}]" DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx dev-python/jinja ) + doc? ( + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] ) test? ( dev-python/django[sqlite] )" # we are setting up the tests, but they fail @@ -31,26 +33,22 @@ python_install_all() { use doc && local HTML_DOCS=( docs/_build/html/. ) -} - -python_compile() { - distutils-r1_python_compile - if use test; then - cd "${BUILD_DIR}" - django-admin.py startproject southtest || die "setting up test env failed" - cd southtest - sed -i \ - -e "/^INSTALLED_APPS/a\ 'south'," \ - -e 's/\(django.db.backends.\)/\1sqlite3/' \ - -e "s/\(NAME': '\)/\1test.db/" \ - southtest/settings.py || die "sed failed" - echo "SKIP_SOUTH_TESTS=False" >> southtest/settings.py - fi + distutils-r1_python_install_all } python_test() { # http://south.aeracode.org/ticket/1256 - cd "${BUILD_DIR}/southtest" + cd "${BUILD_DIR}" || die + django-admin.py startproject southtest || die "setting up test env failed" + + cd southtest || die + sed -i \ + -e "/^INSTALLED_APPS/a\ 'south'," \ + -e 's/\(django.db.backends.\)/\1sqlite3/' \ + -e "s/\(NAME': '\)/\1test.db/" \ + -e '$a\SKIP_SOUTH_TESTS=False' \ + southtest/settings.py || die "test sed failed" + "${EPYTHON}" manage.py test south || die "tests failed for ${EPYTHON}" }