# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_PACKAGE=Xish inherit twisted DESCRIPTION="Twisted Xish is an XML library with XPath-ish and DOM-ish support." KEYWORDS="alpha amd64 ia64 ppc sparc x86" DEPEND=">=dev-python/twisted-2" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/${P}-tests-2.1-compat.patch" cat > twisted/xish/_version.py <<-EOF from twisted.python import versions version = versions.Version(__name__[:__name__.rfind('.')], 0, 1, 0) EOF }