summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/django-svn/Manifest14
-rw-r--r--dev-python/django-svn/django-svn-0.2.ebuild (renamed from dev-python/django-svn/django-svn-0.1.ebuild)35
-rw-r--r--dev-python/django-svn/files/digest-django-svn-0.2 (renamed from dev-python/django-svn/files/digest-django-svn-0.1)0
3 files changed, 35 insertions, 14 deletions
diff --git a/dev-python/django-svn/Manifest b/dev-python/django-svn/Manifest
index 8400522..8cd3615 100644
--- a/dev-python/django-svn/Manifest
+++ b/dev-python/django-svn/Manifest
@@ -1,7 +1,7 @@
-EBUILD django-svn-0.1.ebuild 1100 RMD160 8f23d7a9b599f94da812312006a27229ed31d3c5 SHA1 8aa8689f323c179394f160d3a4f25cfafd774363 SHA256 ae66d0333b291dab5b2f299b06b4b96994f3ea87148ec532cd1cf56d9497e694
-MD5 8c1a673ed186e42cc1378fe655356d4d django-svn-0.1.ebuild 1100
-RMD160 8f23d7a9b599f94da812312006a27229ed31d3c5 django-svn-0.1.ebuild 1100
-SHA256 ae66d0333b291dab5b2f299b06b4b96994f3ea87148ec532cd1cf56d9497e694 django-svn-0.1.ebuild 1100
-MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-django-svn-0.1 0
-RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-django-svn-0.1 0
-SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-django-svn-0.1 0
+EBUILD django-svn-0.2.ebuild 1612 RMD160 d22b4162b02ee30bb25efdb2555b8155a6f2638b SHA1 7480193b4ce1c2b5b2ed18e0fef5ea0d404af620 SHA256 54f4bd1bf02631d9a18e56d6017b9dcaf783ffce11220734a6e0a3f5647a8151
+MD5 4a22ee8be5c234c4b8ef87bf87881686 django-svn-0.2.ebuild 1612
+RMD160 d22b4162b02ee30bb25efdb2555b8155a6f2638b django-svn-0.2.ebuild 1612
+SHA256 54f4bd1bf02631d9a18e56d6017b9dcaf783ffce11220734a6e0a3f5647a8151 django-svn-0.2.ebuild 1612
+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-django-svn-0.2 0
+RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-django-svn-0.2 0
+SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-django-svn-0.2 0
diff --git a/dev-python/django-svn/django-svn-0.1.ebuild b/dev-python/django-svn/django-svn-0.2.ebuild
index 96d9375..ca8fd1f 100644
--- a/dev-python/django-svn/django-svn-0.1.ebuild
+++ b/dev-python/django-svn/django-svn-0.2.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-0.95.ebuild,v 1.2 2006/08/13 15:40:12 lucass Exp $
-inherit subversion distutils
+inherit subversion distutils eutils bash-completion
MY_P="${PN/d/D}-${PV}"
DESCRIPTION="high-level python web framework"
@@ -13,13 +13,17 @@ ESVN_REPO_URI="http://code.djangoproject.com/svn/django/trunk"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
-IUSE="sqlite postgres mysql"
+IUSE="sqlite postgres mysql examples test"
-DEPEND=">=dev-lang/python-2.3
- >=dev-python/setuptools-0.6_rc1"
+DEPEND=">=dev-python/setuptools-0.6_rc1
+ test? ( || (
+ ( >=dev-python/pysqlite-2.0.3 <dev-lang/python-2.5 )
+ >=dev-lang/python-2.5 ) )"
-RDEPEND=">=dev-lang/python-2.3
- sqlite? ( >=dev-python/pysqlite-2.0.3 )
+RDEPEND="${DEPEND}
+ sqlite? ( || (
+ ( >=dev-python/pysqlite-2.0.3 <dev-lang/python-2.5 )
+ >=dev-lang/python-2.5 ) )
postgres? ( <dev-python/psycopg-1.99 )
mysql? ( dev-python/mysql-python )
dev-python/imaging"
@@ -27,6 +31,11 @@ RDEPEND=">=dev-lang/python-2.3
S="${WORKDIR}/${MY_P}"
DOCS="docs/* AUTHORS INSTALL LICENSE"
+src_unpack() {
+ unpack ${A}; cd "${S}"
+ sed -i '/ez_setup/d' setup.py || die "sed failed"
+}
+
src_install()
{
distutils_python_version
@@ -39,5 +48,17 @@ src_install()
distutils_src_install
- cp -r examples "${D}/usr/share/doc/${PF}"
+ dobashcompletion extras/django_bash_completion
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}
+
+src_test() {
+ cat >> tests/settings.py << __EOF__
+DATABASE_ENGINE='sqlite3'
+__EOF__
+ PYTHONPATH="." ${python} tests/runtests.py --settings=settings -v1 || die "tests failed"
}
diff --git a/dev-python/django-svn/files/digest-django-svn-0.1 b/dev-python/django-svn/files/digest-django-svn-0.2
index e69de29..e69de29 100644
--- a/dev-python/django-svn/files/digest-django-svn-0.1
+++ b/dev-python/django-svn/files/digest-django-svn-0.2