git: c1128a92b87e - main - misc/py-mmsegmentation: New port: OpenMMLab: Semantic Segmentation Toolbox and Benchmark

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 27 Dec 2023 19:40:54 UTC
The branch main has been updated by yuri:

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

commit c1128a92b87e7e69ec92458ef7944e50787825a8
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-12-27 19:40:24 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-12-27 19:40:52 +0000

    misc/py-mmsegmentation: New port: OpenMMLab: Semantic Segmentation Toolbox and Benchmark
---
 misc/Makefile                    |  1 +
 misc/py-mmsegmentation/Makefile  | 26 ++++++++++++++++++++++++++
 misc/py-mmsegmentation/distinfo  |  3 +++
 misc/py-mmsegmentation/pkg-descr |  6 ++++++
 4 files changed, 36 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 17a8da2b3138..af01e5ac4f58 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -437,6 +437,7 @@
     SUBDIR += py-mmcv
     SUBDIR += py-mmdet
     SUBDIR += py-mmengine
+    SUBDIR += py-mmsegmentation
     SUBDIR += py-molequeue
     SUBDIR += py-mxnet
     SUBDIR += py-npTDMS
diff --git a/misc/py-mmsegmentation/Makefile b/misc/py-mmsegmentation/Makefile
new file mode 100644
index 000000000000..d0f45546af7e
--- /dev/null
+++ b/misc/py-mmsegmentation/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	mmsegmentation
+#DISTVERSIONPREFIX=	v
+DISTVERSION=	1.2.2
+CATEGORIES=	misc # machine-learning
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	OpenMMLab: Semantic Segmentation Toolbox and Benchmark
+WWW=		https://mmsegmentation.readthedocs.io/en/latest/
+
+LICENSE=	APACHE20
+
+#BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \
+		${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}prettytable>=0:devel/py-prettytable@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scipy>=0:science/py-scipy@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist # pytest: many test dependencies are missing
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-mmsegmentation/distinfo b/misc/py-mmsegmentation/distinfo
new file mode 100644
index 000000000000..ef2ff4d02e56
--- /dev/null
+++ b/misc/py-mmsegmentation/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1703705645
+SHA256 (mmsegmentation-1.2.2.tar.gz) = 35dbd8089fd1c2baa467d3b7c2e1b197043f4f955ad5de8005170eee469102ec
+SIZE (mmsegmentation-1.2.2.tar.gz) = 1808245
diff --git a/misc/py-mmsegmentation/pkg-descr b/misc/py-mmsegmentation/pkg-descr
new file mode 100644
index 000000000000..78786e24db03
--- /dev/null
+++ b/misc/py-mmsegmentation/pkg-descr
@@ -0,0 +1,6 @@
+MMSegmentation is a toolbox that provides a framework for unified implementation
+and evaluation of semant ic segmentation methods, and contains high-quality
+implementations of popular semantic segmentation methods and datasets.
+
+MMSeg consists of 7 main parts including apis, structures, datasets, models,
+engine, evaluation and visualization.