summaryrefslogtreecommitdiff
path: root/mail/newspipe
diff options
context:
space:
mode:
authorschmonz <schmonz>2005-12-03 06:34:01 +0000
committerschmonz <schmonz>2005-12-03 06:34:01 +0000
commite5bb862b1c385e5859c7f519628b39b9a2aa5102 (patch)
tree72f5e0b0f07859d43aa21ca54da4af66b56ab933 /mail/newspipe
parenteeb81288f885487634a5bac71de5f081e3083d7e (diff)
downloadpkgsrc-e5bb862b1c385e5859c7f519628b39b9a2aa5102.tar.gz
Initial import of newspipe, an RSS/Atom aggregator with a difference:
it allows you to keep track of your feeds through email. You create an OPML file listing your feeds and Newspipe will collect them, convert them to e-mail messages and send them to your mailbox. This means you can read, organize and archive news feeds using your current mail client (or even webmail), without needing to use a separate program. Newspipe can send you news items as plaintext or HTML mail, both as single items or grouped in a digest.
Diffstat (limited to 'mail/newspipe')
-rw-r--r--mail/newspipe/DESCR9
-rw-r--r--mail/newspipe/Makefile47
-rw-r--r--mail/newspipe/PLIST12
-rw-r--r--mail/newspipe/distinfo7
-rw-r--r--mail/newspipe/patches/patch-aa12
-rw-r--r--mail/newspipe/patches/patch-ab12
6 files changed, 99 insertions, 0 deletions
diff --git a/mail/newspipe/DESCR b/mail/newspipe/DESCR
new file mode 100644
index 00000000000..9daa081a2c6
--- /dev/null
+++ b/mail/newspipe/DESCR
@@ -0,0 +1,9 @@
+Newspipe is an RSS/Atom aggregator with a difference: it allows
+you to keep track of your feeds through email. You create an OPML
+file listing your feeds and Newspipe will collect them, convert
+them to e-mail messages and send them to your mailbox.
+
+This means you can read, organize and archive news feeds using your
+current mail client (or even webmail), without needing to use a
+separate program. Newspipe can send you news items as plaintext or
+HTML mail, both as single items or grouped in a digest.
diff --git a/mail/newspipe/Makefile b/mail/newspipe/Makefile
new file mode 100644
index 00000000000..60e3583b4f2
--- /dev/null
+++ b/mail/newspipe/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/12/03 06:34:01 schmonz Exp $
+#
+
+DISTNAME= newspipe.1.1.9
+PKGNAME= ${DISTNAME:S/./-/}
+CATEGORIES= mail
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=newspipe/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= http://newspipe.sourceforge.net/
+COMMENT= Read RSS/Atom feeds as email messages
+
+WRKSRC= ${WRKDIR}
+
+DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
+DEPENDS+= ${PYPKGPREFIX}-feedparser-[0-9]*:../../textproc/py-feedparser
+DEPENDS+= ${PYPKGPREFIX}-html2text-[0-9]*:../../textproc/py-html2text
+
+NO_BUILD= yes
+PYTHON_PATCH_SCRIPTS= *.py
+
+SUBST_CLASSES+= bin
+SUBST_STAGE.bin= do-configure
+SUBST_FILES.bin= newspipe.py newspipe
+SUBST_SED.bin= -e 's|@LOCALBASE@|${LOCALBASE}|g'
+SUBST_SED.bin+= -e 's|@PREFIX@|${PREFIX}|g'
+SUBST_SED.bin+= -e 's|@PYTHONBIN@|${PYTHONBIN}|g'
+
+INSTALLATION_DIRS= bin share/newspipe share/doc/newspipe
+INSTALLATION_DIRS+= share/examples/newspipe
+
+do-install:
+ cd ${WRKSRC}; \
+ ${INSTALL_SCRIPT} newspipe ${PREFIX}/bin; \
+ for f in cache.py newspipe.py opml.py; do \
+ ${INSTALL_SCRIPT} $${f} ${PREFIX}/share/newspipe; \
+ done; \
+ for f in manual.html readme; do \
+ ${INSTALL_DATA} $${f} ${PREFIX}/share/doc/newspipe; \
+ done; \
+ for f in newspipe.ini test.opml; do \
+ ${INSTALL_DATA} $${f} ${PREFIX}/share/examples/newspipe; \
+ done
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/newspipe/PLIST b/mail/newspipe/PLIST
new file mode 100644
index 00000000000..56dfbe2eca5
--- /dev/null
+++ b/mail/newspipe/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/12/03 06:34:01 schmonz Exp $
+bin/newspipe
+share/doc/newspipe/manual.html
+share/doc/newspipe/readme
+share/examples/newspipe/newspipe.ini
+share/examples/newspipe/test.opml
+share/newspipe/cache.py
+share/newspipe/newspipe.py
+share/newspipe/opml.py
+@dirrm share/newspipe
+@dirrm share/examples/newspipe
+@dirrm share/doc/newspipe
diff --git a/mail/newspipe/distinfo b/mail/newspipe/distinfo
new file mode 100644
index 00000000000..bedd4e166d5
--- /dev/null
+++ b/mail/newspipe/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/12/03 06:34:01 schmonz Exp $
+
+SHA1 (newspipe.1.1.9.zip) = 6adb2553a32c997f8d51495ef75659b81b08144e
+RMD160 (newspipe.1.1.9.zip) = d322545faead198dad908f675038558b133db0cf
+Size (newspipe.1.1.9.zip) = 76060 bytes
+SHA1 (patch-aa) = 4d1577f8f6376b1ef6f317348697680470795c6f
+SHA1 (patch-ab) = 69933506636914f28d0c2f9746862e8a7bec67c2
diff --git a/mail/newspipe/patches/patch-aa b/mail/newspipe/patches/patch-aa
new file mode 100644
index 00000000000..0f26991a810
--- /dev/null
+++ b/mail/newspipe/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/12/03 06:34:01 schmonz Exp $
+
+--- newspipe.py.orig 2005-07-17 21:23:28.000000000 -0400
++++ newspipe.py
+@@ -57,6 +57,7 @@ except ImportError:
+ import dummy_threading as _threading
+ has_threading = False
+
++sys.path.append("@LOCALBASE@/share/html2text")
+ has_html2text = True
+ try:
+ from html2text import *
diff --git a/mail/newspipe/patches/patch-ab b/mail/newspipe/patches/patch-ab
new file mode 100644
index 00000000000..81f41254e04
--- /dev/null
+++ b/mail/newspipe/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/12/03 06:34:01 schmonz Exp $
+
+--- newspipe.orig 2005-12-03 01:21:02.000000000 -0500
++++ newspipe
+@@ -0,0 +1,7 @@
++#!/bin/sh
++set -e
++if [ ! -d ~/.newspipe ]; then
++ mkdir ~/.newspipe
++fi
++cd ~/.newspipe
++exec @PYTHONBIN@ @PREFIX@/share/newspipe/newspipe.py $*