1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/deskutils/gcalcli/Makefile
Kubilay Kocak 3cb0cb4e10 deskutils/gcalcli: Fix for oauth2client > 1.4.12
gcalcli requires a dependency on oauth2client <= 1.4.12 to work
correctly, as higher versions replaced the run() method with run_flow().

The version of oauth2client in ports is 2.2.0 at the time of writing.

Fixes for the issue [1][2][3] have been submitted upstream in multiple
cases, although upstream has closed them as duplicates of a refactor
issue [4] that is yet to be committed/resolved.

This commit commits the proposed change in issue #229 [2].

While I'm here:

* Explicitly specify (and limit) supported Python versions to -2.x
* Add python to CATEGORIES
* Group, re-order and sort USE{s}, NO_* and files/plist sections
* Capitalize OPTIONS descriptions

[1] https://github.com/insanum/gcalcli/pull/211
[2] https://github.com/insanum/gcalcli/issues/229
[3] https://github.com/insanum/gcalcli/issues/244
[4] https://github.com/insanum/gcalcli/issues/165

PR:		206045
Submitted by:	Lawrence Chen <beastie tardisi com>
Approved by:	portmgr (maintainer timeout, 6+ months)
MFH:		2016Q3
2016-07-30 10:51:46 +00:00

52 lines
1.4 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= gcalcli
PORTVERSION= 3.2
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= deskutils python
MAINTAINER= ports@thelanman.net
COMMENT= Google Calendar Command Line Interface
LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil \
${PYTHON_SITELIBDIR}/gdata/__init__.py:devel/py-gdata \
${PYTHON_SITELIBDIR}/gflags.py:devel/py-gflags \
${PYTHON_SITELIBDIR}/apiclient/__init__.py:www/py-google-api-python-client \
${PYTHON_SITELIBDIR}/httplib2/__init__.py:www/py-httplib2
USES= python:-2.7
USE_GITHUB= yes
GH_ACCOUNT= insanum
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:deskutils/py-vobject
SIMPLEJSON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}simplejson>=0:devel/py-simplejson
FUZZYDATES_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}parsedatetime>=0:devel/py-parsedatetime
NO_BUILD= yes
NO_ARCH= yes
PORTDOCS= README.md gcalcli_?.png
PLIST_FILES= bin/gcalcli
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>