git: 029625db0669 - main - devel/py-pprintpp: Add py-pprintpp 0.4.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Sep 2024 13:41:16 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=029625db0669b1275010bd646e4f04618a833954 commit 029625db0669b1275010bd646e4f04618a833954 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-09-30 12:43:25 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-09-30 13:36:21 +0000 devel/py-pprintpp: Add py-pprintpp 0.4.0 pprint++ is a drop-in replacement for pprint that's actually pretty. --- devel/Makefile | 1 + devel/py-pprintpp/Makefile | 22 ++++++++++++++++++++++ devel/py-pprintpp/distinfo | 3 +++ devel/py-pprintpp/files/patch-setup.py | 11 +++++++++++ devel/py-pprintpp/pkg-descr | 1 + 5 files changed, 38 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 0fdb045e19a5..54801feb46de 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5420,6 +5420,7 @@ SUBDIR += py-pox SUBDIR += py-poyo SUBDIR += py-ppft + SUBDIR += py-pprintpp SUBDIR += py-prance SUBDIR += py-pre-commit SUBDIR += py-pre-commit-hooks diff --git a/devel/py-pprintpp/Makefile b/devel/py-pprintpp/Makefile new file mode 100644 index 000000000000..10040b8ca8b5 --- /dev/null +++ b/devel/py-pprintpp/Makefile @@ -0,0 +1,22 @@ +PORTNAME= pprintpp +PORTVERSION= 0.4.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Drop-in replacement for pprint that's actually pretty +WWW= https://github.com/wolever/pprintpp + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-pprintpp/distinfo b/devel/py-pprintpp/distinfo new file mode 100644 index 000000000000..c0cf4d8cf162 --- /dev/null +++ b/devel/py-pprintpp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1727314490 +SHA256 (pprintpp-0.4.0.tar.gz) = ea826108e2c7f49dc6d66c752973c3fc9749142a798d6b254e1e301cfdbc6403 +SIZE (pprintpp-0.4.0.tar.gz) = 17995 diff --git a/devel/py-pprintpp/files/patch-setup.py b/devel/py-pprintpp/files/patch-setup.py new file mode 100644 index 000000000000..557b5fe3e6c3 --- /dev/null +++ b/devel/py-pprintpp/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2018-07-01 01:42:25 UTC ++++ setup.py +@@ -8,7 +8,7 @@ try: + os.chdir(os.path.dirname(sys.argv[0]) or ".") + + try: +- long_description = open("README.rst", "U").read() ++ long_description = open("README.rst", "r", encoding="UTF-8").read() + except IOError: + long_description = "See https://github.com/wolever/pprintpp" + diff --git a/devel/py-pprintpp/pkg-descr b/devel/py-pprintpp/pkg-descr new file mode 100644 index 000000000000..ef6f5f6659c4 --- /dev/null +++ b/devel/py-pprintpp/pkg-descr @@ -0,0 +1 @@ +pprint++ is a drop-in replacement for pprint that's actually pretty.