summaryrefslogtreecommitdiff
path: root/deskutils/gcalcli/Makefile
blob: 4c38668b6500b8e5e1f4510723900fbddb691917 (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
46
47
48
49
50
51
# Created by: ijliao
# $FreeBSD$

PORTNAME=	gcalcli
PORTVERSION=	3.2
DISTVERSIONPREFIX=	v
CATEGORIES=	deskutils

MAINTAINER=	ports@thelanman.net
COMMENT=	Google Calendar Command Line Interface

LICENSE=	MIT

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dateutil>=0:${PORTSDIR}/devel/py-dateutil \
		${PYTHON_SITELIBDIR}/gdata/__init__.py:${PORTSDIR}/devel/py-gdata \
		${PYTHON_SITELIBDIR}/gflags.py:${PORTSDIR}/devel/py-gflags \
		${PYTHON_SITELIBDIR}/apiclient/__init__.py:${PORTSDIR}/www/py-google-api-python-client \
		${PYTHON_SITELIBDIR}/httplib2/__init__.py:${PORTSDIR}/www/py-httplib2

USE_GITHUB=	yes
GH_ACCOUNT=	insanum

USES=		python

NO_BUILD=	yes
NO_ARCH=	yes

PORTDOCS=	README.md gcalcli_?.png

PLIST_FILES=	bin/gcalcli

OPTIONS_DEFINE=		DOCS FUZZYDATES ICS_VCAL SIMPLEJSON
OPTIONS_DEFAULT=	ICS_VCAL

ICS_VCAL_DESC=		enable importing of ics/vcal files
SIMPLEJSON_DESC=	use simplejson for url shortening
FUZZYDATES_DESC=	use parsedatetime for fuzzy date parsing

ICS_VCAL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}vobject>=0.4.8:${PORTSDIR}/deskutils/py-vobject
SIMPLEJSON_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}simplejson>=0:${PORTSDIR}/devel/py-simplejson
FUZZYDATES_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}parsedatetime>=0:${PORTSDIR}/devel/py-parsedatetime

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
	${MKDIR} ${STAGEDIR}/${DOCSDIR}
	(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>