Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/python-ldap: python-ldap-2.4.20.ebuild ChangeLog python-ldap-2.4.18.ebuild python-ldap-2.3.9.ebuild
Date: Thu, 30 Jul 2015 05:31:52
Message-Id: 20150730053141.B6F81112@oystercatcher.gentoo.org
1 idella4 15/07/30 05:31:41
2
3 Modified: ChangeLog
4 Added: python-ldap-2.4.20.ebuild
5 Removed: python-ldap-2.4.18.ebuild python-ldap-2.3.9.ebuild
6 Log:
7 bump, remove old
8
9 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
10
11 Revision Changes Path
12 1.151 dev-python/python-ldap/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-ldap/ChangeLog?rev=1.151&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-ldap/ChangeLog?rev=1.151&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-ldap/ChangeLog?r1=1.150&r2=1.151
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-python/python-ldap/ChangeLog,v
21 retrieving revision 1.150
22 retrieving revision 1.151
23 diff -u -r1.150 -r1.151
24 --- ChangeLog 17 May 2015 15:32:23 -0000 1.150
25 +++ ChangeLog 30 Jul 2015 05:31:41 -0000 1.151
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-python/python-ldap
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/ChangeLog,v 1.150 2015/05/17 15:32:23 mrueg Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/ChangeLog,v 1.151 2015/07/30 05:31:41 idella4 Exp $
31 +
32 +*python-ldap-2.4.20 (30 Jul 2015)
33 +
34 + 30 Jul 2015; Ian Delaney <idella4@g.o> +python-ldap-2.4.20.ebuild,
35 + -python-ldap-2.3.9.ebuild, -python-ldap-2.4.18.ebuild:
36 + bump, remove old
37
38 17 May 2015; Manuel RĂ¼ger <mrueg@g.o> -python-ldap-2.4.10-r1.ebuild,
39 -python-ldap-2.4.10.ebuild:
40
41
42
43 1.1 dev-python/python-ldap/python-ldap-2.4.20.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-ldap/python-ldap-2.4.20.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-ldap/python-ldap-2.4.20.ebuild?rev=1.1&content-type=text/plain
47
48 Index: python-ldap-2.4.20.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/python-ldap-2.4.20.ebuild,v 1.1 2015/07/30 05:31:41 idella4 Exp $
53
54 EAPI=5
55
56 # setup.py is written only for py2, which suits pypy
57 PYTHON_COMPAT=( python2_7 pypy )
58
59 inherit distutils-r1 multilib
60
61 DESCRIPTION="Various LDAP-related Python modules"
62 HOMEPAGE="http://www.python-ldap.org http://pypi.python.org/pypi/python-ldap"
63 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
64
65 LICENSE="PSF-2"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris"
68 IUSE="doc examples sasl ssl"
69
70 # If you need support for openldap-2.3.x, please use python-ldap-2.3.9.
71 # python team: Please do not remove python-ldap-2.3.9 from the tree.
72 # OpenSSL is an optional runtime dep.
73 # setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires
74 RDEPEND=">net-nds/openldap-2.4.11
75 dev-python/pyasn1[${PYTHON_USEDEP}]
76 dev-python/pyasn1-modules[${PYTHON_USEDEP}]
77 sasl? ( >=dev-libs/cyrus-sasl-2.1 )"
78 DEPEND="${RDEPEND}
79 dev-python/setuptools[${PYTHON_USEDEP}]
80 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
81
82 python_prepare_all() {
83 sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \
84 -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \
85 -i setup.cfg || die "error fixing setup.cfg"
86
87 local mylibs="ldap"
88 if use sasl; then
89 use ssl && mylibs="ldap_r"
90 mylibs="${mylibs} sasl2"
91 else
92 sed -e 's/HAVE_SASL//g' -i setup.cfg || die
93 fi
94 use ssl && mylibs="${mylibs} ssl crypto"
95 use elibc_glibc && mylibs="${mylibs} resolv"
96
97 sed -e "s:^libs = .*:libs = lber ${mylibs}:" \
98 -i setup.cfg || die "error setting up libs in setup.cfg"
99
100 # set test expected to fail to expectedFailure
101 sed -e "s:^ def test_bad_urls: @unittest.expectedFailure\n def test_bad_urls:" \
102 -i Tests/t_ldapurl.py || die
103
104 distutils-r1_python_prepare_all
105 }
106
107 python_compile_all() {
108 use doc && emake -C Doc html
109 }
110
111 python_test() {
112 # XXX: the tests supposedly can start local slapd
113 # but it requires some manual config, it seems.
114
115 "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}"
116 }
117
118 python_install_all() {
119 use examples && local EXAMPLES=( Demo/. )
120 use doc && local HTML_DOCS=( Doc/.build/html/. )
121
122 distutils-r1_python_install_all
123 }