2013-09-20 21:59:12 +02:00
|
|
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
2007-09-08 05:15:52 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rss2email
|
2010-12-31 07:42:16 +01:00
|
|
|
PORTVERSION= 2.70
|
2007-09-08 05:15:52 +02:00
|
|
|
CATEGORIES= mail python
|
2010-10-15 10:46:05 +02:00
|
|
|
MASTER_SITES= http://www.allthingsrss.com/rss2email/
|
2007-09-08 05:15:52 +02:00
|
|
|
|
2009-02-17 03:56:31 +01:00
|
|
|
MAINTAINER= chifeng@gmail.com
|
2007-09-08 05:15:52 +02:00
|
|
|
COMMENT= Read newsfeeds in your email client
|
|
|
|
|
|
|
|
RUN_DEPENDS= py*-feedparser>=0:${PORTSDIR}/textproc/py-feedparser \
|
|
|
|
py*-html2text>=0:${PORTSDIR}/textproc/py-html2text
|
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
PLIST_FILES= bin/r2e %%DATADIR%%/${PORTNAME}.py
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
2010-12-31 07:42:16 +01:00
|
|
|
PORTEXAMPLES= config.py.example
|
2007-09-08 05:15:52 +02:00
|
|
|
|
2014-03-18 15:50:50 +01:00
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
|
2007-09-08 05:15:52 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|@PYTHONCMD@|${PYTHON_CMD}|;s|@DATADIR@|${DATADIR}|'\
|
|
|
|
${WRKSRC}/r2e
|
2009-10-21 12:35:54 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|\([^[:alnum:]]\)c.type\([^[:alnum:]]\)|\1c.get('type','')\2|"\
|
|
|
|
${WRKSRC}/rss2email.py
|
2007-09-08 05:15:52 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-03-18 15:50:50 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/r2e ${STAGEDIR}${PREFIX}/bin
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/config.py.example ${STAGEDIR}${EXAMPLESDIR}
|
2007-09-08 05:15:52 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|