Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 470990
Collapse All | Expand All

(-)file_not_specified_in_diff (-32 / +22 lines)
Line  Link Here
0
-- Djblets-0.7.14.ebuild
0
++ Djblets-0.7.14-r1.ebuild
Lines 2-13 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/Djblets/Djblets-0.7.14.ebuild,v 1.1 2013/05/10 04:25:05 patrick Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/Djblets/Djblets-0.7.14.ebuild,v 1.1 2013/05/10 04:25:05 patrick Exp $
4
4
5
EAPI=4
5
EAPI=5
6
PYTHON_DEPEND="2:2.6"
6
7
SUPPORT_PYTHON_ABIS=1
7
PYTHON_COMPAT=( python{2_6,2_7} )
8
# pypy included below to just a single test failure
8
inherit distutils-r1 versionator
9
RESTRICT_PYTHON_ABIS="2.5 3.* *-jython 2.7-pypy-*"
10
inherit distutils versionator
11
9
12
DESCRIPTION="A collection of useful extensions for Django"
10
DESCRIPTION="A collection of useful extensions for Django"
13
HOMEPAGE="http://github.com/djblets/djblets"
11
HOMEPAGE="http://github.com/djblets/djblets"
Lines 16-56 Link Here
16
LICENSE="MIT"
14
LICENSE="MIT"
17
SLOT="0"
15
SLOT="0"
18
KEYWORDS="~amd64 ~x86"
16
KEYWORDS="~amd64 ~x86"
19
IUSE=""
17
IUSE="test"
20
18
21
RDEPEND="dev-python/django
19
RDEPEND="dev-python/django[${PYTHON_USEDEP}]
22
	dev-python/imaging"
20
	>=dev-python/feedparser-5.1.2[${PYTHON_USEDEP}]
21
	dev-python/imaging[${PYTHON_USEDEP}]
22
	dev-python/pytz[${PYTHON_USEDEP}]"
23
DEPEND="${RDEPEND}
23
DEPEND="${RDEPEND}
24
	dev-python/django-pipeline
24
	dev-python/django-pipeline[${PYTHON_USEDEP}]
25
	test? ( dev-python/django-evolution
25
	test? ( dev-python/django-evolution[${PYTHON_USEDEP}]
26
		>=dev-python/django-1.4.1 )"
26
		>=dev-python/django-1.4.1[${PYTHON_USEDEP}] )"
27
28
PYTHON_MODNAME="djblets"
29
27
30
src_prepare() {
28
python_prepare_all() {
31
	# Easier to add the file since upstream (currently) unresponsive to request
29
	# Easier to add the file since upstream (currently) unresponsive to request
32
	# https://github.com/djblets/djblets/pull/6
30
	# https://github.com/djblets/djblets/pull/6
33
	mkdir djblets/feedview/testdata || die
31
	mkdir djblets/feedview/testdata || die
34
	cp "${FILESDIR}"/sample.rss djblets/feedview/testdata || die
32
	cp "${FILESDIR}"/sample.rss djblets/feedview/testdata || die
35
	distutils_src_prepare
33
34
	distutils-r1_python_prepare_all
36
}
35
}
37
36
38
src_test() {
37
python_test() {
39
	export DJANGO_SETTINGS_MODULE="django.conf"
38
	pushd "${BUILD_DIR}"/lib > /dev/null
40
	testing() {
39
	"${PYTHON}" -m tests.runtests
41
		PYTHONPATH="build/lib" "$(PYTHON)" -m tests.runtests
42
	}
43
	python_execute_function testing
44
}
40
}
45
41
46
src_install() {
42
python_install() {
47
	distutils_src_install
43
	rm -rf "${BUILD_DIR}"/lib/tests tests || die
48
44
49
	local msg="Remove un-needed tests and also avoid file collisions"
45
	distutils-r1_python_install
50
	rmTests() {
51
		rm -rf "${ED}"/$(python_get_sitedir)/tests/ || die
52
	}
53
	einfo $msg
54
	einfo ""
55
	python_execute_function rmTests
56
}
46
}

Return to bug 470990