summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2013-07-12 16:16:07 +0000
committerIan Delaney <idella4@gentoo.org>2013-07-12 16:16:07 +0000
commit3bcfdd6dd27ebc948ec361af75ed04bca3429a3e (patch)
tree9576217071a3adb8f0f1f7e09bd9280aba61b516 /dev-python/django-ldapdb
parentVersion bump. With unlimited file sizes during edition! (diff)
downloadgentoo-2-3bcfdd6dd27ebc948ec361af75ed04bca3429a3e.tar.gz
gentoo-2-3bcfdd6dd27ebc948ec361af75ed04bca3429a3e.tar.bz2
gentoo-2-3bcfdd6dd27ebc948ec361af75ed04bca3429a3e.zip
Making a manufactured bump by way of a fresh snapshot
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/django-ldapdb')
-rw-r--r--dev-python/django-ldapdb/ChangeLog8
-rw-r--r--dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild8
-rw-r--r--dev-python/django-ldapdb/django-ldapdb-0.2.0_p20130712.ebuild53
3 files changed, 65 insertions, 4 deletions
diff --git a/dev-python/django-ldapdb/ChangeLog b/dev-python/django-ldapdb/ChangeLog
index 86c2746fd4dd..7c7b852298cc 100644
--- a/dev-python/django-ldapdb/ChangeLog
+++ b/dev-python/django-ldapdb/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/django-ldapdb
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/django-ldapdb/ChangeLog,v 1.5 2013/07/12 14:56:09 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/django-ldapdb/ChangeLog,v 1.6 2013/07/12 16:16:07 idella4 Exp $
+
+*django-ldapdb-0.2.0_p20130712 (12 Jul 2013)
+
+ 12 Jul 2013; Ian Delaney <idella4@gentoo.org>
+ +django-ldapdb-0.2.0_p20130712.ebuild, django-ldapdb-0.1.0_p20120424.ebuild:
+ Making a manufactured bump by way of a fresh snapshot
*django-ldapdb-0.1.0_p20120424-r1 (12 Jul 2013)
diff --git a/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild b/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild
index fdaf53ddd0e5..4c2dae83706c 100644
--- a/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild
+++ b/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild,v 1.3 2012/05/20 11:54:44 tampakrap Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild,v 1.4 2013/07/12 16:16:07 idella4 Exp $
EAPI=4
PYTHON_DEPEND="2"
@@ -17,18 +17,20 @@ IUSE="examples test"
LICENSE="MIT"
SLOT="0"
PYTHON_MODNAME="ldapdb"
-S="${WORKDIR}/${PN}"
RDEPEND="dev-python/django"
DEPEND="${RDEPEND}
dev-python/setuptools
test? ( dev-python/python-ldap )"
+S="${WORKDIR}"/${PN}
+
src_test() {
# Exclude examples from test phase
mv examples/tests.py examples/tests
testing() {
+ export DJANGO_SETTINGS_MODULE="django.conf"
"$(PYTHON)" manage.py test
}
diff --git a/dev-python/django-ldapdb/django-ldapdb-0.2.0_p20130712.ebuild b/dev-python/django-ldapdb/django-ldapdb-0.2.0_p20130712.ebuild
new file mode 100644
index 000000000000..9cfbeacc6a17
--- /dev/null
+++ b/dev-python/django-ldapdb/django-ldapdb-0.2.0_p20130712.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/django-ldapdb/django-ldapdb-0.2.0_p20130712.ebuild,v 1.1 2013/07/12 16:16:07 idella4 Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_6,2_7} )
+
+inherit distutils-r1
+
+DESCRIPTION="an LDAP database backend for Django"
+HOMEPAGE="http://opensource.bolloretelecom.eu/projects/django-ldapdb/"
+SRC_URI="http://dev.gentoo.org/~idella4/tarballs/${P}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+IUSE="examples test"
+LICENSE="MIT"
+SLOT="0"
+PYTHON_MODNAME="ldapdb"
+S="${WORKDIR}"/${PN}
+DISTUTILS_IN_SOURCE_BUILD=1
+
+RDEPEND="dev-python/django[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/python-ldap[${PYTHON_USEDEP}] )"
+RESTRICT="test"
+
+python_compile() {
+ distutils-r1_python_compile
+ if use test; then
+ pushd "${BUILD_DIR}"/lib > /dev/null
+ django-admin.py startproject ldaptest || die "setting up test env failed"
+ cp "${S}"/settings.py ldaptest/ldaptest/ || die
+ sed -e "/^INSTALLED_APPS/a\ 'ldapdb'," \
+ -i ldaptest/ldaptest/settings.py || die "sed failed"
+ echo "SKIP_SOUTH_TESTS=False" >> ldaptest/ldaptest/settings.py
+ popd > /dev/null
+ fi
+}
+
+python_test() {
+ # https://github.com/jlaine/django-ldapdb/issues/2
+ pushd build/lib/ > /dev/null
+ ln -sf ../../examples . || die
+ PYTHONPATH=${PYTHONPATH}:${PYTHONPATH}/ldaptest
+ "${PYTHON}" ldaptest/manage.py test --settings=ldaptest.settings
+ popd > /dev/null
+}
+
+python_install_all() {
+ use examples && local EXAMPLES=( examples/. )
+ distutils-r1_python_install_all
+}