# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-misc/urlwatch/urlwatch-1.15.ebuild,v 1.1 2012/09/03 19:10:43 radhermit Exp $ EAPI="4" PYTHON_DEPEND="2:2.5 3:3.2" SUPPORT_PYTHON_ABIS="1" DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1" inherit distutils eutils DESCRIPTION="A tool for monitoring webpages for updates" HOMEPAGE="http://thp.io/2008/urlwatch/ http://pypi.python.org/pypi/urlwatch" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="xmpp" DEPEND="dev-python/futures" RDEPEND="${DEPEND} xmpp? ( dev-python/xmpppy ) || ( www-client/lynx app-text/html2text )" src_prepare() { use xmpp && epatch "${FILESDIR}"/${PN}-xmpp.patch sed -i "s/^os.unlink/#\0/" setup.py || die distutils_src_prepare 2to3_conversion() { [[ "${PYTHON_ABI}" == 2.* ]] && return 2to3-${PYTHON_ABI} -nw --no-diffs urlwatch lib/urlwatch/*.py \ examples/hooks.py.example setup.py || die "2to3 failed" } python_execute_function -s 2to3_conversion }