<pre style='margin:0'>
Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6a8b81124b6c748b60d4aff2ead2542262f6ad12">https://github.com/macports/macports-ports/commit/6a8b81124b6c748b60d4aff2ead2542262f6ad12</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 6a8b81124b6c748b60d4aff2ead2542262f6ad12
</span>Author: Kurt Hindenburg <khindenburg@macports.org>
AuthorDate: Sat Mar 25 19:16:29 2017 -0400

<span style='display:block; white-space:pre;color:#404040;'>    gcalcli: update to 3.4.0
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    add Debian patch to fix using oauth2client > 1.4.12
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    closes https://trac.macports.org/ticket/52173
</span>---
 office/gcalcli/Portfile                            | 11 +++++---
 .../gcalcli/files/patch-oauth2client-compat.diff   | 32 ++++++++++++++++++++++
 2 files changed, 39 insertions(+), 4 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 2804e4a..c2e0816 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,8 +4,7 @@ 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.2 v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup        insanum gcalcli 3.4.0 v
</span> categories          office python devel
 maintainers         nomaintainer
 supported_archs     noarch
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,8 +18,10 @@ long_description \
</span> license             MIT
 platforms           darwin
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums           rmd160  d6b1e71f1fe3179c06698842d12146e8f844af13 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    sha256  2a461caf9dec96fbf0fe7df2e560dbd677b0f81c5772e456f96db06e831b238e
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  4706d0b1c162f579dbbd0b611bdd1fee80310dfb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  f40d4572445cb0f310ddfdc89c700822487d61532fbe1a865ce851b83577f33d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles          patch-oauth2client-compat.diff
</span> 
 python.default_version  27
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,6 +29,8 @@ depends_lib         port:py${python.version}-dateutil \
</span>                     port:py${python.version}-gflags \
                     port:py${python.version}-google-api \
                     port:py${python.version}-httplib2 \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:py${python.version}-oauth2client \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:py${python.version}-parsedatetime \
</span>                     port:py${python.version}-vobject
 
 post-patch {
<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>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..7f7a8ad
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/office/gcalcli/files/patch-oauth2client-compat.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,32 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Description: Fix incompatibilities with python-oauth2client >= 2.x
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gcalcli        2015-09-14 01:26:55.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gcalcli        2016-03-25 05:59:33.777216098 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -194,7 +194,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     from apiclient.errors import HttpError
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     from oauth2client.file import Storage
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     from oauth2client.client import OAuth2WebServerFlow
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    from oauth2client.tools import run
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    from oauth2client.tools import run_flow
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    from oauth2client.tools import argparser
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ except ImportError as e:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     print "ERROR: Missing module - %s" % e.args[0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     sys.exit(1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -673,14 +674,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             credentials = storage.get()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             if credentials is None or credentials.invalid:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-                credentials = run(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++                args, unknown = argparser.parse_known_args(sys.argv)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++                credentials = run_flow(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                     OAuth2WebServerFlow(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                         client_id=self.client_id,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                         client_secret=self.client_secret,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                         scope=['https://www.googleapis.com/auth/calendar',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                                'https://www.googleapis.com/auth/urlshortener'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                         user_agent=__program__ + '/' + __version__),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-                    storage)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++                    storage, args)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             self.authHttp = credentials.authorize(httplib2.Http())
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span></pre><pre style='margin:0'>

</pre>