summaryrefslogtreecommitdiff
path: root/dev-python/pyldap
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pyldap
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pyldap')
-rw-r--r--dev-python/pyldap/Manifest6
-rw-r--r--dev-python/pyldap/metadata.xml17
-rw-r--r--dev-python/pyldap/pyldap-2.4.28.ebuild76
-rw-r--r--dev-python/pyldap/pyldap-2.4.37.ebuild76
4 files changed, 175 insertions, 0 deletions
diff --git a/dev-python/pyldap/Manifest b/dev-python/pyldap/Manifest
new file mode 100644
index 000000000000..ff0ce538ae72
--- /dev/null
+++ b/dev-python/pyldap/Manifest
@@ -0,0 +1,6 @@
+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 da66669bf9eecebc8ba05ee313453b151a01147bc44c60da4936b80777ec3b69551f77be0e6f3c260dba771920d50fa6f54f1892eb0283761beed1ee8c6d83c2 WHIRLPOOL 23f2745836087874a3bd64835c0da2da8590028ca9a5d96b294ef00ecac00d4402300f2ccc6396606442dbae76ac164c84c4bfd39cfb3dcc6d5b9273b8e69ed1
+EBUILD pyldap-2.4.28.ebuild 2340 SHA256 4263591f03aab34845410ef4ba2c844774fc1455cedf103e94a5b86f52e469af SHA512 0f0984644b0995c8a4a472d729e0e98e3a7b0b7a3a7d6268552c46345456a7b734b9e60d4cce65f8683f2e64e790c4191bd5baa729ff31fe3c8cf9158eeca9c9 WHIRLPOOL edaca4ae0d51d9b0e9560793c27dad4ddc8c8b5f5758377f1cf6b6d68b0692c5c85e50a7b3e85e313c14614dc20d7d9343193c2aa2d96c0f02fcd41bfd9cf354
+EBUILD pyldap-2.4.37.ebuild 2340 SHA256 4263591f03aab34845410ef4ba2c844774fc1455cedf103e94a5b86f52e469af SHA512 0f0984644b0995c8a4a472d729e0e98e3a7b0b7a3a7d6268552c46345456a7b734b9e60d4cce65f8683f2e64e790c4191bd5baa729ff31fe3c8cf9158eeca9c9 WHIRLPOOL edaca4ae0d51d9b0e9560793c27dad4ddc8c8b5f5758377f1cf6b6d68b0692c5c85e50a7b3e85e313c14614dc20d7d9343193c2aa2d96c0f02fcd41bfd9cf354
+MISC ChangeLog 2473 SHA256 2700d2042a691525c80f1d4fda83111df508392212a5c4e21169c67bfae9b15f SHA512 1f8e42a153ab0faf00eedbdb29dbb0e516b3d58c074579816f9ccf0d93054dc7c0b5530dfa919e52beb6de23e588258373b8e1c633f9a686571e4d47e5e240f0 WHIRLPOOL 8210e9c263205f825a59b40b218ff35cdc0f7e3c68d5c8b473fc3a923474d1c65cdb48ca6abf51866b97dcd75e125ce69756a30d2986d38612d983ef0722fdb8
+MISC metadata.xml 529 SHA256 23b4689410e58849323265067ab738bcd94b30b31626f517a2e08664c0051215 SHA512 47560d8da0a2c956d1004cb8dff9371937980c013ccb23038faeb421d859b6fa943cd17c751a277afe6df22b8342550b06a4504a52bfc4b24881d7fa05eedb99 WHIRLPOOL 4cf65e85f3299fd15e3ef4c0e9d968754c95c8a6dd03c5066eb6d8f43c7660be5ae1ed68b87961b08958814057913b47560014e4a572120f05c63c642feb3885
diff --git a/dev-python/pyldap/metadata.xml b/dev-python/pyldap/metadata.xml
new file mode 100644
index 000000000000..6879e4d2de95
--- /dev/null
+++ b/dev-python/pyldap/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ <description>Upstream of the python3 port</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">python-ldap</remote-id>
+ <remote-id type="github">pyldap/pyldap</remote-id>
+ </upstream>
+</pkgmetadata>
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 000000000000..a8f7d202a33b
--- /dev/null
+++ b/dev-python/pyldap/pyldap-2.4.28.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\n def 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/dev-python/pyldap/pyldap-2.4.37.ebuild b/dev-python/pyldap/pyldap-2.4.37.ebuild
new file mode 100644
index 000000000000..a8f7d202a33b
--- /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\n def 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
+}