summaryrefslogtreecommitdiffstats
path: root/mail/getmail/Makefile
blob: d8c7ca56cfc629e87b271c4ba71bea4af81b1ef8 (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
# New ports collection makefile for:   getmail
# Date created:        06 May 2001
# Whom:                Yukihiro Nakai <nakai@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	getmail
PORTVERSION=	2.3.3
CATEGORIES=	mail python
MASTER_SITES=	http://www.qcc.sk.ca/~charlesc/software/getmail-2.0/%SUBDIR%/
MASTER_SITE_SUBDIR=	. old-versions

MAINTAINER=	petef@FreeBSD.org

USE_PYTHON=	yes
NO_BUILD=	yes

post-patch:
	@${PERL} -pi -e 's!/usr/lib/getmail!${DATADIR}!; \
		s!`which python`!${PYTHON_CMD}!' ${WRKSRC}/getmail

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/getmail ${PREFIX}/bin
	@${MKDIR} ${DATADIR}
	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
	@${MKDIR} ${PREFIX}/share/examples/getmail
	${INSTALL_DATA} ${WRKSRC}/getmailrc-example \
		${PREFIX}/share/examples/getmail
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in CHANGELOG docs.txt faq.txt getmail.txt
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud