summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Chatzimichos <tampakrap@gentoo.org>2012-05-16 13:32:04 +0000
committerTheo Chatzimichos <tampakrap@gentoo.org>2012-05-16 13:32:04 +0000
commitb280c4db1667ad56ace50dd7a269540f60b1f4c3 (patch)
tree6a50e992ba8d5addd7586533af63d654fe34a12b /dev-python/django-appconf
parentDepend on virtual/ffmpeg as i compiled all the versions with current stable l... (diff)
downloadgentoo-2-b280c4db1667ad56ace50dd7a269540f60b1f4c3.tar.gz
gentoo-2-b280c4db1667ad56ace50dd7a269540f60b1f4c3.tar.bz2
gentoo-2-b280c4db1667ad56ace50dd7a269540f60b1f4c3.zip
src_prepare removed and instead uses ' -m' for importing modules, src_test adjusted accordingly, PYTHON_DEPEND->2:2.6, changes done by idella4
(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/django-appconf')
-rw-r--r--dev-python/django-appconf/ChangeLog7
-rw-r--r--dev-python/django-appconf/django-appconf-0.5.ebuild24
2 files changed, 15 insertions, 16 deletions
diff --git a/dev-python/django-appconf/ChangeLog b/dev-python/django-appconf/ChangeLog
index 39f6dec794be..ae428f966cd0 100644
--- a/dev-python/django-appconf/ChangeLog
+++ b/dev-python/django-appconf/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/django-appconf
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/django-appconf/ChangeLog,v 1.1 2012/04/25 12:25:31 tampakrap Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/django-appconf/ChangeLog,v 1.2 2012/05/16 13:32:04 tampakrap Exp $
+
+ 16 May 2012; Theo Chatzimichos <tampakrap@gentoo.org>
+ django-appconf-0.5.ebuild:
+ src_prepare removed and instead uses ' -m' for importing modules, src_test
+ adjusted accordingly, PYTHON_DEPEND->2:2.6, changes done by idella4
*django-appconf-0.5 (25 Apr 2012)
diff --git a/dev-python/django-appconf/django-appconf-0.5.ebuild b/dev-python/django-appconf/django-appconf-0.5.ebuild
index 3f852e0d1906..ff6eb00cdb84 100644
--- a/dev-python/django-appconf/django-appconf-0.5.ebuild
+++ b/dev-python/django-appconf/django-appconf-0.5.ebuild
@@ -1,16 +1,16 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/django-appconf/django-appconf-0.5.ebuild,v 1.1 2012/04/25 12:25:31 tampakrap Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/django-appconf/django-appconf-0.5.ebuild,v 1.2 2012/05/16 13:32:04 tampakrap Exp $
EAPI=4
-PYTHON_DEPEND="2"
+PYTHON_DEPEND="2:2.6"
SUPPORT_PYTHON_ABIS=1
-RESTRICT_PYTHON_ABIS="3.*"
+RESTRICT_PYTHON_ABIS="2.5 3.*"
inherit distutils
DESCRIPTION="A helper class for handling configuration defaults of packaged apps gracefully"
-HOMEPAGE="http://pypi.python.org/pypi/django-appconf http://django-appconf.readthedocs.org//"
+HOMEPAGE="http://pypi.python.org/pypi/django-appconf http://django-appconf.readthedocs.org/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
@@ -20,17 +20,11 @@ SLOT="0"
PYTHON_MODNAME="appconf"
-RDEPEND=""
-DEPEND="${RDEPEND} >=dev-python/django-1.1.4
+RDEPEND=">=dev-python/django-1.1.4"
+DEPEND="${RDEPEND}
dev-python/setuptools
doc? ( dev-python/sphinx )"
-src_prepare() {
- sed -e 's:from .models:from models:' -i appconf/tests/tests.py || die
- sed -e 's:\[-2\]:\[-1\]:' -i appconf/base.py || die
- distutils_src_prepare
-}
-
src_compile() {
if use doc; then
emake -C docs pickle htmlhelp
@@ -41,9 +35,9 @@ src_compile() {
src_test() {
export DJANGO_SETTINGS_MODULE="django.conf"
testing() {
- PYTHONPATH=. "$(PYTHON)" appconf/tests/tests.py
- einfo "tests completed successfully for python"$(python_get_version)
- einfo ""
+ pushd build-${PYTHON_ABI}/lib > /dev/null
+ "$(PYTHON)" -m appconf.tests.tests
+ popd > /dev/null
}
python_execute_function testing