git: 2136a0e91254 - main - devel/py-untokenize: Add py-untokenize 0.1.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 27 Nov 2023 18:08:24 UTC
The branch main has been updated by sunpoet:

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

commit 2136a0e91254e1c73c40483045df11a1a9fd936b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-27 17:39:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-27 18:07:45 +0000

    devel/py-untokenize: Add py-untokenize 0.1.1
    
    untokenize transforms tokens into source code. Unlike the standard library's
    tokenize.untokenize(), it preserves the original whitespace between tokens.
---
 devel/Makefile                |  1 +
 devel/py-untokenize/Makefile  | 18 ++++++++++++++++++
 devel/py-untokenize/distinfo  |  3 +++
 devel/py-untokenize/pkg-descr |  2 ++
 4 files changed, 24 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 268cc60777a9..322bf371d366 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5732,6 +5732,7 @@
     SUBDIR += py-unittest2
     SUBDIR += py-unittest2pytest
     SUBDIR += py-unpaddedbase64
+    SUBDIR += py-untokenize
     SUBDIR += py-update_checker
     SUBDIR += py-urlimport
     SUBDIR += py-urwid
diff --git a/devel/py-untokenize/Makefile b/devel/py-untokenize/Makefile
new file mode 100644
index 000000000000..3cbfa4c772bd
--- /dev/null
+++ b/devel/py-untokenize/Makefile
@@ -0,0 +1,18 @@
+PORTNAME=	untokenize
+PORTVERSION=	0.1.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Transform tokens into original source code
+WWW=		https://github.com/myint/untokenize
+
+LICENSE=	MIT
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-untokenize/distinfo b/devel/py-untokenize/distinfo
new file mode 100644
index 000000000000..646e2f19a4a9
--- /dev/null
+++ b/devel/py-untokenize/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1701083336
+SHA256 (untokenize-0.1.1.tar.gz) = 3865dbbbb8efb4bb5eaa72f1be7f3e0be00ea8b7f125c69cbd1f5fda926f37a2
+SIZE (untokenize-0.1.1.tar.gz) = 3099
diff --git a/devel/py-untokenize/pkg-descr b/devel/py-untokenize/pkg-descr
new file mode 100644
index 000000000000..7a7bc2c61962
--- /dev/null
+++ b/devel/py-untokenize/pkg-descr
@@ -0,0 +1,2 @@
+untokenize transforms tokens into source code. Unlike the standard library's
+tokenize.untokenize(), it preserves the original whitespace between tokens.