aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/django-debug-toolbar/django-debug-toolbar-0.9.4.ebuild')
-rw-r--r--dev-python/django-debug-toolbar/django-debug-toolbar-0.9.4.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/django-debug-toolbar/django-debug-toolbar-0.9.4.ebuild b/dev-python/django-debug-toolbar/django-debug-toolbar-0.9.4.ebuild
new file mode 100644
index 0000000..8f04861
--- /dev/null
+++ b/dev-python/django-debug-toolbar/django-debug-toolbar-0.9.4.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/django-debug-toolbar/django-debug-toolbar-0.9.4.ebuild,v 1.1 2012/04/25 16:26:12 tampakrap Exp $
+
+EAPI=4
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS=1
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils eutils
+
+DESCRIPTION="A configurable set of panels that display debug information"
+HOMEPAGE="http://pypi.python.org/pypi/django-debug-toolbar/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+LICENSE="MIT"
+SLOT="0"
+PYTHON_MODNAME="debug_toolbar"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ dev-python/setuptools
+ dev-python/django
+ test? ( dev-python/dingus )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-fix-with-py2.5.patch
+}
+
+src_test() {
+ export DJANGO_SETTINGS_MODULE="django.conf"
+ # sys.path info output assures that tests.py is being run
+ testing() {
+ PYTHONPATH=. "$(PYTHON)" -m tests.tests
+ einfo "Tests for python"$(python_get_version)" completed"
+ einfo ""
+ }
+ python_execute_function testing
+}