pkgsrc/mail/newspipe/Makefile
rillig c7ff05f63e all: replace SUBST_SED with the simpler SUBST_VARS
pkglint -Wall -r --only "substitution command" -F

With manual review and indentation fixes since pkglint doesn't get that
part correct in every case.
2019-05-23 19:22:54 +00:00

48 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2019/05/23 19:23:06 rillig Exp $
#
DISTNAME= newspipe.1.1.9
PKGNAME= ${DISTNAME:S/./-/}
PKGREVISION= 8
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
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
DEPENDS+= ${PYPKGPREFIX}-feedparser-[0-9]*:../../textproc/py-feedparser
DEPENDS+= ${PYPKGPREFIX}-html2text-[0-9]*:../../textproc/py-html2text
WRKSRC= ${WRKDIR}
NO_BUILD= yes
REPLACE_PYTHON= *.py
SUBST_CLASSES+= bin
SUBST_STAGE.bin= do-configure
SUBST_FILES.bin= newspipe.py newspipe
SUBST_VARS.bin= LOCALBASE
SUBST_VARS.bin+= PREFIX
SUBST_VARS.bin+= PYTHONBIN
INSTALLATION_DIRS= bin share/newspipe share/doc/newspipe
INSTALLATION_DIRS+= share/examples/newspipe
do-install:
cd ${WRKSRC}; \
${INSTALL_SCRIPT} newspipe ${DESTDIR}${PREFIX}/bin; \
for f in cache.py newspipe.py opml.py; do \
${INSTALL_SCRIPT} $${f} ${DESTDIR}${PREFIX}/share/newspipe; \
done; \
for f in manual.html README; do \
${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/share/doc/newspipe; \
done; \
for f in newspipe.ini test.opml; do \
${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/share/examples/newspipe; \
done
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"