summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/python-ldap/python-ldap-2.0.0_pre13.ebuild')
-rw-r--r--dev-python/python-ldap/python-ldap-2.0.0_pre13.ebuild18
1 files changed, 13 insertions, 5 deletions
diff --git a/dev-python/python-ldap/python-ldap-2.0.0_pre13.ebuild b/dev-python/python-ldap/python-ldap-2.0.0_pre13.ebuild
index 8e0dca74569f..8cfb862f1ee8 100644
--- a/dev-python/python-ldap/python-ldap-2.0.0_pre13.ebuild
+++ b/dev-python/python-ldap/python-ldap-2.0.0_pre13.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/python-ldap-2.0.0_pre13.ebuild,v 1.3 2003/09/06 23:32:28 msterret Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/python-ldap-2.0.0_pre13.ebuild,v 1.4 2003/11/13 11:26:46 liquidx Exp $
inherit distutils
@@ -17,7 +17,9 @@ DEPEND="virtual/python
SLOT="0"
LICENSE="public-domain" # NOTE: win32 section is under questionable license
-KEYWORDS="~x86 ~sparc ~alpha"
+KEYWORDS="x86 ~sparc ~alpha"
+
+PYTHON_MODNAME="ldap"
src_unpack() {
unpack ${A}
@@ -28,11 +30,17 @@ src_unpack() {
local mylibs
use sasl \
- && mylibs="${mylibs} sasl2 ldap_r" \
+ && mylibs="${mylibs} sasl2 ldap" \
|| mylibs="${mylibs} ldap"
+
+ # Fixes bug #25693
+ sed -e "s|<sasl.h>|<sasl/sasl.h>|" -i Modules/LDAPObject.c
+
use ssl && mylibs="${mylibs} ssl crypto"
- sed -e "s|^libs = .*|libs = lber resolv ${mylibs}|" -i setup.cfg \
- || die "error setting up libs in setup.cfg"
+ 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"
}