You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/django-auth-ldap/django-auth-ldap-1.1.4-r1.e...

44 lines
1.2 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/django-auth-ldap/django-auth-ldap-1.1.4-r1.ebuild,v 1.2 2013/05/31 02:43:35 floppym Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
inherit distutils-r1 vcs-snapshot
DESCRIPTION="Django LDAP authentication backend"
HOMEPAGE="http://pypi.python.org/pypi/django-auth-ldap http://bitbucket.org/psagers/django-auth-ldap/"
SRC_URI="https://bitbucket.org/psagers/django-auth-ldap/get/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
LICENSE="BSD"
SLOT="0"
PYTHON_MODNAME="django_auth_ldap"
RDEPEND=">=dev-python/django-1.3.2[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/python-ldap[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
PATCHES=( "${FILESDIR}"/docs.patch )
python_compile_all() {
use doc && emake -C docs html
}
python_test() {
pushd test > /dev/null || die
set -- django-admin.py test django_auth_ldap --settings=test.settings
echo "$@"
"$@" || die "Tests failed with ${EPYTHON}"
popd > /dev/null || die
}
python_install_all() {
use doc && local HTML_DOCS=( docs/build/html/. )
distutils-r1_python_install_all
}