aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesús Daniel Colmenares Oviedo <DtxdF@disroot.org>2023-04-28 11:09:46 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2023-05-11 23:23:31 +0000
commit3b5c528f893230154572321b0aba60e19db9035f (patch)
tree1533149f5f5e8cc0e48fadb00576797c7d5d5f23
parentd40f8cab97ebcb5687ddf5a7744581a999bbd23d (diff)
textproc/py-reindent: New port: Reindent python scripts
Change Python (.py) files to use 4-space indents and no hard tab characters. Also trim excess spaces and tabs from ends of lines, and remove empty lines at the end of files. Also ensure the last line ends with a newline. WWW: https://pypi.org/project/reindent/ PR: 269828
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-reindent/Makefile16
-rw-r--r--textproc/py-reindent/distinfo3
-rw-r--r--textproc/py-reindent/pkg-descr3
4 files changed, 23 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 7f5852bfed10..ddfe5822bc07 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1500,6 +1500,7 @@
SUBDIR += py-readchar
SUBDIR += py-recommonmark
SUBDIR += py-regex
+ SUBDIR += py-reindent
SUBDIR += py-reno
SUBDIR += py-restructuredtext-lint
SUBDIR += py-reverend
diff --git a/textproc/py-reindent/Makefile b/textproc/py-reindent/Makefile
new file mode 100644
index 000000000000..6d27619a49a5
--- /dev/null
+++ b/textproc/py-reindent/Makefile
@@ -0,0 +1,16 @@
+PORTNAME= reindent
+DISTVERSION= 3.5.1
+CATEGORIES= textproc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= DtxdF@disroot.org
+COMMENT= Reindent python scripts
+WWW= https://pypi.org/project/reindent/
+
+LICENSE= PD
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/textproc/py-reindent/distinfo b/textproc/py-reindent/distinfo
new file mode 100644
index 000000000000..78a0b9108924
--- /dev/null
+++ b/textproc/py-reindent/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1677367180
+SHA256 (reindent-3.5.1.tar.gz) = 59aeb8fbc16e45686f65df23b91896a17eb14ace7a7546860f50d2bb5ec4c9c0
+SIZE (reindent-3.5.1.tar.gz) = 5847
diff --git a/textproc/py-reindent/pkg-descr b/textproc/py-reindent/pkg-descr
new file mode 100644
index 000000000000..14b984c3aeb8
--- /dev/null
+++ b/textproc/py-reindent/pkg-descr
@@ -0,0 +1,3 @@
+Change Python (.py) files to use 4-space indents and no hard tab characters.
+Also trim excess spaces and tabs from ends of lines, and remove empty lines
+at the end of files. Also ensure the last line ends with a newline.