git: bb64b79239b6 - main - sysutils/py-tldr: Add new port

From: Gabriel M. Dutra <dutra_at_FreeBSD.org>
Date: Mon, 02 Sep 2024 07:58:31 UTC
The branch main has been updated by dutra:

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

commit bb64b79239b626fbe64d4f54af0f2bdebafeefa2
Author:     King John <jinking.this@gmail.com>
AuthorDate: 2024-09-02 07:53:04 +0000
Commit:     Gabriel M. Dutra <dutra@FreeBSD.org>
CommitDate: 2024-09-02 07:57:53 +0000

    sysutils/py-tldr: Add new port
    
    Command-line client for tldr pages
    
    PR:             281200
---
 sysutils/Makefile          |  1 +
 sysutils/py-tldr/Makefile  | 26 ++++++++++++++++++++++++++
 sysutils/py-tldr/distinfo  |  3 +++
 sysutils/py-tldr/pkg-descr |  1 +
 4 files changed, 31 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 6eb8aae4d502..8e4c03d8eb8c 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1169,6 +1169,7 @@
     SUBDIR += py-scarab
     SUBDIR += py-supervisor
     SUBDIR += py-tarsnapper
+    SUBDIR += py-tldr
     SUBDIR += py-tmuxp
     SUBDIR += py-upt
     SUBDIR += py-upt-cpan
diff --git a/sysutils/py-tldr/Makefile b/sysutils/py-tldr/Makefile
new file mode 100644
index 000000000000..d3024ab2f948
--- /dev/null
+++ b/sysutils/py-tldr/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	tldr
+PORTVERSION=	3.3.0
+CATEGORIES=	sysutils python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	jinking.this@gmail.com
+COMMENT=	Python command-line client for tldr pages
+WWW=		https://github.com/tldr-pages/tldr-python-client
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}termcolor>0:devel/py-termcolor@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}colorama>0:devel/py-colorama@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}shtab>0:devel/py-shtab@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist distutils flavors
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	tldr-pages
+GH_PROJECT=	tldr-python-client
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/sysutils/py-tldr/distinfo b/sysutils/py-tldr/distinfo
new file mode 100644
index 000000000000..47d0d6ce07a6
--- /dev/null
+++ b/sysutils/py-tldr/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1725242142
+SHA256 (tldr-pages-tldr-python-client-3.3.0_GH0.tar.gz) = a942af54514295845b99bbf43d48f499023849ad35d5ec11bb7c1665d3ca8d6e
+SIZE (tldr-pages-tldr-python-client-3.3.0_GH0.tar.gz) = 96931
diff --git a/sysutils/py-tldr/pkg-descr b/sysutils/py-tldr/pkg-descr
new file mode 100644
index 000000000000..14d38bb37c06
--- /dev/null
+++ b/sysutils/py-tldr/pkg-descr
@@ -0,0 +1 @@
+Collaborative cheatsheets for console commands.