From f6f1d69a93a83e3ce1e16dc8f0eaae9a6fb9d42b Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Fri, 28 Feb 2020 19:21:32 +0000 Subject: [PATCH] Add py-cliff2 2.18.0 (copied from py-cliff) - Add PORTSCOUT --- devel/Makefile | 1 + devel/py-cliff2/Makefile | 45 +++++++++++++++++++++++++++++++++++++++ devel/py-cliff2/distinfo | 3 +++ devel/py-cliff2/pkg-descr | 5 +++++ 4 files changed, 54 insertions(+) create mode 100644 devel/py-cliff2/Makefile create mode 100644 devel/py-cliff2/distinfo create mode 100644 devel/py-cliff2/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index a5599b057a52..c843067615dc 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4224,6 +4224,7 @@ SUBDIR += py-click-threading SUBDIR += py-click6 SUBDIR += py-cliff + SUBDIR += py-cliff2 SUBDIR += py-cligj SUBDIR += py-clikit SUBDIR += py-clint diff --git a/devel/py-cliff2/Makefile b/devel/py-cliff2/Makefile new file mode 100644 index 000000000000..09aad6cf57ff --- /dev/null +++ b/devel/py-cliff2/Makefile @@ -0,0 +1,45 @@ +# Created by: Alexander Nusov +# $FreeBSD$ + +PORTNAME= cliff +PORTVERSION= 2.18.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= 2 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Command Line Interface Formulation Framework + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=2.0.0:devel/py-pbr@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=2.0.0:devel/py-pbr@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}prettytable>=0.7.2<0.8:devel/py-prettytable@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyparsing>=2.1.0:devel/py-pyparsing@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>=3.12:devel/py-yaml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}stevedore>=1.20.0:devel/py-stevedore@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +# cliff 3.0.0+ requires Python 3.6+ +PORTSCOUT= limit:^2\. + +.include + +.if ${PYTHON_REL} < 3000 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}unicodecsv>=0.8.0:devel/py-unicodecsv@${PY_FLAVOR} +.endif + +.if ${PYTHON_REL} < 3500 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cmd208>=0.8.0:devel/py-cmd208@${PY_FLAVOR} +.else +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cmd2>=0.8.0:devel/py-cmd2@${PY_FLAVOR} +.endif + +.include diff --git a/devel/py-cliff2/distinfo b/devel/py-cliff2/distinfo new file mode 100644 index 000000000000..a3c1d647bdab --- /dev/null +++ b/devel/py-cliff2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1578584013 +SHA256 (cliff-2.18.0.tar.gz) = 4893742290d4728324a164c4f4dfeafe5f7ec61a6b49c99d76cece98730667f2 +SIZE (cliff-2.18.0.tar.gz) = 77905 diff --git a/devel/py-cliff2/pkg-descr b/devel/py-cliff2/pkg-descr new file mode 100644 index 000000000000..3cda5816547f --- /dev/null +++ b/devel/py-cliff2/pkg-descr @@ -0,0 +1,5 @@ +cliff is a framework for building command line programs. It uses setuptools +entry points to provide subcommands, output formatters, and other extensions. + +WWW: https://docs.openstack.org/cliff/latest/ +WWW: https://github.com/openstack/cliff