diff options
author | Carsten Lohrke <carlo@gentoo.org> | 2004-12-14 19:58:11 +0000 |
---|---|---|
committer | Carsten Lohrke <carlo@gentoo.org> | 2004-12-14 19:58:11 +0000 |
commit | 6f27eebf57ac0d34921337dd3cc8aa0773602c04 (patch) | |
tree | ac04db4784701cddba928a0caf39bc3700052d36 /dev-python/python-ldap/python-ldap-2.0.6.ebuild | |
parent | ~amd64 (Manifest recommit) (diff) | |
download | gentoo-2-6f27eebf57ac0d34921337dd3cc8aa0773602c04.tar.gz gentoo-2-6f27eebf57ac0d34921337dd3cc8aa0773602c04.tar.bz2 gentoo-2-6f27eebf57ac0d34921337dd3cc8aa0773602c04.zip |
stable on x86, version bump
Diffstat (limited to 'dev-python/python-ldap/python-ldap-2.0.6.ebuild')
-rw-r--r-- | dev-python/python-ldap/python-ldap-2.0.6.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/python-ldap/python-ldap-2.0.6.ebuild b/dev-python/python-ldap/python-ldap-2.0.6.ebuild new file mode 100644 index 000000000000..3ef9746d6bdf --- /dev/null +++ b/dev-python/python-ldap/python-ldap-2.0.6.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/python-ldap-2.0.6.ebuild,v 1.1 2004/12/14 19:58:11 carlo Exp $ + +inherit distutils + +#MY_P=${P/_pre/pre} +#S=${WORKDIR}/${MY_P} +P_DOC="html-python-ldap-docs-2.0.3" # no newer docs available + +DESCRIPTION="Various LDAP-related Python modules" +SRC_URI="mirror://sourceforge/python-ldap/${P}.tar.gz + doc? ( mirror://sourceforge/python-ldap/${P_DOC}.tar.gz )" +HOMEPAGE="http://python-ldap.sourceforge.net/" + +DEPEND="virtual/python + >=net-nds/openldap-2.0.11 + sasl? ( dev-libs/cyrus-sasl )" + +SLOT="0" +LICENSE="PYTHON" +KEYWORDS="~x86 ~sparc ~alpha ~ppc" +IUSE="doc sasl ssl" + +PYTHON_MODNAME="ldap" + +src_unpack() { + unpack ${A} + cd ${S} + cp setup.cfg setup.cfg.orig + sed -e "s:^library_dirs =.*:library_dirs = /usr/lib /usr/lib/sasl2:" \ + -e "s:^include_dirs =.*:include_dirs = /usr/include:" \ + -i setup.cfg || die "error fixing setup.cfg" + + local mylibs="ldap" + if use sasl ; then + use ssl && mylibs="ldap_r" + mylibs="${mylibs} sasl2" + fi + use ssl && mylibs="${mylibs} ssl crypto" + + # Fixes bug #25693 + sed -e "s|<sasl.h>|<sasl/sasl.h>|" -i Modules/LDAPObject.c + + sed -e "s:^libs = .*:libs = lber resolv ${mylibs}:" \ + -e "s:^compile.*:compile = 0:" \ + -e "s:^optimize.*:optimize = 0:" \ + -i setup.cfg || die "error setting up libs in setup.cfg" +} + +src_install() { + distutils_src_install + use doc && dohtml -r ${WORKDIR}/${P_DOC/html-/}/* +}
\ No newline at end of file |