<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a1721edc467d2e294bab401756950d5dd45886ca">https://github.com/macports/macports-ports/commit/a1721edc467d2e294bab401756950d5dd45886ca</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a1721edc467d2e294bab401756950d5dd45886ca
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Mon Jan 17 15:11:35 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> gcalcli: update to 4.3.0, use Python 3.9
</span>---
office/gcalcli/Portfile | 34 +++++++++++++---------
.../gcalcli/files/patch-oauth2client-compat.diff | 32 --------------------
2 files changed, 20 insertions(+), 46 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/office/gcalcli/Portfile b/office/gcalcli/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c2e0816c161..c60c4009ffa 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/office/gcalcli/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/office/gcalcli/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,9 +4,13 @@ PortSystem 1.0
</span> PortGroup python 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup insanum gcalcli 3.4.0 v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-categories office python devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup insanum gcalcli 4.3.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-prepend office
</span> maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span> supported_archs noarch
description Google Calendar Command Line Interface
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,26 +19,28 @@ long_description \
</span> from a command line. It is easy to get your agenda, search for events and \
quickly add new events. Additionally, gcalcli can be used as a reminder \
service to execute any application you want.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-license MIT
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 4706d0b1c162f579dbbd0b611bdd1fee80310dfb \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 f40d4572445cb0f310ddfdc89c700822487d61532fbe1a865ce851b83577f33d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 a2ded1eb584239cc0514199f312d836e67ecf135 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 597d96ee1c8b5f094cca75a059cb1a0056a612e734c32012ef0d41219ac3b0cd \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1702967
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-oauth2client-compat.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.default_version 39
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-python.default_version 27
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-setuptools
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:py${python.version}-dateutil \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-gflags \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:py${python.version}-dateutil \
</span> port:py${python.version}-google-api \
port:py${python.version}-httplib2 \
port:py${python.version}-oauth2client \
port:py${python.version}-parsedatetime \
port:py${python.version}-vobject
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|^#!/usr/bin/env python|#!${python.bin}|" ${worksrcpath}/gcalcli
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_test-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pytest
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.cmd py.test-${python.branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.args -o addopts=''
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.env PYTHONPATH=${worksrcpath}/build/lib
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/office/gcalcli/files/patch-oauth2client-compat.diff b/office/gcalcli/files/patch-oauth2client-compat.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 7f7a8ad442b..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/office/gcalcli/files/patch-oauth2client-compat.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,32 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Description: Fix incompatibilities with python-oauth2client >= 2.x
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- gcalcli 2015-09-14 01:26:55.000000000 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ gcalcli 2016-03-25 05:59:33.777216098 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -194,7 +194,8 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- from apiclient.errors import HttpError
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- from oauth2client.file import Storage
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- from oauth2client.client import OAuth2WebServerFlow
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- from oauth2client.tools import run
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ from oauth2client.tools import run_flow
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ from oauth2client.tools import argparser
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- except ImportError as e:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- print "ERROR: Missing module - %s" % e.args[0]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sys.exit(1)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -673,14 +674,15 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- credentials = storage.get()
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if credentials is None or credentials.invalid:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- credentials = run(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ args, unknown = argparser.parse_known_args(sys.argv)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ credentials = run_flow(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OAuth2WebServerFlow(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- client_id=self.client_id,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- client_secret=self.client_secret,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- scope=['https://www.googleapis.com/auth/calendar',
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'https://www.googleapis.com/auth/urlshortener'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- user_agent=__program__ + '/' + __version__),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- storage)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ storage, args)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- self.authHttp = credentials.authorize(httplib2.Http())
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span></pre><pre style='margin:0'>
</pre>