Skip to content

Commit

Permalink
devel/oci-cli: New port for Oracle Cloud CLI
Browse files Browse the repository at this point in the history
WWW: https://github.com/oracle/oci-cli/

PR:		262997 (with modification)

Sponsored by:	The FreeBSD Foundation
Submitted by:	Alessandro Sagratini <ale_sagra@hotmail.com>
  • Loading branch information
Jehops committed Apr 2, 2022
1 parent de03d07 commit 28504b6
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1663,6 +1663,7 @@
SUBDIR += ocaml-uutf
SUBDIR += ocaml-xstr
SUBDIR += ocaml-xstrp4
SUBDIR += oci-cli
SUBDIR += ocl-icd
SUBDIR += oclgrind
SUBDIR += ode
Expand Down
36 changes: 36 additions & 0 deletions devel/oci-cli/Makefile
Original file line number Diff line number Diff line change
@@ -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>
3 changes: 3 additions & 0 deletions devel/oci-cli/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1648833280
SHA256 (oci-cli-3.7.0.tar.gz) = b666ed9d239b0ef89619dfef575c992891f2b0f2b8bf45a179ba7b0a23c3a43a
SIZE (oci-cli-3.7.0.tar.gz) = 9069925
23 changes: 23 additions & 0 deletions devel/oci-cli/files/patch-setup.py
Original file line number Diff line number Diff line change
@@ -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'
]

4 changes: 4 additions & 0 deletions devel/oci-cli/pkg-descr
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 28504b6

Please sign in to comment.