summaryrefslogtreecommitdiff
path: root/mail/rss2email/Makefile
blob: 8ae9a05110a3a66e5b25154596324b8e9f59247f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $NetBSD: Makefile,v 1.32 2013/07/02 01:13:30 schmonz Exp $
#

R2EVER=			3.5
DISTNAME=		rss2email-${R2EVER}
CATEGORIES=		mail
MASTER_SITES=		-http://nodeload.github.com/wking/rss2email/tar.gz/v${R2EVER}

MAINTAINER=		schmonz@NetBSD.org
HOMEPAGE=		http://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

PYTHON_VERSIONS_INCLUDE_3X=	yes
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"