1 |
commit: 320e9048d0410bab6c6196094fd4fcc6a68094d6 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 28 21:19:55 2015 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 28 21:36:04 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=320e9048 |
7 |
|
8 |
net-mail/rss2email: Fix unpacking (bug #561364) |
9 |
|
10 |
Also migrate to python-r1 eclass. |
11 |
|
12 |
Package-Manager: portage-2.2.22 |
13 |
|
14 |
net-mail/rss2email/rss2email-2.71-r1.ebuild | 67 +++++++++++++++++++++++++++++ |
15 |
1 file changed, 67 insertions(+) |
16 |
|
17 |
diff --git a/net-mail/rss2email/rss2email-2.71-r1.ebuild b/net-mail/rss2email/rss2email-2.71-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 0000000..19d40ff |
20 |
--- /dev/null |
21 |
+++ b/net-mail/rss2email/rss2email-2.71-r1.ebuild |
22 |
@@ -0,0 +1,67 @@ |
23 |
+# Copyright 1999-2015 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+# $Id$ |
26 |
+ |
27 |
+EAPI="5" |
28 |
+ |
29 |
+PYTHON_COMPAT=( python2_7 ) |
30 |
+ |
31 |
+inherit eutils python-r1 |
32 |
+ |
33 |
+DEBIAN_PV="2.65" |
34 |
+ |
35 |
+DESCRIPTION="A python script that converts RSS/Atom newsfeeds to email" |
36 |
+HOMEPAGE="http://www.allthingsrss.com/rss2email" |
37 |
+SRC_URI="http://www.allthingsrss.com/${PN}/${P}.tar.gz |
38 |
+ mirror://debian/pool/main/r/${PN}/${PN}_${DEBIAN_PV}-1.diff.gz" |
39 |
+ |
40 |
+LICENSE="GPL-2" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~x86" |
43 |
+IUSE="" |
44 |
+ |
45 |
+DEPEND="dev-util/patchutils" |
46 |
+RDEPEND=">=dev-python/feedparser-5.0.1 |
47 |
+ >=dev-python/html2text-3.01" |
48 |
+ |
49 |
+src_unpack() { |
50 |
+ # Tarball has zero permissions inside |
51 |
+ tar xf "${DISTDIR}"/${P}.tar.gz || die |
52 |
+ chmod 0755 ${P} || die |
53 |
+ chmod 0644 ${P}/* || die |
54 |
+} |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ epatch "${FILESDIR}"/${PN}-2.69-config-location.patch |
58 |
+ |
59 |
+ # Extract man page from Debian patch |
60 |
+ zcat "${DISTDIR}"/${PN}_${DEBIAN_PV}-1.diff.gz \ |
61 |
+ | filterdiff -i '*/r2e.1' \ |
62 |
+ > "${S}"/r2e.1.patch || die |
63 |
+ EPATCH_OPTS="-p1" epatch r2e.1.patch |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ my_install() { |
68 |
+ insinto "$(python_get_sitedir)"/${PN} |
69 |
+ newins rss2email.py main.py || die |
70 |
+ } |
71 |
+ python_foreach_impl my_install |
72 |
+ |
73 |
+ insinto /etc/${PN} |
74 |
+ doins config.py.example || die |
75 |
+ |
76 |
+ dodoc CHANGELOG readme.html || die |
77 |
+ doman r2e.1 || die |
78 |
+ |
79 |
+ # Replace r2e wrapper |
80 |
+ cat <<-"EOF" >r2e |
81 |
+ #! /bin/sh |
82 |
+ SITE_PACKAGES=`python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"` |
83 |
+ CONF_DIR=${HOME}/.rss2email |
84 |
+ mkdir -p "${CONF_DIR}" |
85 |
+ exec python2 "${SITE_PACKAGES}"/rss2email/main.py "${CONF_DIR}"/feeds.dat $* |
86 |
+ EOF |
87 |
+ |
88 |
+ dobin r2e || die |
89 |
+} |