From 126fddb802248d697c4ce09c3e95f2afdfdba607 Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Sun, 16 Mar 2014 17:45:47 +0000 Subject: [PATCH] - Update to 2.4.2 PR: ports/187619 Submitted by: Lawrence "The Dreamer" Chen --- deskutils/gcalcli/Makefile | 42 ++++++++++++++++++++++++++++---------- deskutils/gcalcli/distinfo | 4 ++-- 2 files changed, 33 insertions(+), 13 deletions(-) diff --git a/deskutils/gcalcli/Makefile b/deskutils/gcalcli/Makefile index 5a708574e1a7..d67685d2d656 100644 --- a/deskutils/gcalcli/Makefile +++ b/deskutils/gcalcli/Makefile @@ -2,30 +2,50 @@ # $FreeBSD$ PORTNAME= gcalcli -PORTVERSION= 2.1 -PORTREVISION= 1 +PORTVERSION= 2.4.2 CATEGORIES= deskutils -MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} -EXTRACT_SUFX= .tgz MAINTAINER= lwhsu@FreeBSD.org COMMENT= Google Calendar Command Line Interface +LICENSE= MIT + RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gdata/__init__.py:${PORTSDIR}/devel/py-gdata \ - ${PYTHON_PKGNAMEPREFIX}dateutil>=0:${PORTSDIR}/devel/py-dateutil \ - ${PYTHON_PKGNAMEPREFIX}vobject>=0.4.8:${PORTSDIR}/deskutils/py-vobject + ${PYTHON_PKGNAMEPREFIX}dateutil>=0:${PORTSDIR}/devel/py-dateutil + +USE_GITHUB= yes +GH_ACCOUNT= insanum +GH_PROJECT= gcalcli +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= a0fc61a USE_PYTHON= yes -NO_WRKSUBDIR= yes + NO_BUILD= yes +PORTDOCS= README.md gcalcli_?.png + PLIST_FILES= bin/gcalcli -NO_STAGE= yes -post-patch: - @${REINPLACE_CMD} -e "s,/usr/bin/python2,${SETENV} python," ${WRKSRC}/${PORTNAME} +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 + +.include do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}/${DOCSDIR} + (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) +.endif .include diff --git a/deskutils/gcalcli/distinfo b/deskutils/gcalcli/distinfo index 1c8b96dd8984..5c7ba38f12bf 100644 --- a/deskutils/gcalcli/distinfo +++ b/deskutils/gcalcli/distinfo @@ -1,2 +1,2 @@ -SHA256 (gcalcli-2.1.tgz) = 6007a7134f7ba4c21dd8f73916ae99b0601213b26f004034936d2bfb28788932 -SIZE (gcalcli-2.1.tgz) = 12099 +SHA256 (gcalcli-2.4.2.tar.gz) = f20237400567383a614424485998d7f315f9ff819c84fab5d7d97f5f22daf00e +SIZE (gcalcli-2.4.2.tar.gz) = 1667781