summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2008-06-07 12:51:16 +0000
committerTiziano Müller <dev-zero@gentoo.org>2008-06-07 12:51:16 +0000
commit9fe930faa48e2d065de13eaa7ad5e8eaae5440ea (patch)
treef4e23604fc3daf7f3ab417d4a0f8532164380bae /dev-python
parentkeyword ~x86-fbsd (diff)
downloadgentoo-2-9fe930faa48e2d065de13eaa7ad5e8eaae5440ea.tar.gz
gentoo-2-9fe930faa48e2d065de13eaa7ad5e8eaae5440ea.tar.bz2
gentoo-2-9fe930faa48e2d065de13eaa7ad5e8eaae5440ea.zip
Added p.masked Live SVN ebuild
(Portage version: 2.1.5.4)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/django/ChangeLog7
-rw-r--r--dev-python/django/django-9999.ebuild76
2 files changed, 82 insertions, 1 deletions
diff --git a/dev-python/django/ChangeLog b/dev-python/django/ChangeLog
index 59b56d80b4bd..523efb92405a 100644
--- a/dev-python/django/ChangeLog
+++ b/dev-python/django/ChangeLog
@@ -1,6 +1,11 @@
# 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.22 2008/05/26 18:15:28 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/django/ChangeLog,v 1.23 2008/06/07 12:51:16 dev-zero Exp $
+
+*django-9999 (07 Jun 2008)
+
+ 07 Jun 2008; Tiziano Müller <dev-zero@gentoo.org> +django-9999.ebuild:
+ Added p.masked Live SVN ebuild
*django-0.96.2 (26 May 2008)
diff --git a/dev-python/django/django-9999.ebuild b/dev-python/django/django-9999.ebuild
new file mode 100644
index 000000000000..0c8c92edac7b
--- /dev/null
+++ b/dev-python/django/django-9999.ebuild
@@ -0,0 +1,76 @@
+# 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-9999.ebuild,v 1.1 2008/06/07 12:51:16 dev-zero Exp $
+
+ESVN_REPO_URI="http://code.djangoproject.com/svn/django/trunk/"
+
+inherit bash-completion distutils eutils versionator subversion
+
+DESCRIPTION="high-level python web framework"
+HOMEPAGE="http://www.djangoproject.com/"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="doc examples mysql postgres sqlite test"
+
+RDEPEND="dev-python/imaging
+ sqlite? ( || (
+ ( >=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}
+ doc? ( dev-python/sphinx )"
+
+S="${WORKDIR}"
+
+src_test() {
+ cat >> tests/settings.py << __EOF__
+DATABASE_ENGINE='sqlite3'
+ROOT_URLCONF='tests/urls.py'
+SITE_ID=1
+__EOF__
+
+ elog "Please note: You're using a live SVN ebuild."
+ elog "We therefore won't fix any failures in the tests."
+ elog "If you think it's django's fault report it to upstream."
+ elog "Otherwise either disable the tests or use a stable version."
+ PYTHONPATH="." ${python} tests/runtests.py --settings=settings -v1 || die "tests failed"
+}
+
+src_compile() {
+ distutils_src_compile
+
+ if use doc ; then
+ cd docs
+ emake html || die "generating html docs failed"
+ fi
+}
+
+src_install() {
+ distutils_python_version
+
+ site_pkgs="/usr/$(get_libdir)/python${PYVER}/site-packages/"
+ export PYTHONPATH="${PYTHONPATH}:${D}/${site_pkgs}"
+ dodir ${site_pkgs}
+
+ DOCS="docs/*.txt AUTHORS"
+ distutils_src_install
+
+ dobin django/bin/{compile-messages,daily_cleanup,make-messages,unique-messages,profiling/gather_profile_stats}.py
+ doman docs/man/*
+
+ dobashcompletion extras/django_bash_completion
+
+ if use examples ; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+
+ if use doc ; then
+ dohtml -A txt -r docs/_build/html/*
+ fi
+}