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

Contents of /net-mail/rss2email/rss2email-2.71.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue May 24 20:59:25 2011 UTC (3 years, 1 month ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable, bug #365465

(Portage version: 2.1.9.49/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.71.ebuild,v 1.2 2011/05/01 18:53:02 hwoarang 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-5.0.1
27 >=dev-python/html2text-3.01"
28
29 src_prepare() {
30 epatch "${FILESDIR}"/${PN}-2.69-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 python_execute_function my_install
45
46 insinto /etc/${PN}
47 doins config.py.example || die
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