git: 28504b62bfab - main - devel/oci-cli: New port for Oracle Cloud CLI

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Sat, 02 Apr 2022 19:30:40 UTC
The branch main has been updated by jrm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=28504b62bfab211394387d5c5e7ca2135a714a58

commit 28504b62bfab211394387d5c5e7ca2135a714a58
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2022-04-02 19:29:00 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2022-04-02 19:29:51 +0000

    devel/oci-cli: New port for Oracle Cloud CLI
    
    WWW: https://github.com/oracle/oci-cli/
    
    PR:             262997 (with modification)
    
    Sponsored by:   The FreeBSD Foundation
    Submitted by:   Alessandro Sagratini <ale_sagra@hotmail.com>
---
 devel/Makefile                     |  1 +
 devel/oci-cli/Makefile             | 36 ++++++++++++++++++++++++++++++++++++
 devel/oci-cli/distinfo             |  3 +++
 devel/oci-cli/files/patch-setup.py | 23 +++++++++++++++++++++++
 devel/oci-cli/pkg-descr            |  4 ++++
 5 files changed, 67 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 925b28374663..e77c4c5fddf2 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1663,6 +1663,7 @@
     SUBDIR += ocaml-uutf
     SUBDIR += ocaml-xstr
     SUBDIR += ocaml-xstrp4
+    SUBDIR += oci-cli
     SUBDIR += ocl-icd
     SUBDIR += oclgrind
     SUBDIR += ode
diff --git a/devel/oci-cli/Makefile b/devel/oci-cli/Makefile
new file mode 100644
index 000000000000..578d45a1e82d
--- /dev/null
+++ b/devel/oci-cli/Makefile
@@ -0,0 +1,36 @@
+PORTNAME=	oci-cli
+DISTVERSION=	3.7.0
+CATEGORIES=	devel
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	ale_sagra@hotmail.com
+COMMENT=	Command Line Interface for Oracle Cloud Infrastructure
+
+LICENSE=	APACHE20 UPL
+LICENSE_COMB=	dual
+LICENSE_GROUPS_UPL=	FSF GPL OSI
+LICENSE_NAME_UPL=	Universal Permissive License
+LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE.txt
+LICENSE_FILE_UPL=	${WRKSRC}/LICENSE.txt
+LICENSE_PERMS_UPL=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}arrow>=1.0.0:devel/py-arrow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}certifi>0:security/py-certifi@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}click7=7.1.2:devel/py-click7@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}cryptography>=3.2.1<=3.4.7:security/py-cryptography@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}dateutil>=2.5.3<3.0.0:devel/py-dateutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jmespath>=0.10.0:devel/py-jmespath@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}oci=2.62.0:devel/py-oci@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}openssl>=19.1.0:security/py-openssl@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytz>=2016.10:devel/py-pytz@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=1.15.0:devel/py-six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}terminaltables>=3.1.0:textproc/py-terminaltables@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}yaml>=5.4<6:devel/py-yaml@${PY_FLAVOR}
+
+USES=		python:3.6-3.9
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/oci-cli/distinfo b/devel/oci-cli/distinfo
new file mode 100644
index 000000000000..1b44410c38a5
--- /dev/null
+++ b/devel/oci-cli/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1648833280
+SHA256 (oci-cli-3.7.0.tar.gz) = b666ed9d239b0ef89619dfef575c992891f2b0f2b8bf45a179ba7b0a23c3a43a
+SIZE (oci-cli-3.7.0.tar.gz) = 9069925
diff --git a/devel/oci-cli/files/patch-setup.py b/devel/oci-cli/files/patch-setup.py
new file mode 100644
index 000000000000..329d8c4eebda
--- /dev/null
+++ b/devel/oci-cli/files/patch-setup.py
@@ -0,0 +1,23 @@
+--- setup.py.orig	2022-03-28 19:01:23 UTC
++++ setup.py
+@@ -30,16 +30,16 @@ with open_relative("README.rst") as f:
+ 
+ requires = [
+     'oci==2.62.0',
+-    'arrow>=1.0.0',
++    'arrow>>=1.0.0',
+     'certifi',
+     'click==7.1.2',
+     'cryptography>=3.2.1,<=3.4.7',
+-    'jmespath==0.10.0',
++    'jmespath>=0.10.0',
+     'python-dateutil>=2.5.3,<3.0.0',
+     'pytz>=2016.10',
+     'six>=1.15.0',
+-    'terminaltables==3.1.0',
+-    'pyOpenSSL==19.1.0',
++    'terminaltables>=3.1.0',
++    'pyOpenSSL>=19.1.0',
+     'PyYAML>=5.4,<6'
+ ]
+ 
diff --git a/devel/oci-cli/pkg-descr b/devel/oci-cli/pkg-descr
new file mode 100644
index 000000000000..2b685960ecb9
--- /dev/null
+++ b/devel/oci-cli/pkg-descr
@@ -0,0 +1,4 @@
+The OCI CLI enables you to imanage Oracle Cloud Infrastructure resources
+from the command line. All OCI services and regions are supported.
+
+WWW: https://github.com/oracle/oci-cli/