1 |
commit: 5b18e44130bfb80a9f6fc4cad2af7c74bc6a5e9d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 5 22:12:08 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 5 23:19:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b18e441 |
7 |
|
8 |
dev-python/pyldap: Clean old up |
9 |
|
10 |
dev-python/pyldap/Manifest | 1 - |
11 |
dev-python/pyldap/pyldap-2.4.28.ebuild | 76 ---------------------------------- |
12 |
2 files changed, 77 deletions(-) |
13 |
|
14 |
diff --git a/dev-python/pyldap/Manifest b/dev-python/pyldap/Manifest |
15 |
index 1e63702d541..4cea7d11699 100644 |
16 |
--- a/dev-python/pyldap/Manifest |
17 |
+++ b/dev-python/pyldap/Manifest |
18 |
@@ -1,2 +1 @@ |
19 |
-DIST pyldap-2.4.28.tar.gz 130651 BLAKE2B 4ab33ad4406271577f71802cc8acf61054a91495a8be894f3e9bc6984f2a24a08f851b0cda857e6d371dcd6191ac441c18be250ee1535e07dcb65ccf7db08ff0 SHA512 d8bdf79c63d94289f2503fefe77b4e5c3edca6bf42a6fc039cffc4ebb9db57808c5f4fbf9265d3f33b672971ba3194c35b3b6034543c4f6f7ff80497ff050a7b |
20 |
DIST pyldap-2.4.37.tar.gz 303732 BLAKE2B a3b54b172701c2e52a9bd54745d442634b8df2f4aab134d37bf5dbc383498fbec876e12c1c703db6caeac0ce3b4bccd974b0680356e5996e327c8ac2ce52ac4c SHA512 da66669bf9eecebc8ba05ee313453b151a01147bc44c60da4936b80777ec3b69551f77be0e6f3c260dba771920d50fa6f54f1892eb0283761beed1ee8c6d83c2 |
21 |
|
22 |
diff --git a/dev-python/pyldap/pyldap-2.4.28.ebuild b/dev-python/pyldap/pyldap-2.4.28.ebuild |
23 |
deleted file mode 100644 |
24 |
index a8f7d202a33..00000000000 |
25 |
--- a/dev-python/pyldap/pyldap-2.4.28.ebuild |
26 |
+++ /dev/null |
27 |
@@ -1,76 +0,0 @@ |
28 |
-# Copyright 1999-2017 Gentoo Foundation |
29 |
-# Distributed under the terms of the GNU General Public License v2 |
30 |
- |
31 |
-EAPI=6 |
32 |
- |
33 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) |
34 |
- |
35 |
-inherit distutils-r1 multilib |
36 |
- |
37 |
-DESCRIPTION="Various LDAP-related Python modules" |
38 |
-HOMEPAGE="https://pypi.python.org/pypi/pyldap https://github.com/pyldap/pyldap/" |
39 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
40 |
- |
41 |
-LICENSE="PSF-2" |
42 |
-SLOT="0" |
43 |
-KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-solaris" |
44 |
-IUSE="doc examples sasl ssl" |
45 |
- |
46 |
-# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. |
47 |
-# python team: Please do not remove python-ldap-2.3.9 from the tree. |
48 |
-# OpenSSL is an optional runtime dep. |
49 |
-# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires |
50 |
-RDEPEND=" |
51 |
- >net-nds/openldap-2.4.11 |
52 |
- dev-python/pyasn1[${PYTHON_USEDEP}] |
53 |
- dev-python/pyasn1-modules[${PYTHON_USEDEP}] |
54 |
- sasl? ( >=dev-libs/cyrus-sasl-2.1 )" |
55 |
-DEPEND="${RDEPEND} |
56 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
57 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" |
58 |
-RDEPEND+=" !dev-python/python-ldap" |
59 |
- |
60 |
-python_prepare_all() { |
61 |
- sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ |
62 |
- -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ |
63 |
- -i setup.cfg || die "error fixing setup.cfg" |
64 |
- |
65 |
- local mylibs="ldap" |
66 |
- if use sasl; then |
67 |
- use ssl && mylibs="ldap_r" |
68 |
- mylibs="${mylibs} sasl2" |
69 |
- else |
70 |
- sed -e 's/HAVE_SASL//g' -i setup.cfg || die |
71 |
- fi |
72 |
- use ssl && mylibs="${mylibs} ssl crypto" |
73 |
- use elibc_glibc && mylibs="${mylibs} resolv" |
74 |
- |
75 |
- sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ |
76 |
- -i setup.cfg || die "error setting up libs in setup.cfg" |
77 |
- |
78 |
- # set test expected to fail to expectedFailure |
79 |
- sed -e "s:^ def test_bad_urls: @unittest.expectedFailure\n def test_bad_urls:" \ |
80 |
- -i Tests/t_ldapurl.py || die |
81 |
- |
82 |
- distutils-r1_python_prepare_all |
83 |
-} |
84 |
- |
85 |
-python_compile_all() { |
86 |
- use doc && emake -C Doc html |
87 |
-} |
88 |
- |
89 |
-python_test() { |
90 |
- # XXX: the tests supposedly can start local slapd |
91 |
- # but it requires some manual config, it seems. |
92 |
- |
93 |
- "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" |
94 |
-} |
95 |
- |
96 |
-python_install_all() { |
97 |
- use doc && local HTML_DOCS=( Doc/.build/html/. ) |
98 |
- distutils-r1_python_install_all |
99 |
- if use examples; then |
100 |
- dodoc -r Demo |
101 |
- docompress -x /usr/share/doc/${PF}/Demo |
102 |
- fi |
103 |
-} |