summaryrefslogtreecommitdiff
path: root/mail/fetchmailconf/Makefile
blob: 63599abe7b3f2cbf50ca15bedfe7cde5b828e2f1 (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
PORTNAME=	fetchmailconf
PORTREVISION=	0
DISTNAME=	fetchmail-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
# NOTE: MASTER_SITES in ../fetchmail must NOT use the $PORTNAME variable,
# else _this_ port (fetchmailconf) becomes unfetchable

MAINTAINER=	chalpin@cs.wisc.edu
COMMENT=	Python-based GUI to configure fetchmail

LICENSE=	GPLv2+

# minimum required version 6.4.2 - not codified, on the assumption
# that fetchmail port updated at the same time
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}tkinter>=0:x11-toolkits/py-tkinter@${PY_FLAVOR} \
		fetchmail>=${PORTVERSION}:mail/fetchmail
BUILD_DEPENDS+=	${RUN_DEPENDS}

USES=		python shebangfix tar:xz
USE_PYTHON=	py3kplist

GNU_CONFIGURE=	yes
ALL_TARGET=	fetchmailconf
INSTALL_TARGET=	install-data-am install-nodist_binSCRIPTS install-man

FILESDIR=	${.CURDIR}/files
PATCHDIR=	${FILESDIR}
NO_ARCH=	yes

SUB_FILES=	fetchmailconf
SUB_LIST=	PYTHON_CMD=${PYTHON_CMD} \
		PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR}
PLIST=		${.CURDIR}/pkg-plist

post-install:
# first, run smoke tests - the version check makes sure we have all
# modules listed in the *_DEPENDS variables:
		${PYTHON_CMD} ${WRKSRC}/fetchmailconf.py -V
# then install:
		${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${STAGEDIR}${PREFIX}/bin
		${RM} ${STAGEDIR}${PREFIX}/man/man1/fetchmail.1*

MASTERDIR=	${.CURDIR}/../fetchmail

.include "${MASTERDIR}/Makefile"