diff options
author | Ian Delaney <della5@iinet.com.au> | 2012-04-30 18:07:16 +0800 |
---|---|---|
committer | Ian Delaney <della5@iinet.com.au> | 2012-04-30 18:07:16 +0800 |
commit | 6089695a87e1593860f9feea40fd5edf4fa89e94 (patch) | |
tree | 7ca663721a4d98dbe1c25009f64c1b8609eade91 | |
parent | [dev-python/django-auth-ldap] Re-added, test updated (diff) | |
download | improvise-6089695a87e1593860f9feea40fd5edf4fa89e94.tar.gz improvise-6089695a87e1593860f9feea40fd5edf4fa89e94.tar.bz2 improvise-6089695a87e1593860f9feea40fd5edf4fa89e94.zip |
[dev-python/django-debug-toolbar' Re-added, src_test improved
(Portage version: 2.1.10.56/git/Linux x86_64, unsigned Manifest commit)
5 files changed, 75 insertions, 0 deletions
diff --git a/dev-python/django-debug-toolbar/ChangeLog b/dev-python/django-debug-toolbar/ChangeLog new file mode 100644 index 0000000..ca89eeb --- /dev/null +++ b/dev-python/django-debug-toolbar/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-python/django-debug-toolbar +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/django-debug-toolbar/ChangeLog,v 1.1 2012/04/25 16:26:12 tampakrap Exp $ + +*django-debug-toolbar-0.9.4 (25 Apr 2012) + + 25 Apr 2012; Theo Chatzimichos <tampakrap@gentoo.org> + +django-debug-toolbar-0.9.4.ebuild, + +files/django-debug-toolbar-0.9.4-fix-with-py2.5.patch, +metadata.xml: + Initial commit, ebuild by idella4 + diff --git a/dev-python/django-debug-toolbar/Manifest b/dev-python/django-debug-toolbar/Manifest new file mode 100644 index 0000000..637adb8 --- /dev/null +++ b/dev-python/django-debug-toolbar/Manifest @@ -0,0 +1 @@ +DIST django-debug-toolbar-0.9.4.tar.gz 150062 SHA256 d6bc217b672ddf0e729f76da2df1d4a50d45f1c934239851f7f7ae6a51201f4b SHA512 340d481bc57c77eb04f7058f39fa4d3b42186582e750ace11ef492e7e658d3dca08029343b6172cb07c935b4cd0e74e410d5eca92e9a0970d5bea9658e62a390 WHIRLPOOL f0e5753bed013b5c0b20b271c99838fed24783d86253bc12a056a48567e7ea5abd4066e292b8bb123b519224837094b2cf8331361338e1d689c6e13d7c0b37c0 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 +} diff --git a/dev-python/django-debug-toolbar/files/django-debug-toolbar-0.9.4-fix-with-py2.5.patch b/dev-python/django-debug-toolbar/files/django-debug-toolbar-0.9.4-fix-with-py2.5.patch new file mode 100644 index 0000000..9e26d39 --- /dev/null +++ b/dev-python/django-debug-toolbar/files/django-debug-toolbar-0.9.4-fix-with-py2.5.patch @@ -0,0 +1,8 @@ +diff -ur django-debug-toolbar-0.9.4.orig/tests/tests.py django-debug-toolbar-0.9.4/tests/tests.py +--- tests/tests.py 2011-10-10 02:47:15.000000000 +0800 ++++ tests/tests.py 2012-04-25 22:00:50.956680910 +0800 +@@ -1,3 +1,4 @@ ++from __future__ import with_statement + from debug_toolbar.middleware import DebugToolbarMiddleware + from debug_toolbar.panels.sql import SQLDebugPanel + from debug_toolbar.panels.request_vars import RequestVarsDebugPanel diff --git a/dev-python/django-debug-toolbar/metadata.xml b/dev-python/django-debug-toolbar/metadata.xml new file mode 100644 index 0000000..472ba46 --- /dev/null +++ b/dev-python/django-debug-toolbar/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>johneed@hotmail.com</email> + <name>Ian Delaney</name> + </maintainer> + <maintainer> + <email>tampakrap@gentoo.org</email> + <name>Theo Chatzimichos</name> + </maintainer> + <herd>python</herd> +</pkgmetadata> + |