diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-04-05 11:38:49 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-04-05 11:38:49 +0000 |
commit | 210e9fa3b2e7a99a20a27217a1f72f0bd5dae0be (patch) | |
tree | 99f5f607ee311e8dc9488feb5f4d94094837c393 /dev-python/django-evolution | |
parent | version bump, drop old, add message about optional sound support (bug #442414) (diff) | |
download | gentoo-2-210e9fa3b2e7a99a20a27217a1f72f0bd5dae0be.tar.gz gentoo-2-210e9fa3b2e7a99a20a27217a1f72f0bd5dae0be.tar.bz2 gentoo-2-210e9fa3b2e7a99a20a27217a1f72f0bd5dae0be.zip |
Fix installing tests in setup.py. Add missing PYTHON_USEDEPs. Use proper phase functions. Limit Python implementations to match current django.
(Portage version: 2.2.0_alpha171/cvs/Linux x86_64, signed Manifest commit with key 9627F456F9DA7643!)
Diffstat (limited to 'dev-python/django-evolution')
-rw-r--r-- | dev-python/django-evolution/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/django-evolution/django-evolution-0.6.7-r1.ebuild | 24 |
2 files changed, 21 insertions, 10 deletions
diff --git a/dev-python/django-evolution/ChangeLog b/dev-python/django-evolution/ChangeLog index 8abb8a7020d7..7139386898f1 100644 --- a/dev-python/django-evolution/ChangeLog +++ b/dev-python/django-evolution/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/django-evolution # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/django-evolution/ChangeLog,v 1.9 2013/04/05 04:33:30 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/django-evolution/ChangeLog,v 1.10 2013/04/05 11:38:49 mgorny Exp $ + + 05 Apr 2013; Michał Górny <mgorny@gentoo.org> + django-evolution-0.6.7-r1.ebuild: + Fix installing tests in setup.py. Add missing PYTHON_USEDEPs. Use proper phase + functions. Limit Python implementations to match current django. 05 Apr 2013; Ian Delaney <idella4@gentoo.org> django-evolution-0.6.7-r1.ebuild: diff --git a/dev-python/django-evolution/django-evolution-0.6.7-r1.ebuild b/dev-python/django-evolution/django-evolution-0.6.7-r1.ebuild index 1ff8107150fc..9b4f0882174e 100644 --- a/dev-python/django-evolution/django-evolution-0.6.7-r1.ebuild +++ b/dev-python/django-evolution/django-evolution-0.6.7-r1.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/django-evolution/django-evolution-0.6.7-r1.ebuild,v 1.5 2013/04/05 04:33:30 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/django-evolution/django-evolution-0.6.7-r1.ebuild,v 1.6 2013/04/05 11:38:49 mgorny Exp $ EAPI=5 -PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} ) +PYTHON_COMPAT=( python{2_6,2_7} ) -inherit distutils-r1 eutils +inherit distutils-r1 MY_PN=${PN/-/_} MY_P=${MY_PN}-${PV} @@ -22,19 +22,25 @@ IUSE="test" RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" DEPEND="${RDEPEND} - dev-python/django - test? ( dev-python/nose )" + dev-python/django[${PYTHON_USEDEP}] + test? ( dev-python/nose[${PYTHON_USEDEP}] )" S=${WORKDIR}/${MY_P} +python_prepare_all() { + # Fix installing 'tests' package in the global scope. + # http://code.google.com/p/django-evolution/issues/detail?id=134 + sed -i -e 's:find_packages(:&exclude=("tests",):' setup.py || die + + distutils-r1_python_prepare_all +} + python_test() { # This is tested, any delay in die subsequent to (implicitly inherited) multiprocessing eclass "${PYTHON}" tests/runtests.py || die } -src_install() { - einfo "Remove tests to avoid file collisions" - rm -rf $(find ../ -name tests) || die - distutils-r1_src_install +python_install_all() { + distutils-r1_python_install_all dodoc -r docs/ } |