You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/www-misc/urlwatch/urlwatch-1.15.ebuild

39 lines
1.1 KiB

# Copyright 1999-2013 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.2 2013/09/13 21:34:32 mgorny 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="virtual/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
}