pkgsrc/mail/rss2email/Makefile
schmonz 022ebb7bf4 Update to 2.65. From the changelog:
* Fixed warnings caused by Python v2.6 (using hashlib, removing
    mimify, etc.)
* Deprecated QP_REQUIRED option as this is more than likely no
    longer needed and part of what triggered Python warnings
* Fixed unicode errors in certain post headers
* Attempted to incorporate Debian/Ubuntu patches into the mainstream
    release
* Support img type enclosures
* No file locking for SunOS
* Gracefully handle missing charsets
* Friendlier and more useful message if sendmail isn't installed
2009-04-07 04:41:18 +00:00

50 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.23 2009/04/07 04:41:18 schmonz Exp $
#
DISTNAME= rss2email-2.65
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}
EXTRACT_SUFX= .py
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://rss2email.infogami.com/
COMMENT= Get RSS feeds emailed to you
DEPENDS+= ${PYPKGPREFIX}-feedparser-[0-9]*:../../textproc/py-feedparser
DEPENDS+= ${PYPKGPREFIX}-html2text-[0-9]*:../../textproc/py-html2text
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
USE_TOOLS+= tr
NO_BUILD= yes
PYTHON_PATCH_SCRIPTS= *.py
SUBST_CLASSES+= bin
SUBST_STAGE.bin= do-configure
SUBST_FILES.bin= rss2email.py r2e
SUBST_SED.bin= -e 's|@LOCALBASE@|${LOCALBASE}|g'
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
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-extract:
tr -d '\r' < ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
> ${WRKSRC}/rss2email.py
cd ${FILESDIR} && cp config.py r2e r2e.1 ${WRKSRC}
do-install:
set -e; cd ${WRKSRC}; \
${INSTALL_SCRIPT_DIR} ${DESTDIR}${SHAREDIR}; \
${INSTALL_SCRIPT} rss2email.py ${DESTDIR}${SHAREDIR}; \
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}; \
${INSTALL_DATA} config.py ${DESTDIR}${EGDIR}; \
${INSTALL_MAN} r2e.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
${INSTALL_SCRIPT} r2e ${DESTDIR}${PREFIX}/bin
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"