summaryrefslogtreecommitdiff
path: root/mail/rss2email/Makefile
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2004-06-27 23:00:34 +0000
committerschmonz <schmonz@pkgsrc.org>2004-06-27 23:00:34 +0000
commit82f39c2142a93c2b7f45daa935431ebd17f16af0 (patch)
treec016601a02f233fab12970f1c22f7ecc8ea7b5b6 /mail/rss2email/Makefile
parentf42539f89d89bbd2228cd5d8ca7e6cdec46dfbda (diff)
downloadpkgsrc-82f39c2142a93c2b7f45daa935431ebd17f16af0.tar.gz
Import rss2email 2.32.
rss2email is a simple Python script that lets you subscribe to a list of XML newsfeeds and get new items sent to you by email. The man page and sample config file are from the Debian package.
Diffstat (limited to 'mail/rss2email/Makefile')
-rw-r--r--mail/rss2email/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/mail/rss2email/Makefile b/mail/rss2email/Makefile
new file mode 100644
index 00000000000..00d23c9569e
--- /dev/null
+++ b/mail/rss2email/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/06/27 23:00:34 schmonz Exp $
+#
+
+DISTNAME= rss2email-2.32
+CATEGORIES= mail
+MASTER_SITES= ${HOMEPAGE}
+EXTRACT_SUFX= .py
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} r2e html2text-1.0.py
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= http://www.aaronsw.com/2002/rss2email/
+COMMENT= Get RSS feeds emailed to you
+
+DEPENDS+= ${PYPKGPREFIX}-feedparser-[0-9]*:../../textproc/py-feedparser
+
+SITES_html2text-1.0.py= http://www.aaronsw.com/2002/html2text/
+
+DIST_SUBDIR= ${PKGNAME_NOREV}
+
+NO_BUILD= # defined
+USE_BUILDLINK3= yes
+PYTHON_PATCH_SCRIPTS= *.py
+
+SUBST_CLASSES+= bin
+SUBST_STAGE.bin= do-configure
+SUBST_FILES.bin= r2e
+SUBST_SED.bin= -e 's|@PREFIX@|${PREFIX}|g'
+SUBST_SED.bin+= -e 's|@PYTHONBIN@|${PYTHONBIN}|g'
+
+SHAREDIR= ${PREFIX}/share/rss2email
+EGDIR= ${PREFIX}/share/examples/rss2email
+
+do-extract:
+ ${CP} -R ${DISTDIR}/${DIST_SUBDIR} ${WRKSRC}
+
+do-install:
+ cd ${WRKSRC} && \
+ ${INSTALL_SCRIPT_DIR} ${SHAREDIR}; \
+ ${INSTALL_SCRIPT} rss2email-2.32.py ${SHAREDIR}/rss2email.py; \
+ ${INSTALL_SCRIPT} html2text-1.0.py ${SHAREDIR}/html2text.py; \
+ ${INSTALL_DATA_DIR} ${EGDIR}; \
+ ${INSTALL_DATA} config.py ${EGDIR}; \
+ ${INSTALL_MAN} r2e.1 ${PREFIX}/man/man1; \
+ ${INSTALL_SCRIPT} r2e ${PREFIX}/bin
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"