Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/python-ldap: python-ldap-2.4.10.ebuild ChangeLog
Date: Wed, 29 Aug 2012 06:21:45
Message-Id: 20120829062134.8F8D020AF4@flycatcher.gentoo.org
1 patrick 12/08/29 06:21:34
2
3 Modified: ChangeLog
4 Added: python-ldap-2.4.10.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.111 dev-python/python-ldap/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-ldap/ChangeLog?rev=1.111&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-ldap/ChangeLog?rev=1.111&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-ldap/ChangeLog?r1=1.110&r2=1.111
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/python-ldap/ChangeLog,v
20 retrieving revision 1.110
21 retrieving revision 1.111
22 diff -u -r1.110 -r1.111
23 --- ChangeLog 17 May 2012 19:15:19 -0000 1.110
24 +++ ChangeLog 29 Aug 2012 06:21:34 -0000 1.111
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/python-ldap
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/ChangeLog,v 1.110 2012/05/17 19:15:19 xarthisius Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/ChangeLog,v 1.111 2012/08/29 06:21:34 patrick Exp $
30 +
31 +*python-ldap-2.4.10 (29 Aug 2012)
32 +
33 + 29 Aug 2012; Patrick Lauer <patrick@g.o> +python-ldap-2.4.10.ebuild:
34 + Bump
35
36 17 May 2012; Kacper Kowalik <xarthisius@g.o> python-ldap-2.3.9.ebuild:
37 Mirror docs for 2.3.9 (built by me)
38
39
40
41 1.1 dev-python/python-ldap/python-ldap-2.4.10.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-ldap/python-ldap-2.4.10.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-ldap/python-ldap-2.4.10.ebuild?rev=1.1&content-type=text/plain
45
46 Index: python-ldap-2.4.10.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/python-ldap-2.4.10.ebuild,v 1.1 2012/08/29 06:21:34 patrick Exp $
51
52 EAPI=4
53
54 SUPPORT_PYTHON_ABIS="1"
55 RESTRICT_PYTHON_ABIS="3.* *-jython"
56
57 inherit distutils multilib
58
59 DESCRIPTION="Various LDAP-related Python modules"
60 HOMEPAGE="http://python-ldap.sourceforge.net/ http://pypi.python.org/pypi/python-ldap"
61 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
62
63 LICENSE="PSF-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-solaris"
66 IUSE="doc examples sasl ssl"
67
68 # If you need support for openldap-2.3.x, please use python-ldap-2.3.9.
69 # python team: Please do not remove python-ldap-2.3.9 from the tree.
70 RDEPEND=">=net-nds/openldap-2.4
71 dev-python/pyasn1
72 sasl? ( dev-libs/cyrus-sasl )"
73 DEPEND="${RDEPEND}
74 dev-python/setuptools
75 doc? ( dev-python/sphinx )"
76
77 DOCS="CHANGES README"
78 PYTHON_MODNAME="dsml.py ldapurl.py ldif.py ldap"
79
80 src_prepare() {
81 local rpath=
82 # sloppy logic, maybe better check if compiler links with GNU-ld
83 [[ ${CHOST} != *-darwin* ]] && rpath="-Wl,-rpath=${EPREFIX}/usr/$(get_libdir)/sasl2"
84 # Note: we can't add /usr/lib and /usr/lib/sasl2 to library_dirs due to a bug in py2.4
85 sed -e "s:^library_dirs =.*:library_dirs =:" \
86 -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \
87 -e "s:\(extra_compile_args =\).*:\1\nextra_link_args = ${rpath}:" \
88 -i setup.cfg || die "error fixing setup.cfg"
89
90 local mylibs="ldap"
91 if use sasl; then
92 use ssl && mylibs="ldap_r"
93 mylibs="${mylibs} sasl2"
94 else
95 sed -e 's/HAVE_SASL//g' -i setup.cfg || die
96 fi
97 use ssl && mylibs="${mylibs} ssl crypto"
98
99 sed -e "s:^libs = .*:libs = lber resolv ${mylibs}:" \
100 -e "s:^compile.*:compile = 0:" \
101 -e "s:^optimize.*:optimize = 0:" \
102 -i setup.cfg || die "error setting up libs in setup.cfg"
103 }
104
105 src_compile() {
106 distutils_src_compile
107 if use doc; then
108 pushd Doc &> /dev/null
109 PYTHONPATH="$(ls -d ../build-$(PYTHON -f --ABI)/lib*)" \
110 sphinx-build -b html -d _build/doctrees . _build/html
111 popd Doc &> /dev/null
112 fi
113 }
114
115 src_install() {
116 distutils_src_install
117
118 if use examples; then
119 insinto /usr/share/doc/${PF}
120 doins -r Demo
121 fi
122
123 if use doc; then
124 dohtml -r Doc/_build/html/
125 fi
126 }