summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-03-13 19:14:42 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-03-13 19:14:42 +0000
commit987523601738c001482f5b459f11181770408610 (patch)
tree648e5a7f94ecc5e8bcd0788826f42fe20ea574cc /dev-python
parentRemove crypto++ limitation, bug #299113 (diff)
downloadgentoo-2-987523601738c001482f5b459f11181770408610.tar.gz
gentoo-2-987523601738c001482f5b459f11181770408610.tar.bz2
gentoo-2-987523601738c001482f5b459f11181770408610.zip
Set SUPPORT_PYTHON_ABIS.
(Portage version: 15825-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/ldaptor/ChangeLog6
-rw-r--r--dev-python/ldaptor/ldaptor-0.0.43.ebuild32
2 files changed, 25 insertions, 13 deletions
diff --git a/dev-python/ldaptor/ChangeLog b/dev-python/ldaptor/ChangeLog
index b2993673489b..c5f799a7625d 100644
--- a/dev-python/ldaptor/ChangeLog
+++ b/dev-python/ldaptor/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/ldaptor
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/ldaptor/ChangeLog,v 1.34 2010/02/07 21:07:10 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/ldaptor/ChangeLog,v 1.35 2010/03/13 19:14:42 arfrever Exp $
+
+ 13 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ ldaptor-0.0.43.ebuild:
+ Set SUPPORT_PYTHON_ABIS.
07 Feb 2010; Peter Volkov <pva@gentoo.org> ldaptor-0.0.43.ebuild:
Add inherit eutils: epatch is defined there.
diff --git a/dev-python/ldaptor/ldaptor-0.0.43.ebuild b/dev-python/ldaptor/ldaptor-0.0.43.ebuild
index a87102558d44..97b109cded53 100644
--- a/dev-python/ldaptor/ldaptor-0.0.43.ebuild
+++ b/dev-python/ldaptor/ldaptor-0.0.43.ebuild
@@ -1,8 +1,14 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/ldaptor/ldaptor-0.0.43.ebuild,v 1.14 2010/02/07 21:07:10 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/ldaptor/ldaptor-0.0.43.ebuild,v 1.15 2010/03/13 19:14:42 arfrever Exp $
-inherit eutils distutils
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+DISTUTILS_SRC_TEST="trial"
+DISTUTILS_DISABLE_TEST_DEPENDENCY="1"
+
+inherit distutils eutils
DESCRIPTION="set of LDAP utilities for use from the command line"
HOMEPAGE="http://www.inoi.fi/open/trac/ldaptor"
@@ -19,9 +25,9 @@ DEPEND=">=dev-python/twisted-2
dev-python/twisted-mail
dev-python/pyparsing
web? (
- dev-python/webut
>=dev-python/nevow-0.3
dev-python/twisted-web
+ dev-python/webut
)
doc? (
dev-python/epydoc
@@ -30,12 +36,11 @@ DEPEND=">=dev-python/twisted-2
)
samba? ( dev-python/pycrypto )"
RDEPEND="${DEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
DOCS="README TODO ldaptor.schema"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
epatch "${FILESDIR}/${P}-zope_interface.patch"
epatch "${FILESDIR}/${P}-usage-exception.patch"
}
@@ -60,21 +65,24 @@ src_test() {
if ! use web; then
rm -f ldaptor/test/test_webui.py
fi
- PYTHONPATH=. trial ldaptor || die "test failed"
+
+ distutils_src_test
}
src_install() {
distutils_src_install
if ! use web; then
- rm "${D}"/usr/bin/ldaptor-webui || die "couldn't rm ldaptor-webui"
- rm -rf "${D}"/$(python_get_sitedir)/ldaptor/apps/webui || die "couldn't prune webui"
+ rm -f "${D}"usr/bin/ldaptor-webui*
+ rm -fr "${D}"usr/$(get_libdir)/python*/site-packages/ldaptor/apps/webui
else
- cp ldaptor/apps/webui/skin-default.html "${D}"/$(python_get_sitedir)/ldaptor/apps/webui \
- || die "couldn't copy default skin"
+ copy_skin-default() {
+ cp ldaptor/apps/webui/skin-default.html "${D}$(python_get_sitedir)/ldaptor/apps/webui"
+ }
+ python_execute_function -q copy_skin-default
fi
- # install examples
+ # Install examples.
if use doc; then
insinto /usr/share/doc/${PF}
doins -r doc/api doc/ldap-intro doc/examples