pkgsrc/mail/rss2email/Makefile
wiz aa67e11089 Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.
2014-01-25 10:29:56 +00:00

42 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.36 2014/01/25 10:30:12 wiz Exp $
DISTNAME= v3.8
PKGNAME= rss2email-3.8
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}archive/
DIST_SUBDIR= rss2email
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= https://github.com/wking/rss2email/
COMMENT= Get RSS feeds emailed to you
LICENSE= gnu-gpl-v2
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
DEPENDS+= ${PYPKGPREFIX}-feedparser>=5.0.1:../../textproc/py-feedparser
DEPENDS+= ${PYPKGPREFIX}-html2text>=3.0.1:../../textproc/py-html2text
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
PYTHON_VERSIONS_INCOMPATIBLE= 26 27
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
REPLACE_PYTHON= test/test.py
SUBST_CLASSES+= bin
SUBST_STAGE.bin= do-configure
SUBST_FILES.bin= rss2email/main.py
SUBST_SED.bin= -e 's|@LOCALBASE@|${LOCALBASE}|g'
INSTALLATION_DIRS= ${PKGMANDIR}/man1
do-test:
cd ${WRKSRC} && env PYTHONPATH=.:${LOCALBASE}/share/html2text ./test/test.py
post-install:
set -e; cd ${WRKSRC}; \
${INSTALL_MAN} r2e.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"