equal
deleted
inserted
replaced
|
1 # Copyright 1999-2013 Gentoo Foundation |
|
2 # Distributed under the terms of the GNU General Public License v2 |
|
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/django-evolution/django-evolution-0.6.7-r1.ebuild,v 1.4 2013/03/15 09:33:33 patrick Exp $ |
|
4 |
|
5 EAPI=5 |
|
6 |
|
7 PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} ) |
|
8 |
|
9 inherit distutils-r1 eutils |
|
10 |
|
11 MY_PN=${PN/-/_} |
|
12 MY_P=${MY_PN}-${PV} |
|
13 |
|
14 DESCRIPTION="A Django application that will run cron jobs for other django apps" |
|
15 HOMEPAGE="http://code.google.com/p/django-evolution/ http://pypi.python.org/pypi/django_evolution/" |
|
16 SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
|
17 |
|
18 LICENSE="BSD" |
|
19 SLOT="0" |
|
20 KEYWORDS="~amd64 ~x86" |
|
21 IUSE="test" |
|
22 |
|
23 RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
|
24 DEPEND="${RDEPEND} |
|
25 dev-python/django |
|
26 test? ( dev-python/nose )" |
|
27 |
|
28 S=${WORKDIR}/${MY_P} |
|
29 |
|
30 python_test() { |
|
31 # This is tested, any delay in die subsequent to (implicitly inherited) multiprocessing eclass |
|
32 "${PYTHON}" tests/runtests.py || die |
|
33 } |
|
34 |
|
35 python_install() { |
|
36 einfo "Remove tests to avoid file collisions" |
|
37 rm -rf $(find "${BUILD_DIR}" -name tests) || die |
|
38 } |
|
39 |
|
40 python_install_all() { |
|
41 dodoc -r docs/ |
|
42 } |
|
43 |