[gentoo-commits] repo/gentoo:master commit in: dev-python/pyldap/, profiles/
commit: b09c4a892f6e12b39f31a832fbcb429112cebb2b Author: Michał Górny gentoo org> AuthorDate: Wed May 15 20:35:56 2019 + Commit: Michał Górny gentoo org> CommitDate: Wed May 15 20:41:23 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b09c4a89 dev-python/pyldap: Remove last-rited pkg Closes: https://bugs.gentoo.org/668066 Signed-off-by: Michał Górny gentoo.org> dev-python/pyldap/Manifest | 1 - dev-python/pyldap/metadata.xml | 12 -- dev-python/pyldap/pyldap-2.4.37.ebuild | 76 -- profiles/package.mask | 6 --- 4 files changed, 95 deletions(-) diff --git a/dev-python/pyldap/Manifest b/dev-python/pyldap/Manifest deleted file mode 100644 index 4cea7d11699..000 --- a/dev-python/pyldap/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pyldap-2.4.37.tar.gz 303732 BLAKE2B a3b54b172701c2e52a9bd54745d442634b8df2f4aab134d37bf5dbc383498fbec876e12c1c703db6caeac0ce3b4bccd974b0680356e5996e327c8ac2ce52ac4c SHA512 da9bf9eecebc8ba05ee313453b151a01147bc44c60da4936b80777ec3b69551f77be0e6f3c260dba771920d50fa6f54f1892eb0283761beed1ee8c6d83c2 diff --git a/dev-python/pyldap/metadata.xml b/dev-python/pyldap/metadata.xml deleted file mode 100644 index 618e58e65d8..000 --- a/dev-python/pyldap/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ - -http://www.gentoo.org/dtd/metadata.dtd;> - - - pyt...@gentoo.org - Python - - - python-ldap - pyldap/pyldap - - diff --git a/dev-python/pyldap/pyldap-2.4.37.ebuild b/dev-python/pyldap/pyldap-2.4.37.ebuild deleted file mode 100644 index 1fa47b9b59e..000 --- a/dev-python/pyldap/pyldap-2.4.37.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 python3_{5,6} pypy ) - -inherit distutils-r1 multilib - -DESCRIPTION="Various LDAP-related Python modules" -HOMEPAGE="https://pypi.org/project/pyldap/ https://github.com/pyldap/pyldap/; -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="PSF-2" -SLOT="0" -KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-solaris" -IUSE="doc examples sasl ssl" - -# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. -# python team: Please do not remove python-ldap-2.3.9 from the tree. -# OpenSSL is an optional runtime dep. -# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires -RDEPEND=" - >net-nds/openldap-2.4.11 - dev-python/pyasn1[${PYTHON_USEDEP}] - dev-python/pyasn1-modules[${PYTHON_USEDEP}] - sasl? ( >=dev-libs/cyrus-sasl-2.1 )" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" -RDEPEND+=" !dev-python/python-ldap" - -python_prepare_all() { - sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ - -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ - -i setup.cfg || die "error fixing setup.cfg" - - local mylibs="ldap" - if use sasl; then - use ssl && mylibs="ldap_r" - mylibs="${mylibs} sasl2" - else - sed -e 's/HAVE_SASL//g' -i setup.cfg || die - fi - use ssl && mylibs="${mylibs} ssl crypto" - use elibc_glibc && mylibs="${mylibs} resolv" - - sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ - -i setup.cfg || die "error setting up libs in setup.cfg" - - # set test expected to fail to expectedFailure - sed -e "s:^def test_bad_urls:@unittest.expectedFailure\ndef test_bad_urls:" \ - -i Tests/t_ldapurl.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C Doc html -} - -python_test() { - # XXX: the tests supposedly can start local slapd - # but it requires some manual config, it seems. - - "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - use doc && local HTML_DOCS=( Doc/.build/html/. ) - distutils-r1_python_install_all - if use examples; then - dodoc -r Demo - docompress -x /usr/share/doc/${PF}/Demo - fi -} diff --git a/profiles/package.mask b/profiles/package.mask index e462b32c1e0..c8b2db98182 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -498,12 +498,6 @@ dev-util/cyclo # Removal in 30 days. Bug #651446. dev-util/ -# Michał Górny (14 Apr 2019) -# Integrated into dev-python/python-ldap-3.0+, and declared a deprecated -# fork by upstream. No reverse dependencies left. -# Removal in 30 days. Bug #668066. -dev-python/pyldap - # Aaron Bauman (13 Apr 2019) # Unmaintained in Gentoo
[gentoo-commits] repo/gentoo:master commit in: dev-python/pyldap/
commit: 5b18e44130bfb80a9f6fc4cad2af7c74bc6a5e9d Author: Michał Górny gentoo org> AuthorDate: Fri Jan 5 22:12:08 2018 + Commit: Michał Górny gentoo org> CommitDate: Fri Jan 5 23:19:15 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b18e441 dev-python/pyldap: Clean old up dev-python/pyldap/Manifest | 1 - dev-python/pyldap/pyldap-2.4.28.ebuild | 76 -- 2 files changed, 77 deletions(-) diff --git a/dev-python/pyldap/Manifest b/dev-python/pyldap/Manifest index 1e63702d541..4cea7d11699 100644 --- a/dev-python/pyldap/Manifest +++ b/dev-python/pyldap/Manifest @@ -1,2 +1 @@ -DIST pyldap-2.4.28.tar.gz 130651 BLAKE2B 4ab33ad4406271577f71802cc8acf61054a91495a8be894f3e9bc6984f2a24a08f851b0cda857e6d371dcd6191ac441c18be250ee1535e07dcb65ccf7db08ff0 SHA512 d8bdf79c63d94289f2503fefe77b4e5c3edca6bf42a6fc039cffc4ebb9db57808c5f4fbf9265d3f33b672971ba3194c35b3b6034543c4f6f7ff80497ff050a7b DIST pyldap-2.4.37.tar.gz 303732 BLAKE2B a3b54b172701c2e52a9bd54745d442634b8df2f4aab134d37bf5dbc383498fbec876e12c1c703db6caeac0ce3b4bccd974b0680356e5996e327c8ac2ce52ac4c SHA512 da9bf9eecebc8ba05ee313453b151a01147bc44c60da4936b80777ec3b69551f77be0e6f3c260dba771920d50fa6f54f1892eb0283761beed1ee8c6d83c2 diff --git a/dev-python/pyldap/pyldap-2.4.28.ebuild b/dev-python/pyldap/pyldap-2.4.28.ebuild deleted file mode 100644 index a8f7d202a33..000 --- a/dev-python/pyldap/pyldap-2.4.28.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) - -inherit distutils-r1 multilib - -DESCRIPTION="Various LDAP-related Python modules" -HOMEPAGE="https://pypi.python.org/pypi/pyldap https://github.com/pyldap/pyldap/; -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="PSF-2" -SLOT="0" -KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-solaris" -IUSE="doc examples sasl ssl" - -# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. -# python team: Please do not remove python-ldap-2.3.9 from the tree. -# OpenSSL is an optional runtime dep. -# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires -RDEPEND=" - >net-nds/openldap-2.4.11 - dev-python/pyasn1[${PYTHON_USEDEP}] - dev-python/pyasn1-modules[${PYTHON_USEDEP}] - sasl? ( >=dev-libs/cyrus-sasl-2.1 )" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" -RDEPEND+=" !dev-python/python-ldap" - -python_prepare_all() { - sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ - -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ - -i setup.cfg || die "error fixing setup.cfg" - - local mylibs="ldap" - if use sasl; then - use ssl && mylibs="ldap_r" - mylibs="${mylibs} sasl2" - else - sed -e 's/HAVE_SASL//g' -i setup.cfg || die - fi - use ssl && mylibs="${mylibs} ssl crypto" - use elibc_glibc && mylibs="${mylibs} resolv" - - sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ - -i setup.cfg || die "error setting up libs in setup.cfg" - - # set test expected to fail to expectedFailure - sed -e "s:^def test_bad_urls:@unittest.expectedFailure\ndef test_bad_urls:" \ - -i Tests/t_ldapurl.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C Doc html -} - -python_test() { - # XXX: the tests supposedly can start local slapd - # but it requires some manual config, it seems. - - "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - use doc && local HTML_DOCS=( Doc/.build/html/. ) - distutils-r1_python_install_all - if use examples; then - dodoc -r Demo - docompress -x /usr/share/doc/${PF}/Demo - fi -}
[gentoo-commits] repo/gentoo:master commit in: dev-python/pyldap/
commit: 6ae590e54d7d5e9e5c63c407de0bf7b91e497463 Author: Matthew Thode gentoo org> AuthorDate: Sat Sep 30 00:50:59 2017 + Commit: Matt Thode gentoo org> CommitDate: Sat Sep 30 00:50:59 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ae590e5 dev-python/pyldap: 2.4.37 stable amd64 and x86 Package-Manager: Portage-2.3.8, Repoman-2.3.3 dev-python/pyldap/pyldap-2.4.37.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/pyldap/pyldap-2.4.37.ebuild b/dev-python/pyldap/pyldap-2.4.37.ebuild index 977643887b8..a8f7d202a33 100644 --- a/dev-python/pyldap/pyldap-2.4.37.ebuild +++ b/dev-python/pyldap/pyldap-2.4.37.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="PSF-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris" +KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-solaris" IUSE="doc examples sasl ssl" # If you need support for openldap-2.3.x, please use python-ldap-2.3.9.
[gentoo-commits] repo/gentoo:master commit in: dev-python/pyldap/
commit: c899804f6114b346e43566d419dfc2a831a5f0cc Author: Matthew Thode gentoo org> AuthorDate: Sun Aug 27 04:05:18 2017 + Commit: Matt Thode gentoo org> CommitDate: Sun Aug 27 04:25:26 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c899804f dev-python/pyldap: 2.4.37 bup Package-Manager: Portage-2.3.6, Repoman-2.3.3 dev-python/pyldap/Manifest | 1 + dev-python/pyldap/pyldap-2.4.37.ebuild | 76 ++ 2 files changed, 77 insertions(+) diff --git a/dev-python/pyldap/Manifest b/dev-python/pyldap/Manifest index ded048581d7..29c5b98e553 100644 --- a/dev-python/pyldap/Manifest +++ b/dev-python/pyldap/Manifest @@ -1 +1,2 @@ DIST pyldap-2.4.28.tar.gz 130651 SHA256 d38f31018f0c15925f50aec39f7255c15463f98797af53931e0e2a9ac21f6661 SHA512 d8bdf79c63d94289f2503fefe77b4e5c3edca6bf42a6fc039cffc4ebb9db57808c5f4fbf9265d3f33b672971ba3194c35b3b6034543c4f6f7ff80497ff050a7b WHIRLPOOL ff72c9d451e9d47872f78b4cc27cd51a3f5a156ea9a49a01ade35e1e52d74a92abf69301670fcc8be6eb3e32da69d4290dd4d590ae8971eec2cc1c77491d6bdb +DIST pyldap-2.4.37.tar.gz 303732 SHA256 ba402b013696d7cb39ed20b38ae8f8be0461f837d3a2818e67f3bdf0cc16987f SHA512 da9bf9eecebc8ba05ee313453b151a01147bc44c60da4936b80777ec3b69551f77be0e6f3c260dba771920d50fa6f54f1892eb0283761beed1ee8c6d83c2 WHIRLPOOL 23f2745836087874a3bd64835c0da2da8590028ca9a5d96b294ef00ecac00d4402300f2ccc6396606442dbae76ac164c84c4bfd39cfb3dcc6d5b9273b8e69ed1 diff --git a/dev-python/pyldap/pyldap-2.4.37.ebuild b/dev-python/pyldap/pyldap-2.4.37.ebuild new file mode 100644 index 000..977643887b8 --- /dev/null +++ b/dev-python/pyldap/pyldap-2.4.37.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 multilib + +DESCRIPTION="Various LDAP-related Python modules" +HOMEPAGE="https://pypi.python.org/pypi/pyldap https://github.com/pyldap/pyldap/; +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris" +IUSE="doc examples sasl ssl" + +# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. +# python team: Please do not remove python-ldap-2.3.9 from the tree. +# OpenSSL is an optional runtime dep. +# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires +RDEPEND=" + >net-nds/openldap-2.4.11 + dev-python/pyasn1[${PYTHON_USEDEP}] + dev-python/pyasn1-modules[${PYTHON_USEDEP}] + sasl? ( >=dev-libs/cyrus-sasl-2.1 )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" +RDEPEND+=" !dev-python/python-ldap" + +python_prepare_all() { + sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ + -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ + -i setup.cfg || die "error fixing setup.cfg" + + local mylibs="ldap" + if use sasl; then + use ssl && mylibs="ldap_r" + mylibs="${mylibs} sasl2" + else + sed -e 's/HAVE_SASL//g' -i setup.cfg || die + fi + use ssl && mylibs="${mylibs} ssl crypto" + use elibc_glibc && mylibs="${mylibs} resolv" + + sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ + -i setup.cfg || die "error setting up libs in setup.cfg" + + # set test expected to fail to expectedFailure + sed -e "s:^def test_bad_urls:@unittest.expectedFailure\ndef test_bad_urls:" \ + -i Tests/t_ldapurl.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C Doc html +} + +python_test() { + # XXX: the tests supposedly can start local slapd + # but it requires some manual config, it seems. + + "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( Doc/.build/html/. ) + distutils-r1_python_install_all + if use examples; then + dodoc -r Demo + docompress -x /usr/share/doc/${PF}/Demo + fi +}
[gentoo-commits] repo/gentoo:master commit in: dev-python/pyldap/
commit: cc61be582964252d30c272be493136391dbf9d9f Author: Mike Gilbert gentoo org> AuthorDate: Thu Jun 1 23:59:18 2017 + Commit: Mike Gilbert gentoo org> CommitDate: Thu Jun 1 23:59:54 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc61be58 dev-python/pyldap: fix examples install Bug: https://bugs.gentoo.org/620300 Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69 dev-python/pyldap/pyldap-2.4.28.ebuild | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev-python/pyldap/pyldap-2.4.28.ebuild b/dev-python/pyldap/pyldap-2.4.28.ebuild index 76895301647..a8f7d202a33 100644 --- a/dev-python/pyldap/pyldap-2.4.28.ebuild +++ b/dev-python/pyldap/pyldap-2.4.28.ebuild @@ -67,8 +67,10 @@ python_test() { } python_install_all() { - use examples && local EXAMPLES=( Demo/. ) use doc && local HTML_DOCS=( Doc/.build/html/. ) - distutils-r1_python_install_all + if use examples; then + dodoc -r Demo + docompress -x /usr/share/doc/${PF}/Demo + fi }
[gentoo-commits] repo/gentoo:master commit in: dev-python/pyldap/
commit: ef87ff62cb0fd16bfeef2bd0750db2caec0575c1 Author: Matthew Thode gentoo org> AuthorDate: Sun Mar 26 03:22:39 2017 + Commit: Matt Thode gentoo org> CommitDate: Sun Mar 26 03:22:39 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef87ff62 stablize openstack ocata pyldap-2.4.28 x86 and amd64 Package-Manager: Portage-2.3.3, Repoman-2.3.1 RepoMan-Options: --force dev-python/pyldap/pyldap-2.4.28.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/pyldap/pyldap-2.4.28.ebuild b/dev-python/pyldap/pyldap-2.4.28.ebuild index 24240860dc1..e6af168421d 100644 --- a/dev-python/pyldap/pyldap-2.4.28.ebuild +++ b/dev-python/pyldap/pyldap-2.4.28.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="PSF-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris" +KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-solaris" IUSE="doc examples sasl ssl" # If you need support for openldap-2.3.x, please use python-ldap-2.3.9.
[gentoo-commits] repo/gentoo:master commit in: dev-python/pyldap/
commit: 5e637e6dcb79af69c785e85afb5cff08ecd9 Author: Matthew Thode gentoo org> AuthorDate: Mon Feb 27 02:07:34 2017 + Commit: Matt Thode gentoo org> CommitDate: Mon Feb 27 02:15:48 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e637e6d dev-python/pyldap: bup Package-Manager: Portage-2.3.3, Repoman-2.3.1 dev-python/pyldap/Manifest | 1 + dev-python/pyldap/pyldap-2.4.28.ebuild | 74 ++ 2 files changed, 75 insertions(+) diff --git a/dev-python/pyldap/Manifest b/dev-python/pyldap/Manifest index a665df9d52..b7af4c6fcd 100644 --- a/dev-python/pyldap/Manifest +++ b/dev-python/pyldap/Manifest @@ -2,3 +2,4 @@ DIST pyldap-2.4.20.tar.gz 122175 SHA256 9f3c5679e6a2c26a852d0468c538239e458a39ee DIST pyldap-2.4.21.tar.gz 124575 SHA256 7a2b1dc31679466db11320b91bd2058574ba25ef27224967040918046ff4c450 SHA512 14aa87421017cd8ba4dc9c9787995ab28c0a656bc665c82de0eaaf4dfe312c731e98bb30f8de5200f23518e9d18d0265eed8a77c1aa58a0551e2d06dbc91a292 WHIRLPOOL 466ed66c77be629b0184efabb2ca5129e0d7d7b9a600f122b875287157c6b7ceb4af9d325c1f17e9f49233739fe8071373d900b0b435a730480eabf365178565 DIST pyldap-2.4.25.1.tar.gz 124042 SHA256 fdc46e9cad1fd515017b6109edd8d35a5ab655daa2708743285e8356bb5c2bee SHA512 e28a13f4eca447dea3a2829c2523b103ebaa0e669d6772d24adc8e20505e552f9201ff37b1c71a904575e53739ef93e3b99a984f28d1bb0577a89e43e1b250e6 WHIRLPOOL 00389234dbb7eb4a18f65e448a5d5696812acd9a4fd5d9ff69f43a1e9ecbf29cb1cbd98b21d12178b34bab669f9eef3ec11192dcb4e9405ee1569d8ec81f689a DIST pyldap-2.4.25.tar.gz 125234 SHA256 6a81ff791ee82fc246af724904d5d38f5fac97f5698a68e2907eaa5bb00bcc79 SHA512 23c34c0510d0e44f3d5d3af7c683ff41384c7fd06213ff50b14e43db27a1d1cdcc7c63477503f049ce7cbd1584ab1da0c0a88acb74b3ca7e05f3a841565e4713 WHIRLPOOL f537212124f2719507eee111801e985b6051d77e07a143fed5f4721ef0899ed4dd95d99eabfc3dd423401575f374448ed6b45f7546385eb983926be636d60efe +DIST pyldap-2.4.28.tar.gz 130651 SHA256 d38f31018f0c15925f50aec39f7255c15463f98797af53931e0e2a9ac21f6661 SHA512 d8bdf79c63d94289f2503fefe77b4e5c3edca6bf42a6fc039cffc4ebb9db57808c5f4fbf9265d3f33b672971ba3194c35b3b6034543c4f6f7ff80497ff050a7b WHIRLPOOL ff72c9d451e9d47872f78b4cc27cd51a3f5a156ea9a49a01ade35e1e52d74a92abf69301670fcc8be6eb3e32da69d4290dd4d590ae8971eec2cc1c77491d6bdb diff --git a/dev-python/pyldap/pyldap-2.4.28.ebuild b/dev-python/pyldap/pyldap-2.4.28.ebuild new file mode 100644 index 00..24240860dc --- /dev/null +++ b/dev-python/pyldap/pyldap-2.4.28.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5} pypy ) + +inherit distutils-r1 multilib + +DESCRIPTION="Various LDAP-related Python modules" +HOMEPAGE="https://pypi.python.org/pypi/pyldap https://github.com/pyldap/pyldap/; +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris" +IUSE="doc examples sasl ssl" + +# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. +# python team: Please do not remove python-ldap-2.3.9 from the tree. +# OpenSSL is an optional runtime dep. +# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires +RDEPEND=" + >net-nds/openldap-2.4.11 + dev-python/pyasn1[${PYTHON_USEDEP}] + dev-python/pyasn1-modules[${PYTHON_USEDEP}] + sasl? ( >=dev-libs/cyrus-sasl-2.1 )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" +RDEPEND+=" !dev-python/python-ldap" + +python_prepare_all() { + sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ + -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ + -i setup.cfg || die "error fixing setup.cfg" + + local mylibs="ldap" + if use sasl; then + use ssl && mylibs="ldap_r" + mylibs="${mylibs} sasl2" + else + sed -e 's/HAVE_SASL//g' -i setup.cfg || die + fi + use ssl && mylibs="${mylibs} ssl crypto" + use elibc_glibc && mylibs="${mylibs} resolv" + + sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ + -i setup.cfg || die "error setting up libs in setup.cfg" + + # set test expected to fail to expectedFailure + sed -e "s:^def test_bad_urls:@unittest.expectedFailure\ndef test_bad_urls:" \ + -i Tests/t_ldapurl.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C Doc html +} + +python_test() { + # XXX: the tests supposedly can start local slapd + # but it requires some manual config, it seems. + + "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" +} +
[gentoo-commits] repo/gentoo:master commit in: dev-python/pyldap/
commit: 96ccbb0df4e71740534d6dfeddbfb4395d86692d Author: Patrick Lauer gentoo org> AuthorDate: Fri Feb 19 12:42:45 2016 + Commit: Patrick Lauer gentoo org> CommitDate: Fri Feb 19 12:45:34 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96ccbb0d dev-python/pyldap: Bump Package-Manager: portage-2.2.27 dev-python/pyldap/Manifest | 1 + dev-python/pyldap/pyldap-2.4.25.ebuild | 75 ++ 2 files changed, 76 insertions(+) diff --git a/dev-python/pyldap/Manifest b/dev-python/pyldap/Manifest index 7849cee..af0106a 100644 --- a/dev-python/pyldap/Manifest +++ b/dev-python/pyldap/Manifest @@ -1,2 +1,3 @@ DIST pyldap-2.4.20.tar.gz 122175 SHA256 9f3c5679e6a2c26a852d0468c538239e458a39ee86ddbbd2f1ec5c6fc73a3755 SHA512 f29df58fa1617b8b61631ad4532fde7569dd9742d141e31c1724568c0b46ed63cbc83135089196a07e4dca22d76f05f3c5a74e9b1e8034e5673196912baa8642 WHIRLPOOL 27dcf5919b83e3236b2b18b02943080fe5f5e48e5e931f27dfae45612c075e58bd798bee1f52dde8674571f377dd99479ef0f4a4e917f8c55962cce51fc150a3 DIST pyldap-2.4.21.tar.gz 124575 SHA256 7a2b1dc31679466db11320b91bd2058574ba25ef27224967040918046ff4c450 SHA512 14aa87421017cd8ba4dc9c9787995ab28c0a656bc665c82de0eaaf4dfe312c731e98bb30f8de5200f23518e9d18d0265eed8a77c1aa58a0551e2d06dbc91a292 WHIRLPOOL 466ed66c77be629b0184efabb2ca5129e0d7d7b9a600f122b875287157c6b7ceb4af9d325c1f17e9f49233739fe8071373d900b0b435a730480eabf365178565 +DIST pyldap-2.4.25.tar.gz 125234 SHA256 6a81ff791ee82fc246af724904d5d38f5fac97f5698a68e2907eaa5bb00bcc79 SHA512 23c34c0510d0e44f3d5d3af7c683ff41384c7fd06213ff50b14e43db27a1d1cdcc7c63477503f049ce7cbd1584ab1da0c0a88acb74b3ca7e05f3a841565e4713 WHIRLPOOL f537212124f2719507eee111801e985b6051d77e07a143fed5f4721ef0899ed4dd95d99eabfc3dd423401575f374448ed6b45f7546385eb983926be636d60efe diff --git a/dev-python/pyldap/pyldap-2.4.25.ebuild b/dev-python/pyldap/pyldap-2.4.25.ebuild new file mode 100644 index 000..55a781d --- /dev/null +++ b/dev-python/pyldap/pyldap-2.4.25.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} pypy ) + +inherit distutils-r1 multilib + +DESCRIPTION="Various LDAP-related Python modules" +HOMEPAGE="https://pypi.python.org/pypi/pyldap https://github.com/pyldap/pyldap/; +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris" +IUSE="doc examples sasl ssl" + +# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. +# python team: Please do not remove python-ldap-2.3.9 from the tree. +# OpenSSL is an optional runtime dep. +# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires +RDEPEND=" + >net-nds/openldap-2.4.11 + dev-python/pyasn1[${PYTHON_USEDEP}] + dev-python/pyasn1-modules[${PYTHON_USEDEP}] + sasl? ( >=dev-libs/cyrus-sasl-2.1 )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" +RDEPEND+=" !dev-python/python-ldap" + +python_prepare_all() { + sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ + -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ + -i setup.cfg || die "error fixing setup.cfg" + + local mylibs="ldap" + if use sasl; then + use ssl && mylibs="ldap_r" + mylibs="${mylibs} sasl2" + else + sed -e 's/HAVE_SASL//g' -i setup.cfg || die + fi + use ssl && mylibs="${mylibs} ssl crypto" + use elibc_glibc && mylibs="${mylibs} resolv" + + sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ + -i setup.cfg || die "error setting up libs in setup.cfg" + + # set test expected to fail to expectedFailure + sed -e "s:^def test_bad_urls:@unittest.expectedFailure\ndef test_bad_urls:" \ + -i Tests/t_ldapurl.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C Doc html +} + +python_test() { + # XXX: the tests supposedly can start local slapd + # but it requires some manual config, it seems. + + "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use examples && local EXAMPLES=( Demo/. ) + use doc && local HTML_DOCS=( Doc/.build/html/. ) + + distutils-r1_python_install_all +}
[gentoo-commits] repo/gentoo:master commit in: dev-python/pyldap/
commit: 1b5de4ed61f8be0d73874d466d70bf6485f4abdd Author: Justin Lecher gentoo org> AuthorDate: Wed Oct 21 14:52:04 2015 + Commit: Justin Lecher gentoo org> CommitDate: Wed Oct 21 15:17:39 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b5de4ed dev-python/pyldap: Version Bump Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher gentoo.org> dev-python/pyldap/Manifest | 1 + dev-python/pyldap/pyldap-2.4.21.ebuild | 75 ++ 2 files changed, 76 insertions(+) diff --git a/dev-python/pyldap/Manifest b/dev-python/pyldap/Manifest index 6e757dc..7849cee 100644 --- a/dev-python/pyldap/Manifest +++ b/dev-python/pyldap/Manifest @@ -1 +1,2 @@ DIST pyldap-2.4.20.tar.gz 122175 SHA256 9f3c5679e6a2c26a852d0468c538239e458a39ee86ddbbd2f1ec5c6fc73a3755 SHA512 f29df58fa1617b8b61631ad4532fde7569dd9742d141e31c1724568c0b46ed63cbc83135089196a07e4dca22d76f05f3c5a74e9b1e8034e5673196912baa8642 WHIRLPOOL 27dcf5919b83e3236b2b18b02943080fe5f5e48e5e931f27dfae45612c075e58bd798bee1f52dde8674571f377dd99479ef0f4a4e917f8c55962cce51fc150a3 +DIST pyldap-2.4.21.tar.gz 124575 SHA256 7a2b1dc31679466db11320b91bd2058574ba25ef27224967040918046ff4c450 SHA512 14aa87421017cd8ba4dc9c9787995ab28c0a656bc665c82de0eaaf4dfe312c731e98bb30f8de5200f23518e9d18d0265eed8a77c1aa58a0551e2d06dbc91a292 WHIRLPOOL 466ed66c77be629b0184efabb2ca5129e0d7d7b9a600f122b875287157c6b7ceb4af9d325c1f17e9f49233739fe8071373d900b0b435a730480eabf365178565 diff --git a/dev-python/pyldap/pyldap-2.4.21.ebuild b/dev-python/pyldap/pyldap-2.4.21.ebuild new file mode 100644 index 000..55a781d --- /dev/null +++ b/dev-python/pyldap/pyldap-2.4.21.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} pypy ) + +inherit distutils-r1 multilib + +DESCRIPTION="Various LDAP-related Python modules" +HOMEPAGE="https://pypi.python.org/pypi/pyldap https://github.com/pyldap/pyldap/; +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris" +IUSE="doc examples sasl ssl" + +# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. +# python team: Please do not remove python-ldap-2.3.9 from the tree. +# OpenSSL is an optional runtime dep. +# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires +RDEPEND=" + >net-nds/openldap-2.4.11 + dev-python/pyasn1[${PYTHON_USEDEP}] + dev-python/pyasn1-modules[${PYTHON_USEDEP}] + sasl? ( >=dev-libs/cyrus-sasl-2.1 )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" +RDEPEND+=" !dev-python/python-ldap" + +python_prepare_all() { + sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ + -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ + -i setup.cfg || die "error fixing setup.cfg" + + local mylibs="ldap" + if use sasl; then + use ssl && mylibs="ldap_r" + mylibs="${mylibs} sasl2" + else + sed -e 's/HAVE_SASL//g' -i setup.cfg || die + fi + use ssl && mylibs="${mylibs} ssl crypto" + use elibc_glibc && mylibs="${mylibs} resolv" + + sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ + -i setup.cfg || die "error setting up libs in setup.cfg" + + # set test expected to fail to expectedFailure + sed -e "s:^def test_bad_urls:@unittest.expectedFailure\ndef test_bad_urls:" \ + -i Tests/t_ldapurl.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C Doc html +} + +python_test() { + # XXX: the tests supposedly can start local slapd + # but it requires some manual config, it seems. + + "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use examples && local EXAMPLES=( Demo/. ) + use doc && local HTML_DOCS=( Doc/.build/html/. ) + + distutils-r1_python_install_all +}
[gentoo-commits] repo/gentoo:master commit in: dev-python/pyldap/files/, dev-python/pyldap/
commit: 1009299d11d10c0610e698fa5b6dd8dad63d5acb Author: Justin Lecher gentoo org> AuthorDate: Wed Oct 14 14:05:34 2015 + Commit: Justin Lecher gentoo org> CommitDate: Wed Oct 14 14:05:34 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1009299d dev-python/pyldap: Backport patch for bytes/string conversion problem Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=562854 Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher gentoo.org> .../pyldap-2.4.20-bytes_string-backport.patch | 49 ++ dev-python/pyldap/metadata.xml | 2 +- dev-python/pyldap/pyldap-2.4.20-r1.ebuild | 2 + ...ap-2.4.20-r1.ebuild => pyldap-2.4.20-r2.ebuild} | 2 + 4 files changed, 54 insertions(+), 1 deletion(-) diff --git a/dev-python/pyldap/files/pyldap-2.4.20-bytes_string-backport.patch b/dev-python/pyldap/files/pyldap-2.4.20-bytes_string-backport.patch new file mode 100644 index 000..ff4519b --- /dev/null +++ b/dev-python/pyldap/files/pyldap-2.4.20-bytes_string-backport.patch @@ -0,0 +1,49 @@ +From 6e9e1902f33bff8ea179dc32ce4d2aa71b3335de Mon Sep 17 00:00:00 2001 +From: Petr Viktorin+Date: Fri, 2 Oct 2015 14:06:12 +0200 +Subject: [PATCH] Fix sasl string/bytes mismatch +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The SASL mechanism and response are always bytes; encode them if necessary. + +Based on patch by Michael Šimáček: https://github.com/pyldap/pyldap/pull/20 +--- + Lib/ldap/sasl.py | 9 - + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/Lib/ldap/sasl.py b/Lib/ldap/sasl.py +index 1158671..de38393 100644 +--- a/Lib/ldap/sasl.py b/Lib/ldap/sasl.py +@@ -46,6 +46,8 @@ def __init__(self,cb_value_dict,mech): + SASL callback id's. The mech argument is a string that specifies + the SASL mechaninsm to be uesd.""" + self.cb_value_dict = cb_value_dict or {} ++if not isinstance(mech, bytes): ++mech = mech.encode('utf-8') + self.mech = mech + + def callback(self,cb_id,challenge,prompt,defresult): +@@ -62,7 +64,10 @@ def callback(self,cb_id,challenge,prompt,defresult): + cb_value_dictionary. Note that the current callback interface is not very + useful for writing generic sasl GUIs, which would need to know all + the questions to ask, before the answers are returned to the sasl +-lib (in contrast to one question at a time).""" ++lib (in contrast to one question at a time). ++ ++Unicode strings are always converted to bytes. ++""" + + # The following print command might be useful for debugging + # new sasl mechanisms. So it is left here +@@ -72,6 +77,8 @@ def callback(self,cb_id,challenge,prompt,defresult): + _trace_file.write("*** id=%d, challenge=%s, prompt=%s, defresult=%s\n-> %s\n" % ( + cb_id, challenge, prompt, repr(defresult), repr(self.cb_value_dict.get(cb_result)) + )) ++if not isinstance(cb_result, bytes): ++cb_result = cb_result.encode('utf-8') + return cb_result + + diff --git a/dev-python/pyldap/metadata.xml b/dev-python/pyldap/metadata.xml index b491fc4..7a3d4a5 100644 --- a/dev-python/pyldap/metadata.xml +++ b/dev-python/pyldap/metadata.xml @@ -1,4 +1,4 @@ - + http://www.gentoo.org/dtd/metadata.dtd;> python diff --git a/dev-python/pyldap/pyldap-2.4.20-r1.ebuild b/dev-python/pyldap/pyldap-2.4.20-r1.ebuild index 55a781d..1ea0d22 100644 --- a/dev-python/pyldap/pyldap-2.4.20-r1.ebuild +++ b/dev-python/pyldap/pyldap-2.4.20-r1.ebuild @@ -31,6 +31,8 @@ DEPEND="${RDEPEND} doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" RDEPEND+=" !dev-python/python-ldap" +PATCHES=( "${FILESDIR}"/${P}-bytes_string-backport.patch ) + python_prepare_all() { sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ diff --git a/dev-python/pyldap/pyldap-2.4.20-r1.ebuild b/dev-python/pyldap/pyldap-2.4.20-r2.ebuild similarity index 97% copy from dev-python/pyldap/pyldap-2.4.20-r1.ebuild copy to dev-python/pyldap/pyldap-2.4.20-r2.ebuild index 55a781d..1ea0d22 100644 --- a/dev-python/pyldap/pyldap-2.4.20-r1.ebuild +++ b/dev-python/pyldap/pyldap-2.4.20-r2.ebuild @@ -31,6 +31,8 @@ DEPEND="${RDEPEND} doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" RDEPEND+=" !dev-python/python-ldap" +PATCHES=( "${FILESDIR}"/${P}-bytes_string-backport.patch ) + python_prepare_all() { sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \
[gentoo-commits] repo/gentoo:master commit in: dev-python/pyldap/
commit: 48b1427e585995096ed196a93ffd028eaee78546 Author: Mike Gilbert gentoo org> AuthorDate: Fri Oct 9 09:54:21 2015 + Commit: Mike Gilbert gentoo org> CommitDate: Fri Oct 9 09:56:16 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48b1427e dev-python/pyldap: Remove PYTHON_USEDEP from python-ldap blocker Bug: https://bugs.gentoo.org/562058 Package-Manager: portage-2.2.22_p20 dev-python/pyldap/{pyldap-2.4.20.ebuild => pyldap-2.4.20-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/pyldap/pyldap-2.4.20.ebuild b/dev-python/pyldap/pyldap-2.4.20-r1.ebuild similarity index 98% rename from dev-python/pyldap/pyldap-2.4.20.ebuild rename to dev-python/pyldap/pyldap-2.4.20-r1.ebuild index 1f121f3..55a781d 100644 --- a/dev-python/pyldap/pyldap-2.4.20.ebuild +++ b/dev-python/pyldap/pyldap-2.4.20-r1.ebuild @@ -22,7 +22,6 @@ IUSE="doc examples sasl ssl" # OpenSSL is an optional runtime dep. # setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires RDEPEND=" - !dev-python/python-ldap[${PYTHON_USEDEP}] >net-nds/openldap-2.4.11 dev-python/pyasn1[${PYTHON_USEDEP}] dev-python/pyasn1-modules[${PYTHON_USEDEP}] @@ -30,6 +29,7 @@ RDEPEND=" DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" +RDEPEND+=" !dev-python/python-ldap" python_prepare_all() { sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \
[gentoo-commits] repo/gentoo:master commit in: dev-python/pyldap/
commit: 5d7f0a42d9c50d94b66eeaa5d64e2cf10b344354 Author: Justin Lecher gentoo org> AuthorDate: Thu Oct 1 07:02:48 2015 + Commit: Justin Lecher gentoo org> CommitDate: Thu Oct 1 07:03:15 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d7f0a42 dev-python/pyldap: New package, ebuild written by me Package-Manager: portage-2.2.22 Signed-off-by: Justin Lecher gentoo.org> dev-python/pyldap/Manifest | 1 + dev-python/pyldap/metadata.xml | 13 ++ dev-python/pyldap/pyldap-2.4.20.ebuild | 75 ++ 3 files changed, 89 insertions(+) diff --git a/dev-python/pyldap/Manifest b/dev-python/pyldap/Manifest new file mode 100644 index 000..6e757dc --- /dev/null +++ b/dev-python/pyldap/Manifest @@ -0,0 +1 @@ +DIST pyldap-2.4.20.tar.gz 122175 SHA256 9f3c5679e6a2c26a852d0468c538239e458a39ee86ddbbd2f1ec5c6fc73a3755 SHA512 f29df58fa1617b8b61631ad4532fde7569dd9742d141e31c1724568c0b46ed63cbc83135089196a07e4dca22d76f05f3c5a74e9b1e8034e5673196912baa8642 WHIRLPOOL 27dcf5919b83e3236b2b18b02943080fe5f5e48e5e931f27dfae45612c075e58bd798bee1f52dde8674571f377dd99479ef0f4a4e917f8c55962cce51fc150a3 diff --git a/dev-python/pyldap/metadata.xml b/dev-python/pyldap/metadata.xml new file mode 100644 index 000..c60eaa2 --- /dev/null +++ b/dev-python/pyldap/metadata.xml @@ -0,0 +1,13 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + python + + x...@gentoo.org + Michael Weber + Upstream of the python3 port + + + python-ldap + + diff --git a/dev-python/pyldap/pyldap-2.4.20.ebuild b/dev-python/pyldap/pyldap-2.4.20.ebuild new file mode 100644 index 000..1f121f3 --- /dev/null +++ b/dev-python/pyldap/pyldap-2.4.20.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} pypy ) + +inherit distutils-r1 multilib + +DESCRIPTION="Various LDAP-related Python modules" +HOMEPAGE="https://pypi.python.org/pypi/pyldap https://github.com/pyldap/pyldap/; +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris" +IUSE="doc examples sasl ssl" + +# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. +# python team: Please do not remove python-ldap-2.3.9 from the tree. +# OpenSSL is an optional runtime dep. +# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires +RDEPEND=" + !dev-python/python-ldap[${PYTHON_USEDEP}] + >net-nds/openldap-2.4.11 + dev-python/pyasn1[${PYTHON_USEDEP}] + dev-python/pyasn1-modules[${PYTHON_USEDEP}] + sasl? ( >=dev-libs/cyrus-sasl-2.1 )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +python_prepare_all() { + sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ + -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ + -i setup.cfg || die "error fixing setup.cfg" + + local mylibs="ldap" + if use sasl; then + use ssl && mylibs="ldap_r" + mylibs="${mylibs} sasl2" + else + sed -e 's/HAVE_SASL//g' -i setup.cfg || die + fi + use ssl && mylibs="${mylibs} ssl crypto" + use elibc_glibc && mylibs="${mylibs} resolv" + + sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ + -i setup.cfg || die "error setting up libs in setup.cfg" + + # set test expected to fail to expectedFailure + sed -e "s:^def test_bad_urls:@unittest.expectedFailure\ndef test_bad_urls:" \ + -i Tests/t_ldapurl.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C Doc html +} + +python_test() { + # XXX: the tests supposedly can start local slapd + # but it requires some manual config, it seems. + + "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use examples && local EXAMPLES=( Demo/. ) + use doc && local HTML_DOCS=( Doc/.build/html/. ) + + distutils-r1_python_install_all +}