# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/python-xlib/python-xlib-0.12-r3.ebuild,v 1.8 2007/07/01 07:21:41 lucass Exp $ inherit distutils eutils DESCRIPTION="A fully functional X client library for Python, written in Python" HOMEPAGE="http://python-xlib.sourceforge.net/" SRC_URI="mirror://sourceforge/python-xlib/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 ia64 ppc x86" IUSE="" DOCS="doc/ps/python-xlib.ps PKG-INFO TODO" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/${P}-buflen.patch" epatch "${FILESDIR}/${P}-coding.patch" } src_install () { epatch "${FILESDIR}/${P}-info.patch" distutils_src_install dohtml -r doc/html/ doinfo doc/info/*.info* } src_test() { for pytest in $(ls test/*py); do PYTHONPATH=. "${python}" ${pytest} || die "test failed" done }