From owner-dev-commits-ports-all@freebsd.org Sun May 16 15:26:50 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DA34C6451BF; Sun, 16 May 2021 15:26:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FjmMZ5Nrsz4ZW6; Sun, 16 May 2021 15:26:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DDB201B238; Sun, 16 May 2021 15:26:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14GFQn3q066756; Sun, 16 May 2021 15:26:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14GFQnML066755; Sun, 16 May 2021 15:26:49 GMT (envelope-from git) Date: Sun, 16 May 2021 15:26:49 GMT Message-Id: <202105161526.14GFQnML066755@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 4e0b1f60aa3d - main - textproc/py-sphinx-inline-tabs: Complete the fix for Python 3.6 and 3.7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4e0b1f60aa3d89e25e532448e4ea538f3f23823a Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 May 2021 15:26:51 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=4e0b1f60aa3d89e25e532448e4ea538f3f23823a commit 4e0b1f60aa3d89e25e532448e4ea538f3f23823a Author: Po-Chuan Hsieh AuthorDate: 2021-05-16 15:14:34 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-05-16 15:24:10 +0000 textproc/py-sphinx-inline-tabs: Complete the fix for Python 3.6 and 3.7 - Bump PORTREVISION for dependency and package change Reported by: fluffy --- textproc/py-sphinx-inline-tabs/Makefile | 9 ++++++++- .../files/patch-src-sphinx_inline_tabs-_impl.py | 15 +++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/textproc/py-sphinx-inline-tabs/Makefile b/textproc/py-sphinx-inline-tabs/Makefile index 3b34d7575f03..a23c6d7a3aae 100644 --- a/textproc/py-sphinx-inline-tabs/Makefile +++ b/textproc/py-sphinx-inline-tabs/Makefile @@ -2,6 +2,7 @@ PORTNAME= sphinx-inline-tabs PORTVERSION= 2021.4.11b9 +PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -20,4 +21,10 @@ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes -.include +.include + +.if ${PYTHON_REL} < 3800 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} +.endif + +.include diff --git a/textproc/py-sphinx-inline-tabs/files/patch-src-sphinx_inline_tabs-_impl.py b/textproc/py-sphinx-inline-tabs/files/patch-src-sphinx_inline_tabs-_impl.py new file mode 100644 index 000000000000..b98a87c5bb3d --- /dev/null +++ b/textproc/py-sphinx-inline-tabs/files/patch-src-sphinx_inline_tabs-_impl.py @@ -0,0 +1,15 @@ +--- src/sphinx_inline_tabs/_impl.py.orig 2021-04-11 11:03:11 UTC ++++ src/sphinx_inline_tabs/_impl.py +@@ -1,7 +1,11 @@ + """The actual implementation.""" + + import itertools +-from typing import List, Literal ++from typing import List ++try: ++ from typing import Literal ++except ImportError: ++ from typing_extensions import Literal + + from docutils import nodes + from docutils.parsers.rst import directives