aboutsummaryrefslogtreecommitdiffstats
path: root/mail/offlineimap/Makefile
blob: bc464333db116f7145ee1cdd2bf750c825c1b7e5 (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
42
43
44
45
46
47
48
49
# New ports collection makefile for: offlineimap
# Date created:     08 Aug 2002
# Whom:         nbm
#
# $FreeBSD$
#

PORTNAME=   offlineimap
DISTVERSION=    6.3.3
PORTREVISION=   1
CATEGORIES= mail python
MASTER_SITES=   http://download.github.com/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= sergei
DISTNAME=   nicolas33-${PORTNAME}-v${DISTVERSION}-0-g3b09695

MAINTAINER= sergei@FreeBSD.org
COMMENT=    Powerful IMAP/Maildir synchronization and reader support

LICENSE=    GPLv2 GPLv3
LICENSE_COMB=   dual
LICENSE_FILE_GPLv2=${WRKSRC}/COPYING

WRKSRC=     ${WRKDIR}/nicolas33-${PORTNAME}-cf325d5
SUB_FILES=  pkg-message

USE_PYTHON= yes
USE_PYDISTUTILS=    yes

DOCS=       *.rst docs/*.rst
EXAMPLES=   offlineimap.conf offlineimap.conf.minimal

pre-fetch:
    # get github download ticket
    if [ ! -f ${DISTDIR}/${DISTFILES} ]; then \
        ${FETCH_BINARY} -s >/dev/null \
            http://github.com/nicolas33/${PORTNAME}/tarball/v${DISTVERSION}; \
    fi

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
    @${MKDIR} ${EXAMPLESDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>