diff options
author | 2008-09-04 06:21:44 +0000 | |
---|---|---|
committer | 2008-09-04 06:21:44 +0000 | |
commit | 4365555d71817addeb51a85b93120e5d9d9c03a0 (patch) | |
tree | 02b5264d46a97cc4a60e078292673e9e87e550b6 /dev-python/django | |
parent | change dependency from virtual/tetex to virtual/latex-base (diff) | |
download | gentoo-2-4365555d71817addeb51a85b93120e5d9d9c03a0.tar.gz gentoo-2-4365555d71817addeb51a85b93120e5d9d9c03a0.tar.bz2 gentoo-2-4365555d71817addeb51a85b93120e5d9d9c03a0.zip |
Version bump. Thanks Michael A. Smith <michael@smith-li.com> for the patch. Bug #236638
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 i686)
Diffstat (limited to 'dev-python/django')
-rw-r--r-- | dev-python/django/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/django/django-1.0.ebuild | 59 |
2 files changed, 66 insertions, 1 deletions
diff --git a/dev-python/django/ChangeLog b/dev-python/django/ChangeLog index 6752746007fa..ec2c206fe187 100644 --- a/dev-python/django/ChangeLog +++ b/dev-python/django/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/django # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/django/ChangeLog,v 1.24 2008/08/19 09:25:27 hawking Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/django/ChangeLog,v 1.25 2008/09/04 06:21:44 pythonhead Exp $ + +*django-1.0 (04 Sep 2008) + + 04 Sep 2008; Rob Cakebread <pythonhead@gentoo.org> +django-1.0.ebuild: + Version bump. Thanks Michael A. Smith <michael@smith-li.com> for the + patch. Bug #236638 19 Aug 2008; Ali Polatel <hawking@gentoo.org> django-0.96.2.ebuild: Use cp -pPR instead of cp -a, #235057, thanks to Michael A. Smith. diff --git a/dev-python/django/django-1.0.ebuild b/dev-python/django/django-1.0.ebuild new file mode 100644 index 000000000000..c2eee3f8118e --- /dev/null +++ b/dev-python/django/django-1.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-1.0.ebuild,v 1.1 2008/09/04 06:21:44 pythonhead Exp $ + +inherit bash-completion distutils eutils versionator + +DESCRIPTION="high-level python web framework" +HOMEPAGE="http://www.djangoproject.com/" +SRC_URI="http://media.djangoproject.com/releases/${PV}/Django-${PV}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86" +IUSE="examples mysql postgres sqlite3 test" + +RDEPEND="dev-python/imaging + sqlite3? ( || ( + ( >=dev-python/pysqlite-2.0.3 <dev-lang/python-2.5 ) + >=dev-lang/python-2.5 ) ) + test? ( || ( + ( >=dev-python/pysqlite-2.0.3 <dev-lang/python-2.5 ) + >=dev-lang/python-2.5 ) ) + postgres? ( dev-python/psycopg ) + mysql? ( >=dev-python/mysql-python-1.2.1_p2 )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${P/#d/D}" + +DOCS="docs/* AUTHORS" + + +src_test() { + #Test fails, reported upstream http://code.djangoproject.com/ticket/8865 + echo "tests='''pass'''" > tests/regressiontests/forms/fields.py + cat >> tests/settings.py << __EOF__ +DATABASE_ENGINE='sqlite3' +ROOT_URLCONF='tests/urls.py' +SITE_ID=1 +__EOF__ + PYTHONPATH="." ${python} tests/runtests.py --settings=settings -v1 || die "tests failed" +} + +src_install() { + #TODO: Use sphinx to generate docs when sphinx is keyworded for + #all arches django is + distutils_python_version + + site_pkgs="/usr/$(get_libdir)/python${PYVER}/site-packages/" + export PYTHONPATH="${PYTHONPATH}:${D}/${site_pkgs}" + dodir ${site_pkgs} + + distutils_src_install + + dobashcompletion extras/django_bash_completion + + if use examples ; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} |