aboutsummaryrefslogtreecommitdiffstats
path: root/mail/offlineimap/Makefile
blob: 2ef4a3a470e3f0705bb904168388ed8cc975c7f0 (plain) (blame)
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
# Created by: nbm
# $FreeBSD$

PORTNAME=   offlineimap
DISTVERSIONPREFIX=  v
DISTVERSION=    6.5.7
CATEGORIES= mail python

MAINTAINER= mp39590@gmail.com
COMMENT=    Powerful IMAP/Maildir synchronization and reader support

## GPLv2 or any later version (with an OpenSSL exception)
LICENSE=    GPLv2 GPLv3
LICENSE_COMB=   dual
LICENSE_FILE=   ${WRKSRC}/COPYING

## later versions have sqlite3 backend, which is recommended for local storages
## with large amount of emails
RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3

USE_GITHUB= yes
GH_ACCOUNT= OfflineIMAP

USES=       python:2.7
USE_PYTHON= autoplist distutils

OPTIONS_DEFINE= DOCS EXAMPLES

PORTDOCS=   *
PORTEXAMPLES=   offlineimap.conf offlineimap.conf.minimal

post-install-DOCS-on:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} '! -name Makefile'

post-install-EXAMPLES-on:
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/offlineimap.conf ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/offlineimap.conf.minimal ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>