git: f0cba4d29aa9 - main - graphics/py-albucore: New port: High-performance image processing library

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 14 Jul 2024 22:29:49 UTC
The branch main has been updated by yuri:

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

commit f0cba4d29aa9dac621239ff8581fa8b340bf7f2e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-07-14 20:51:47 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-07-14 22:29:35 +0000

    graphics/py-albucore: New port: High-performance image processing library
---
 graphics/Makefile              |  1 +
 graphics/py-albucore/Makefile  | 29 +++++++++++++++++++++++++++++
 graphics/py-albucore/distinfo  |  3 +++
 graphics/py-albucore/pkg-descr |  5 +++++
 4 files changed, 38 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index 9a1bc4540a88..35da2bbcd9a9 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -865,6 +865,7 @@
     SUBDIR += py-PyOpenGL
     SUBDIR += py-PyOpenGL-accelerate
     SUBDIR += py-actdiag
+    SUBDIR += py-albucore
     SUBDIR += py-albumentations
     SUBDIR += py-altair
     SUBDIR += py-asciitree
diff --git a/graphics/py-albucore/Makefile b/graphics/py-albucore/Makefile
new file mode 100644
index 000000000000..bcd146e89040
--- /dev/null
+++ b/graphics/py-albucore/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	albucore
+DISTVERSION=	0.0.12
+CATEGORIES=	graphics python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	High-performance image processing library
+WWW=		https://github.com/albumentations-team/albucore
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYNUMPY} \
+		opencv>0:graphics/opencv \
+		${PYTHON_PKGNAMEPREFIX}tomli>=2.0.1:textproc/py-tomli@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.9.0:devel/py-typing-extensions@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-cov>=4.1.0:devel/py-pytest-cov@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-mock>=3.14.0:devel/py-pytest-mock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ruff>0:devel/py-ruff@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist pytest
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/graphics/py-albucore/distinfo b/graphics/py-albucore/distinfo
new file mode 100644
index 000000000000..801b2620f453
--- /dev/null
+++ b/graphics/py-albucore/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1720988947
+SHA256 (albucore-0.0.12.tar.gz) = f8b271f8130ef79434803de8fb58245ee8d6b6f846600471146558a98a18ae7d
+SIZE (albucore-0.0.12.tar.gz) = 17838
diff --git a/graphics/py-albucore/pkg-descr b/graphics/py-albucore/pkg-descr
new file mode 100644
index 000000000000..4b8fd8d6c94f
--- /dev/null
+++ b/graphics/py-albucore/pkg-descr
@@ -0,0 +1,5 @@
+Albucore is a high-performance image processing library designed to optimize
+operations on images using Python and OpenCV, building upon the foundations laid
+by the popular Albumentations library. It offers specialized optimizations for
+different image data types and aims to provide faster processing times through
+efficient algorithm implementations.