summaryrefslogtreecommitdiff
path: root/mail/rss2email/Makefile
blob: 80871cdd67ab36cf41ac66df58e91d4a4886ec28 (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
42
43
44
45
46
47
48
49
50
# $NetBSD: Makefile,v 1.8 2005/08/03 17:19:26 schmonz Exp $
#

DISTNAME=		rss2email-${RVER}
CATEGORIES=		mail
MASTER_SITES=		${HOMEPAGE}
EXTRACT_SUFX=		.py
DISTFILES=		${DISTNAME}${EXTRACT_SUFX} r2e html2text-${HVER}.py

MAINTAINER=		schmonz@NetBSD.org
HOMEPAGE=		http://www.aaronsw.com/2002/rss2email/
COMMENT=		Get RSS feeds emailed to you

DEPENDS+=		${PYPKGPREFIX}-feedparser-[0-9]*:../../textproc/py-feedparser

RVER=			2.55
HVER=			2.23

SITES_html2text-${HVER}.py=	http://www.aaronsw.com/2002/html2text/

DIST_SUBDIR=		${PKGNAME_NOREV}

NO_BUILD=		yes
PYTHON_PATCH_SCRIPTS=	*.py

SUBST_CLASSES+=		bin
SUBST_STAGE.bin=	do-configure
SUBST_FILES.bin=	r2e
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 man/man1

do-extract:
	${CP} -R ${DISTDIR}/${DIST_SUBDIR} ${WRKSRC}

do-install:
	cd ${WRKSRC} &&							\
	${INSTALL_SCRIPT_DIR} ${SHAREDIR};				\
	${INSTALL_SCRIPT} rss2email-${RVER}.py ${SHAREDIR}/rss2email.py;\
	${INSTALL_SCRIPT} html2text-${HVER}.py ${SHAREDIR}/html2text.py;\
	${INSTALL_DATA_DIR} ${EGDIR};					\
	${INSTALL_DATA} config.py ${EGDIR};				\
	${INSTALL_MAN} r2e.1 ${PREFIX}/man/man1;			\
	${INSTALL_SCRIPT} r2e ${PREFIX}/bin

.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"