# Copyright 1999-20059 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A python script that converts RSS newsfeeds to email" HOMEPAGE="http://www.aaronsw.com/2002/rss2email/" SRC_URI="http://rss2email.infogami.com/${P}.py http://www.aaronsw.com/2002/html2text/html2text-2.35.py" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="dev-python/feedparser virtual/python" src_unpack() { cp ${DISTDIR}/html2text-*.py html2text.py cp ${DISTDIR}/rss2email-*.py rss2email.py cp ${FILESDIR}/config.py . cp ${FILESDIR}/r2e . sed 's|^sys\.path\.append("\.")|sys\.path\.insert(0,"~/rss2email")|' -i rss2email.py } src_install() { insinto /usr/share/rss2email doins rss2email.py html2text.py config.py.sample exeinto /usr/bin doexe r2e }