From b7fe7c92d53df65957f9d25a4e78ecb82430ec8a Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Tue, 16 Jul 2013 04:20:58 +0000 Subject: Fix version number; 0.2.0 has never been released and setup.py says 0.1.0. (Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4) --- dev-python/django-ldapdb/ChangeLog | 8 ++- .../django-ldapdb-0.1.0_p20130712.ebuild | 67 ++++++++++++++++++++++ .../django-ldapdb-0.2.0_p20130712.ebuild | 67 ---------------------- 3 files changed, 74 insertions(+), 68 deletions(-) create mode 100644 dev-python/django-ldapdb/django-ldapdb-0.1.0_p20130712.ebuild delete mode 100644 dev-python/django-ldapdb/django-ldapdb-0.2.0_p20130712.ebuild (limited to 'dev-python/django-ldapdb') diff --git a/dev-python/django-ldapdb/ChangeLog b/dev-python/django-ldapdb/ChangeLog index c6d28b0b4eba..073306a455bb 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.7 2013/07/13 10:51:07 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/django-ldapdb/ChangeLog,v 1.8 2013/07/16 04:20:58 floppym Exp $ + +*django-ldapdb-0.1.0_p20130712 (16 Jul 2013) + + 16 Jul 2013; Mike Gilbert + +django-ldapdb-0.1.0_p20130712.ebuild, -django-ldapdb-0.2.0_p20130712.ebuild: + Fix version number; 0.2.0 has never been released and setup.py says 0.1.0. 13 Jul 2013; Ian Delaney django-ldapdb-0.2.0_p20130712.ebuild: diff --git a/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20130712.ebuild b/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20130712.ebuild new file mode 100644 index 000000000000..c3432f721bed --- /dev/null +++ b/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20130712.ebuild @@ -0,0 +1,67 @@ +# 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_p20130712.ebuild,v 1.1 2013/07/16 04:20:58 floppym 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/0.1.0/0.2.0}.tar.gz -> ${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}] )" + +python_prepare_all() { + # Disable tests requiring connecting to ldap server, + # until 'someone' figures how to set one in localhost + sed -e 's:test_update:_&:' -e 's:test_get:_&:' -e 's:test_scope:_&:' \ + -e 's:test_values_list:_&:' -e 's:test_values:_&:' -e 's:test_slice:_&:' \ + -e 's:test_order_by:_&:' -e 's:test_ldap_filter:_&:' -e 's:test_delete:_&:' \ + -e 's:test_filter:_&:' -e 's:test_bulk_delete:_&:' -e 's:test_count:_&:' \ + -e 's:test_index:_&:' -e 's:test_user_list:_&:' -e 's:test_user_detail:_&:' \ + -e 's:test_user_delete:_&:' -e 's:test_group_list:_&:' \-e 's:test_group_detail:_&:' \ + -e 's:test_group_search:_&:' -e 's:test_group_add:_&:' -e 's:test_group_delete:_&:' \ + -i examples/tests.py || die + + distutils-r1_python_prepare_all +} + +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 +} 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 deleted file mode 100644 index ffe1f3ac0ecf..000000000000 --- a/dev-python/django-ldapdb/django-ldapdb-0.2.0_p20130712.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# 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.2 2013/07/13 10:51: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}] )" - -python_prepare_all() { - # Disable tests requiring connecting to ldap server, - # until 'someone' figures how to set one in localhost - sed -e 's:test_update:_&:' -e 's:test_get:_&:' -e 's:test_scope:_&:' \ - -e 's:test_values_list:_&:' -e 's:test_values:_&:' -e 's:test_slice:_&:' \ - -e 's:test_order_by:_&:' -e 's:test_ldap_filter:_&:' -e 's:test_delete:_&:' \ - -e 's:test_filter:_&:' -e 's:test_bulk_delete:_&:' -e 's:test_count:_&:' \ - -e 's:test_index:_&:' -e 's:test_user_list:_&:' -e 's:test_user_detail:_&:' \ - -e 's:test_user_delete:_&:' -e 's:test_group_list:_&:' \-e 's:test_group_detail:_&:' \ - -e 's:test_group_search:_&:' -e 's:test_group_add:_&:' -e 's:test_group_delete:_&:' \ - -i examples/tests.py || die - - distutils-r1_python_prepare_all -} - -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 -} -- cgit v1.2.3-65-gdbad