diff options
Diffstat (limited to 'dev-python/logilab-common/logilab-common-0.13.0.ebuild')
-rw-r--r-- | dev-python/logilab-common/logilab-common-0.13.0.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/logilab-common/logilab-common-0.13.0.ebuild b/dev-python/logilab-common/logilab-common-0.13.0.ebuild new file mode 100644 index 000000000000..a82c2323239b --- /dev/null +++ b/dev-python/logilab-common/logilab-common-0.13.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/logilab-common-0.13.0.ebuild,v 1.1 2006/01/11 16:02:06 marienz Exp $ + +inherit distutils + +DESCRIPTION="Several modules providing low level functionality shared among some python projects developed by logilab." +HOMEPAGE="http://www.logilab.org/projects/common/" +SRC_URI="ftp://ftp.logilab.org/pub/common/${P#logilab-}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~s390 ~sparc ~x86" +IUSE="doc" + +DEPEND="|| ( >=dev-python/optik-1.4 >=dev-lang/python-2.3 )" + +S=${WORKDIR}/${P#logilab-} + +PYTHON_MODNAME="logilab" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-dbapi-skip-tests.patch" + epatch "${FILESDIR}/${P}-configuration-help-test-less-strict.patch" + # the permissions for this file are 400 in the tarball for no + # obvious reason + chmod 444 test/data/noendingnewline.py || die "chmod failed" +} + +src_install() { + distutils_src_install + + if use doc; then + dohtml -r doc/html/* + fi +} + +src_test() { + # The tests will not work properly from the source dir, so do a + # temporary install: + python_version + local spath="test/usr/$(get_libdir)/python${PYVER}/site-packages/" + ${python} setup.py install --root="${T}/test" || die "test install failed" + # dir needs to be this or the tests fail + cd "${T}/${spath}/logilab/common/test" + PYTHONPATH="${T}/${spath}" "${python}" runtests.py || die "tests failed" + cd "${S}" + rm -rf "${T}/test" +} |