git: 34aa8fda5b84 - main - misc/py-mmdet: New port: OpenMMLab: Detection Toolbox and Benchmark

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

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

commit 34aa8fda5b84d0ff3cbc2f194e32fcc91a86c560
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-12-27 19:25:29 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-12-27 19:26:01 +0000

    misc/py-mmdet: New port: OpenMMLab: Detection Toolbox and Benchmark
---
 misc/Makefile           |  1 +
 misc/py-mmdet/Makefile  | 32 ++++++++++++++++++++++++++++++++
 misc/py-mmdet/distinfo  |  3 +++
 misc/py-mmdet/pkg-descr |  7 +++++++
 4 files changed, 43 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 1bae4f8dc863..17a8da2b3138 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -435,6 +435,7 @@
     SUBDIR += py-log_symbols
     SUBDIR += py-mffpy
     SUBDIR += py-mmcv
+    SUBDIR += py-mmdet
     SUBDIR += py-mmengine
     SUBDIR += py-molequeue
     SUBDIR += py-mxnet
diff --git a/misc/py-mmdet/Makefile b/misc/py-mmdet/Makefile
new file mode 100644
index 000000000000..8ec5d1219e19
--- /dev/null
+++ b/misc/py-mmdet/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	mmdet
+#DISTVERSIONPREFIX=	v
+DISTVERSION=	3.2.0
+CATEGORIES=	misc # machine-learning
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	OpenMMLab: Detection Toolbox and Benchmark
+WWW=		https://mmdetection.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}pycocotools>0:devel/py-pycocotools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}shapely>0:devel/py-shapely@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}terminaltables>0:textproc/py-terminaltables@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tqdm>0:misc/py-tqdm@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist # pytest: many test dependencies are missing
+
+#USE_GITHUB=	yes
+#GH_ACCOUNT=	open-mmlab
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-mmdet/distinfo b/misc/py-mmdet/distinfo
new file mode 100644
index 000000000000..7ea001bc14b1
--- /dev/null
+++ b/misc/py-mmdet/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1703704237
+SHA256 (mmdet-3.2.0.tar.gz) = f71481d240cbba8bc6d91f3a195a6517b7559c491c334e57e9888cf99377db3d
+SIZE (mmdet-3.2.0.tar.gz) = 1177812
diff --git a/misc/py-mmdet/pkg-descr b/misc/py-mmdet/pkg-descr
new file mode 100644
index 000000000000..83e7b88a3803
--- /dev/null
+++ b/misc/py-mmdet/pkg-descr
@@ -0,0 +1,7 @@
+MMDetection is an open source object detection toolbox based on PyTorch.
+It is a part of the OpenMMLab project.
+
+Major features:
+* Modular Design
+* Support of multiple tasks out of box
+* High efficiency