summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2014-01-23 07:52:16 +0000
committerIan Delaney <idella4@gentoo.org>2014-01-23 07:52:16 +0000
commit6191d4858518b0058bcddcd13efada5622d8f5ee (patch)
tree438e8d2a9e6908cd30581a82dff354087f848a2b /dev-python/django-debug-toolbar
parentVersion bump (diff)
downloadgentoo-2-6191d4858518b0058bcddcd13efada5622d8f5ee.tar.gz
gentoo-2-6191d4858518b0058bcddcd13efada5622d8f5ee.tar.bz2
gentoo-2-6191d4858518b0058bcddcd13efada5622d8f5ee.zip
bump: add py3 support, update deps, add IUSE doc, doc build and install, update test phase
(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/django-debug-toolbar')
-rw-r--r--dev-python/django-debug-toolbar/ChangeLog11
-rw-r--r--dev-python/django-debug-toolbar/django-debug-toolbar-0.10.0.ebuild56
2 files changed, 65 insertions, 2 deletions
diff --git a/dev-python/django-debug-toolbar/ChangeLog b/dev-python/django-debug-toolbar/ChangeLog
index ebf13364673e..47d200223ee6 100644
--- a/dev-python/django-debug-toolbar/ChangeLog
+++ b/dev-python/django-debug-toolbar/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-python/django-debug-toolbar
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/django-debug-toolbar/ChangeLog,v 1.6 2013/05/31 03:22:29 floppym Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/django-debug-toolbar/ChangeLog,v 1.7 2014/01/23 07:52:16 idella4 Exp $
+
+*django-debug-toolbar-0.10.0 (23 Jan 2014)
+
+ 23 Jan 2014; Ian Delaney <idella4@gentoo.org>
+ +django-debug-toolbar-0.10.0.ebuild:
+ bump: add py3 support, update deps, add IUSE doc, doc build and install,
+ update test phase
31 May 2013; Mike Gilbert <floppym@gentoo.org>
django-debug-toolbar-0.9.4-r1.ebuild:
diff --git a/dev-python/django-debug-toolbar/django-debug-toolbar-0.10.0.ebuild b/dev-python/django-debug-toolbar/django-debug-toolbar-0.10.0.ebuild
new file mode 100644
index 000000000000..3159bb6135db
--- /dev/null
+++ b/dev-python/django-debug-toolbar/django-debug-toolbar-0.10.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2014 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.10.0.ebuild,v 1.1 2014/01/23 07:52:16 idella4 Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
+
+inherit distutils-r1
+
+DESCRIPTION="A configurable set of panels that display debug information"
+HOMEPAGE="http://pypi.python.org/pypi/django-debug-toolbar/
+ https://github.com/django-debug-toolbar/django-debug-toolbar/"
+SRC_URI="https://github.com/django-debug-toolbar/django-debug-toolbar/archive/${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+LICENSE="MIT"
+SLOT="0"
+DISTUTILS_IN_SOURCE_BUILD=1
+
+RDEPEND=">=dev-python/django-1.4.2[${PYTHON_USEDEP}]
+ <dev-python/django-1.6[${PYTHON_USEDEP}]
+ >=dev-python/python-sqlparse-0.1.10[$(python_gen_usedep python2_7 'python3*')]"
+
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_prepare_all() {
+ sed -e 's:intersphinx_mapping:_&:' -i docs/conf.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ # python-sqlparse-0.1.10 doesn't support py2_6
+ if [[ "${EPYTHON}" != "python2.6" ]]; then
+ "${PYTHON}" runtests.py || die "Tests failed with ${EPYTHON}"
+ fi
+}
+
+python_install() {
+ distutils-r1_python_install
+ #rm all OSX fork files, Bug #450880
+ pushd "${ED}" > /dev/null
+ rm -f $(find . -name "._*")
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+distutils-r1_python_install_all
+}