aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <della5@iinet.com.au>2012-04-30 20:50:22 +0800
committerIan Delaney <della5@iinet.com.au>2012-04-30 20:50:22 +0800
commitec4ce1e2aa03a07126a47f40b192f9de99585d93 (patch)
tree84a14f09e2868dbca0e3ae9d1e932ce692acf191
parent[dev-python/django-debug-toolbar' Re-added, src_test improved (diff)
downloadimprovise-ec4ce1e2aa03a07126a47f40b192f9de99585d93.tar.gz
improvise-ec4ce1e2aa03a07126a47f40b192f9de99585d93.tar.bz2
improvise-ec4ce1e2aa03a07126a47f40b192f9de99585d93.zip
[dev-python/django-ldapdb] Re-added; test phase updated/fixed
(Portage version: 2.1.10.56/git/Linux x86_64, unsigned Manifest commit)
-rw-r--r--dev-python/django-ldapdb/Manifest1
-rw-r--r--dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild51
-rw-r--r--dev-python/django-ldapdb/metadata.xml14
3 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/django-ldapdb/Manifest b/dev-python/django-ldapdb/Manifest
new file mode 100644
index 0000000..d5aebf1
--- /dev/null
+++ b/dev-python/django-ldapdb/Manifest
@@ -0,0 +1 @@
+DIST django-ldapdb-0.1.0_p20120424.tar.bz2 12627 SHA256 ff98287da2b564cea7d02b8757b60b1f2366da09a7d5abf736098d249795047a SHA512 48b0319812e1731971d1d0ac0991e049b7e614a3c1d7e86fcbb47707b0c0317bd6a6f8ff414850d57175fb1c8c095521bfd20feaf4c5aa38b0af395471f3e92d WHIRLPOOL ddb31df8f5771e19e5e0a43ed8839eeafac7ac24f012ab7a92d9b30a89556d525ad2d79c2a428308a9ce616e4057dde15257acec32eba0ad20d4cb0ae5f49503
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
new file mode 100644
index 0000000..8290c84
--- /dev/null
+++ b/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2012 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.2 2012/04/25 18:47:09 tampakrap Exp $
+
+EAPI=4
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS=1
+RESTRICT_PYTHON_ABIS="3.*"
+inherit distutils
+
+DESCRIPTION="an LDAP database backend for Django"
+HOMEPAGE="http://opensource.bolloretelecom.eu/projects/django-ldapdb/"
+SRC_URI="http://dev.gentoo.org/~tampakrap/tarballs/${P}.tar.bz2"
+
+KEYWORDS="~amd64 ~x86"
+IUSE="examples test"
+LICENSE="MIT"
+SLOT="0"
+PYTHON_MODNAME="ldapdb"
+S="${WORKDIR}/${PN}"
+
+REDEPEND=""
+DEPEND="${REDEPEND}
+ dev-python/setuptools
+ dev-python/django
+ test? ( dev-python/python-ldap )"
+
+src_test() {
+ export DJANGO_SETTINGS_MODULE="django.conf"
+ # Exclude examples from test phase
+ mv examples/tests.py examples/tests
+
+ testing() {
+ "$(PYTHON)" manage.py test
+ }
+
+ python_execute_function testing
+ mv examples/tests examples/tests.py
+}
+
+src_install() {
+ distutils_src_install
+ samples() {
+ insinto $(python_get_libdir)/site-packages/${PYTHON_MODNAME}/
+ doins -r examples/
+ }
+
+ if use examples; then
+ python_execute_function samples
+ fi
+}
diff --git a/dev-python/django-ldapdb/metadata.xml b/dev-python/django-ldapdb/metadata.xml
new file mode 100644
index 0000000..472ba46
--- /dev/null
+++ b/dev-python/django-ldapdb/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>johneed@hotmail.com</email>
+ <name>Ian Delaney</name>
+ </maintainer>
+ <maintainer>
+ <email>tampakrap@gentoo.org</email>
+ <name>Theo Chatzimichos</name>
+ </maintainer>
+ <herd>python</herd>
+</pkgmetadata>
+