summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/python-ldap/ChangeLog8
-rw-r--r--dev-python/python-ldap/files/digest-python-ldap-2.36
-rw-r--r--dev-python/python-ldap/python-ldap-2.3.ebuild57
3 files changed, 70 insertions, 1 deletions
diff --git a/dev-python/python-ldap/ChangeLog b/dev-python/python-ldap/ChangeLog
index 1cc8b4e4d251..f72b6125b07b 100644
--- a/dev-python/python-ldap/ChangeLog
+++ b/dev-python/python-ldap/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/python-ldap
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/ChangeLog,v 1.49 2007/03/28 12:49:11 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/ChangeLog,v 1.50 2007/03/28 15:58:44 dev-zero Exp $
+
+*python-ldap-2.3 (28 Mar 2007)
+
+ 28 Mar 2007; Tiziano Müller <dev-zero@gentoo.org>
+ +python-ldap-2.3.ebuild:
+ Version bump (bug #172470, thanks to Ken Garland)
28 Mar 2007; Gustavo Zacarias <gustavoz@gentoo.org>
python-ldap-2.2.1.ebuild:
diff --git a/dev-python/python-ldap/files/digest-python-ldap-2.3 b/dev-python/python-ldap/files/digest-python-ldap-2.3
new file mode 100644
index 000000000000..cff9d1f30f45
--- /dev/null
+++ b/dev-python/python-ldap/files/digest-python-ldap-2.3
@@ -0,0 +1,6 @@
+MD5 5b788a9c88c4ba645a16226a6291f8df html-python-ldap-docs-2.0.3.tar.gz 25857
+RMD160 2dbbdfd1ac420aea441ca31e785efb33aad1c652 html-python-ldap-docs-2.0.3.tar.gz 25857
+SHA256 d39a4ae2f72b18e7f17f3c01d6d204b97c7c91521c918c0dd9155705b843ad66 html-python-ldap-docs-2.0.3.tar.gz 25857
+MD5 0ff25da2212237d780870354d868ffca python-ldap-2.3.tar.gz 74902
+RMD160 c6eb0ef9b93b48c0e6209f525bfada3377442ae9 python-ldap-2.3.tar.gz 74902
+SHA256 b3658638296224e71da3a9ac9fb6a02c37c0ff1e4f0b2f020c01c607c85aff0c python-ldap-2.3.tar.gz 74902
diff --git a/dev-python/python-ldap/python-ldap-2.3.ebuild b/dev-python/python-ldap/python-ldap-2.3.ebuild
new file mode 100644
index 000000000000..65c727bb0e2e
--- /dev/null
+++ b/dev-python/python-ldap/python-ldap-2.3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2007 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.3.ebuild,v 1.1 2007/03/28 15:58:44 dev-zero Exp $
+
+NEED_PYTHON=2.0
+
+inherit distutils multilib
+
+P_DOC="html-${PN}-docs-2.0.3"
+
+DESCRIPTION="Various LDAP-related Python modules"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ doc? ( mirror://sourceforge/${PN}/${P_DOC}.tar.gz )"
+HOMEPAGE="http://python-ldap.sourceforge.net/"
+SLOT="0"
+LICENSE="PYTHON"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc examples sasl ssl"
+
+DEPEND=">=net-nds/openldap-2.3
+ sasl? ( dev-libs/cyrus-sasl )"
+RDEPEND="${DEPEND}"
+
+# Installs some script-files directly in site-packages
+PYTHON_MODNAME="/"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Note: we can't add /usr/lib and /usr/lib/sasl2 to library_dirs due to a bug in py2.4
+ sed -e "s:^library_dirs =.*:library_dirs =:" \
+ -e "s:^include_dirs =.*:include_dirs = /usr/include /usr/include/sasl:" \
+ -e "s:\(extra_compile_args =\).*:\1\nextra_link_args = -Wl,-rpath=/usr/$(get_libdir) -Wl,-rpath=/usr/$(get_libdir)/sasl2:" \
+ -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"
+
+ 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-/}"/*
+ if use examples ; then
+ insinto /usr/share/doc/${PF}
+ doins -r Demo
+ fi
+}