summaryrefslogtreecommitdiffstats
path: root/mail/offlineimap/Makefile
blob: 26dccb1247cb1da7bb7df3034ecfcd3c73474825 (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
# New ports collection makefile for: offlineimap
# Date created:		08 Aug 2002
# Whom:			nbm
#
# $FreeBSD$
#

PORTNAME=	offlineimap
PORTVERSION=	3.99.18
PORTREVISION=	1
CATEGORIES=	mail python
MASTER_SITES=	http://gopher.quux.org:70/devel/offlineimap/
DISTNAME=	${PORTNAME}_${PORTVERSION}

MAINTAINER=	sergei@kolobov.com
COMMENT=	Powerful IMAP/Maildir synchronization and reader support

RUN_DEPENDS=	${TKINTER}:${PORTSDIR}/x11-toolkits/py-tkinter

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
PKGMESSAGE=	${WRKDIR}/pkg-message

USE_PYTHON=	yes
USE_PYDISTUTILS=	yes
TKINTER=	${PYTHON_SITELIBDIR}/_tkinter.so

MAN1=		offlineimap.1
DOCS=		manual.html manual.pdf manual.ps manual.txt
EXAMPLES=	offlineimap.conf offlineimap.conf.minimal

post-install:
	${INSTALL_MAN} ${WRKSRC}/offlineimap.1 ${MANPREFIX}/man/man1/
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
	@${MKDIR} ${EXAMPLESDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
	@${SED} -e 's!%%EXAMPLESDIR%%!${EXAMPLESDIR}!' \
		${MASTERDIR}/pkg-message > ${PKGMESSAGE}
	@${CAT} ${PKGMESSAGE}

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