diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2012-05-17 18:57:16 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2012-05-17 18:57:16 +0000 |
commit | 58a617cc39274ce62e7eb0ec33a290b7b7d0d9a4 (patch) | |
tree | a4ba0b2bde6f92a2e40d2fc4479b6a5bfa8886d4 /dev-python | |
parent | Stable on alpha, bug #416143 (diff) | |
download | gentoo-2-58a617cc39274ce62e7eb0ec33a290b7b7d0d9a4.tar.gz gentoo-2-58a617cc39274ce62e7eb0ec33a290b7b7d0d9a4.tar.bz2 gentoo-2-58a617cc39274ce62e7eb0ec33a290b7b7d0d9a4.zip |
Mirror docs for 2.3.13 (built by me) wrt #416343, build docs using sphinx instead of relying on upstream in latest version. Drop old. Add missing dependencies, fix building without SASL, version bump.
(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/python-ldap/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/python-ldap/python-ldap-2.3.13.ebuild | 8 | ||||
-rw-r--r-- | dev-python/python-ldap/python-ldap-2.4.9.ebuild (renamed from dev-python/python-ldap/python-ldap-2.4.8.ebuild) | 35 |
3 files changed, 38 insertions, 15 deletions
diff --git a/dev-python/python-ldap/ChangeLog b/dev-python/python-ldap/ChangeLog index 7de3e38c3489..811a017ea595 100644 --- a/dev-python/python-ldap/ChangeLog +++ b/dev-python/python-ldap/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-python/python-ldap # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/ChangeLog,v 1.107 2012/03/09 09:25:39 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/ChangeLog,v 1.108 2012/05/17 18:57:16 xarthisius Exp $ + +*python-ldap-2.4.9 (17 May 2012) + + 17 May 2012; Kacper Kowalik <xarthisius@gentoo.org> +python-ldap-2.4.9.ebuild, + -python-ldap-2.4.8.ebuild, python-ldap-2.3.13.ebuild: + Mirror docs for 2.3.13 (built by me) wrt #416343, build docs using sphinx + instead of relying on upstream in latest version. Drop old. Add missing + dependencies, fix building without SASL, version bump. *python-ldap-2.4.8 (09 Mar 2012) diff --git a/dev-python/python-ldap/python-ldap-2.3.13.ebuild b/dev-python/python-ldap/python-ldap-2.3.13.ebuild index 6929c00bb296..21eb4f73c0c4 100644 --- a/dev-python/python-ldap/python-ldap-2.3.13.ebuild +++ b/dev-python/python-ldap/python-ldap-2.3.13.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/python-ldap-2.3.13.ebuild,v 1.11 2011/09/04 17:00:38 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/python-ldap-2.3.13.ebuild,v 1.12 2012/05/17 18:57:16 xarthisius Exp $ EAPI="3" PYTHON_DEPEND="2" @@ -9,12 +9,12 @@ RESTRICT_PYTHON_ABIS="3.* *-jython" inherit distutils multilib -DOC_P="${PN}-docs-html-2.3.11" +DOC_P="${PN}-docs-html-${PV}" DESCRIPTION="Various LDAP-related Python modules" HOMEPAGE="http://python-ldap.sourceforge.net/ http://pypi.python.org/pypi/python-ldap" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz - doc? ( http://www.python-ldap.org/doc/${DOC_P}.tar.gz )" + doc? ( http://dev.gentoo.org/~xarthisius/distfiles/${DOC_P}.tar.gz )" LICENSE="PSF-2" SLOT="0" diff --git a/dev-python/python-ldap/python-ldap-2.4.8.ebuild b/dev-python/python-ldap/python-ldap-2.4.9.ebuild index 9515374164d8..9b76eb21b281 100644 --- a/dev-python/python-ldap/python-ldap-2.4.8.ebuild +++ b/dev-python/python-ldap/python-ldap-2.4.9.ebuild @@ -1,32 +1,31 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/python-ldap-2.4.8.ebuild,v 1.1 2012/03/09 09:25:39 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ldap/python-ldap-2.4.9.ebuild,v 1.1 2012/05/17 18:57:16 xarthisius Exp $ + +EAPI=4 -EAPI="3" -PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.* *-jython" inherit distutils multilib -DOC_P="${PN}-docs-html-${PV}" - DESCRIPTION="Various LDAP-related Python modules" HOMEPAGE="http://python-ldap.sourceforge.net/ http://pypi.python.org/pypi/python-ldap" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -# doc? ( http://www.python-ldap.org/doc/${DOC_P}.tar.gz )" #gone LICENSE="PSF-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-solaris" -IUSE="examples sasl ssl" +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. RDEPEND=">=net-nds/openldap-2.4 + dev-python/pyasn1 sasl? ( dev-libs/cyrus-sasl )" -DEPEND="${DEPEND} - dev-python/setuptools" +DEPEND="${RDEPEND} + dev-python/setuptools + doc? ( dev-python/sphinx )" DOCS="CHANGES README" PYTHON_MODNAME="dsml.py ldapurl.py ldif.py ldap" @@ -45,6 +44,8 @@ src_prepare() { 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" @@ -54,11 +55,25 @@ src_prepare() { -i setup.cfg || die "error setting up libs in setup.cfg" } +src_compile() { + distutils_src_compile + if use doc; then + pushd Doc &> /dev/null + PYTHONPATH="$(ls -d ../build-$(PYTHON -f --ABI)/lib*)" \ + sphinx-build -b html -d _build/doctrees . _build/html + popd Doc &> /dev/null + fi +} + src_install() { distutils_src_install if use examples; then insinto /usr/share/doc/${PF} - doins -r Demo || die "doins failed" + doins -r Demo + fi + + if use doc; then + dohtml -r Doc/_build/html/ fi } |