/[gentoo-x86]/net-mail/rss2email/rss2email-2.69-r1.ebuild
Gentoo

Contents of /net-mail/rss2email/rss2email-2.69-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Dec 18 03:25:14 2010 UTC (4 years ago) by sping
Branch: MAIN
Changes since 1.1: +2 -2 lines
net-mail/rss2email: Update homepage link as requested from upstream

(Portage version: 2.1.9.25/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-mail/rss2email/rss2email-2.69-r1.ebuild,v 1.1 2010/11/28 17:50:31 sping Exp $
4
5 EAPI="2"
6
7 PYTHON_DEPEND="2"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="3.*"
10
11 inherit eutils python
12
13 DEBIAN_PV="2.65"
14
15 DESCRIPTION="A python script that converts RSS/Atom newsfeeds to email"
16 HOMEPAGE="http://www.allthingsrss.com/rss2email"
17 SRC_URI="http://www.allthingsrss.com/${PN}/${P}.tar.gz
18 mirror://debian/pool/main/r/${PN}/${PN}_${DEBIAN_PV}-1.diff.gz"
19
20 LICENSE="GPL-2"
21 SLOT="0"
22 KEYWORDS="~amd64 ~x86"
23 IUSE=""
24
25 DEPEND="dev-util/patchutils"
26 RDEPEND="dev-python/feedparser
27 dev-python/html2text"
28
29 src_prepare() {
30 epatch "${FILESDIR}"/${P}-config-location.patch
31
32 # Extract man page from Debian patch
33 zcat "${DISTDIR}"/${PN}_${DEBIAN_PV}-1.diff.gz \
34 | filterdiff -i '*/r2e.1' \
35 > "${S}"/r2e.1.patch || die
36 EPATCH_OPTS="-p1" epatch r2e.1.patch
37 }
38
39 src_install() {
40 my_install() {
41 insinto "$(python_get_sitedir)"/${PN}
42 newins rss2email.py main.py || die
43
44 insinto /etc/${PN}
45 doins config.py || die
46 }
47 python_execute_function my_install
48
49 dodoc CHANGELOG readme.html || die
50 doman r2e.1 || die
51
52 # Replace r2e wrapper
53 cat <<-"EOF" >r2e
54 #! /bin/sh
55 SITE_PACKAGES=`python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
56 CONF_DIR=${HOME}/.rss2email
57 mkdir -p "${CONF_DIR}"
58 exec python2 "${SITE_PACKAGES}"/rss2email/main.py "${CONF_DIR}"/feeds.dat $*
59 EOF
60
61 dobin r2e || die
62 }

  ViewVC Help
Powered by ViewVC 1.1.20