git: 6bbcddb3cde6 - main - devel/py-commoncode: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Jul 2025 15:27:23 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6bbcddb3cde6c9513acfc112cc49a8931f5dc5a7
commit 6bbcddb3cde6c9513acfc112cc49a8931f5dc5a7
Author: Tuukka Pasanen <tuukka.pasanen@ilmi.fi>
AuthorDate: 2025-05-06 08:26:04 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-07-16 14:53:20 +0000
devel/py-commoncode: New port
A library of common functions shared in many other AboutCode projects
WWW: https://github.com/aboutcode-org/commoncode
PR: 286665
Sponsored by: The FreeBSD Foundation
---
devel/Makefile | 1 +
devel/py-commoncode/Makefile | 38 ++++++++++++++++++++++++++++++++++++++
devel/py-commoncode/distinfo | 3 +++
devel/py-commoncode/pkg-descr | 1 +
4 files changed, 43 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index ff56c677d817..0d9a05b801ed 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4697,6 +4697,7 @@
SUBDIR += py-comm
SUBDIR += py-commandlines
SUBDIR += py-commentjson
+ SUBDIR += py-commoncode
SUBDIR += py-condense-json
SUBDIR += py-conditional
SUBDIR += py-confection
diff --git a/devel/py-commoncode/Makefile b/devel/py-commoncode/Makefile
new file mode 100644
index 000000000000..52ea50163887
--- /dev/null
+++ b/devel/py-commoncode/Makefile
@@ -0,0 +1,38 @@
+PORTNAME= commoncode
+DISTVERSION= 32.2.1
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= tuukka.pasanen@ilmi.fi
+COMMENT= Set of common utilities, originally split from ScanCode
+WWW= https://github.com/aboutcode-org/commoncode
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/apache-2.0.LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=25.0:devel/py-attrs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.13.0:www/py-beautifulsoup@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click>=2.8:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>2.7.0:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}saneyaml>0.5.2:devel/py-saneyaml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}text-unidecode>1.0:converters/py-text-unidecode@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517 pytest
+PYTEST_BROKEN_TESTS= test_parse_os_release test_is_readable_is_writeable_dir \
+ test_is_readable_is_writeable_file \
+ test_chmod_read_write_file \
+ test_chmod_read_write_non_recursively_on_dir \
+ test_chmod_read_write_recursively_on_dir \
+ test_copyfile_does_not_keep_permissions \
+ test_copytree_copies_unreadable_files \
+ test_copytree_does_not_keep_non_writable_permissions \
+ test_resource_iter_can_walk_unicode_path_with_zip
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-commoncode/distinfo b/devel/py-commoncode/distinfo
new file mode 100644
index 000000000000..210558a10e66
--- /dev/null
+++ b/devel/py-commoncode/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1746508932
+SHA256 (commoncode-32.2.1.tar.gz) = 4c5c37b39a77adecd67f7d53073c02d1d96283d31fd2bc2d67e22f320a381881
+SIZE (commoncode-32.2.1.tar.gz) = 1742208
diff --git a/devel/py-commoncode/pkg-descr b/devel/py-commoncode/pkg-descr
new file mode 100644
index 000000000000..a3ea79b76817
--- /dev/null
+++ b/devel/py-commoncode/pkg-descr
@@ -0,0 +1 @@
+Set of common utilities, originally split from ScanCode