Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2024 08:05:38 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 1252b6e917f6 - main - devel/py-cloc: New port
Message-ID:  <202410100805.49A85cGn047892@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1252b6e917f61545aa0cbd1ab8f04aa9402fb29e

commit 1252b6e917f61545aa0cbd1ab8f04aa9402fb29e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-10-08 16:11:47 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-10-10 08:05:05 +0000

    devel/py-cloc: New port
    
    Modern cli framework for simple and complex cli applications
    
    Command line framework for making simple and complex command line
    applications.
    
    - Easily create stand alone commands or nested groups of commands
    - Define and connect commands with class objects
    - Inherit and create viewsets of commands to be able to reuse large
      nested groups in other cli applications
    - Use mixin commands to quickly add pre defined commands to your cli
    - Groups of commands can be found from any class that has defined a
      cloc.core.BaseCmd
    
    WWW: https://github.com/tannerburns/cloc
    
    Sponsored by:   The FreeBSD Foundation
---
 devel/Makefile          |  1 +
 devel/py-cloc/Makefile  | 23 +++++++++++++++++++++++
 devel/py-cloc/distinfo  |  3 +++
 devel/py-cloc/pkg-descr | 10 ++++++++++
 4 files changed, 37 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 8ad77559d3cb..32d84858320d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4644,6 +4644,7 @@
     SUBDIR += py-clikit
     SUBDIR += py-clint
     SUBDIR += py-clldutils
+    SUBDIR += py-cloc
     SUBDIR += py-cloudpathlib
     SUBDIR += py-cloudpickle
     SUBDIR += py-cluster
diff --git a/devel/py-cloc/Makefile b/devel/py-cloc/Makefile
new file mode 100644
index 000000000000..d1bbf1abe33b
--- /dev/null
+++ b/devel/py-cloc/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	cloc
+DISTVERSION=	0.2.5
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	Modern cli framework for simple and complex cli applications
+WWW=		https://github.com/tannerburns/cloc
+
+LICENSE=	MIT
+# PYPI doesn't have a LICENSE file
+#LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}colored>=0:misc/py-colored@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-cloc/distinfo b/devel/py-cloc/distinfo
new file mode 100644
index 000000000000..c041c68807c4
--- /dev/null
+++ b/devel/py-cloc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1728402066
+SHA256 (cloc-0.2.5.tar.gz) = 469164d445169ef3635c5cbae21db2e6126ebc2d71f7151f482674414c0c3363
+SIZE (cloc-0.2.5.tar.gz) = 22941
diff --git a/devel/py-cloc/pkg-descr b/devel/py-cloc/pkg-descr
new file mode 100644
index 000000000000..48cd05885f74
--- /dev/null
+++ b/devel/py-cloc/pkg-descr
@@ -0,0 +1,10 @@
+Command line framework for making simple and complex command line
+applications.
+
+- Easily create stand alone commands or nested groups of commands
+- Define and connect commands with class objects
+- Inherit and create viewsets of commands to be able to reuse large
+  nested groups in other cli applications
+- Use mixin commands to quickly add pre defined commands to your cli
+- Groups of commands can be found from any class that has defined a
+  cloc.core.BaseCmd



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410100805.49A85cGn047892>