Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2024 09:34:10 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 938d535ecca2 - main - graphics/py-diplib: New port: Library and development environment for quantitative image analysis
Message-ID:  <202406230934.45N9YAwm030883@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

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

commit 938d535ecca26ebdf1f817b6239193658c63a24b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-06-23 09:33:13 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-06-23 09:33:52 +0000

    graphics/py-diplib: New port: Library and development environment for quantitative image analysis
---
 graphics/Makefile            |  1 +
 graphics/py-diplib/Makefile  | 37 +++++++++++++++++++++++++++++++++++++
 graphics/py-diplib/distinfo  |  3 +++
 graphics/py-diplib/pkg-descr | 17 +++++++++++++++++
 graphics/py-diplib/pkg-plist | 28 ++++++++++++++++++++++++++++
 5 files changed, 86 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index 2efe3a4b6b2f..e2a439e6e79c 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -885,6 +885,7 @@
     SUBDIR += py-colorz
     SUBDIR += py-colour
     SUBDIR += py-descartes
+    SUBDIR += py-diplib
     SUBDIR += py-django-easy-thumbnails
     SUBDIR += py-djvulibre
     SUBDIR += py-exifread
diff --git a/graphics/py-diplib/Makefile b/graphics/py-diplib/Makefile
new file mode 100644
index 000000000000..7dca63712ebe
--- /dev/null
+++ b/graphics/py-diplib/Makefile
@@ -0,0 +1,37 @@
+PORTNAME=	diplib
+DISTVERSION=	3.5.0
+CATEGORIES=	graphics python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Library and development environment for quantitative image analysis
+WWW=		https://diplib.org/
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/../LICENSE.txt
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}build>0:devel/py-build@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}installer>0:devel/py-installer@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+LIB_DEPENDS=	libDIP.so:graphics/diplib
+
+USES=		cmake compiler:c++14-lang python
+USE_PYTHON=	flavors
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	DIPlib
+
+WRKSRC_SUBDIR=	pydip
+
+ALL_TARGET=	bdist_wheel
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+	@cd ${INSTALL_WRKSRC} && \
+		${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${PYTHON_CMD} \
+			-m installer --destdir ${STAGEDIR} --prefix ${PREFIX} ${BUILD_WRKSRC}/staging/dist/${PORTNAME:C|[-_]+|_|g}-${DISTVERSION}*.whl
+	# remove the file conficting with the C++ diplib package
+	@${RM} ${STAGEDIR}${PREFIX}/bin/dipview
+
+.include <bsd.port.mk>
diff --git a/graphics/py-diplib/distinfo b/graphics/py-diplib/distinfo
new file mode 100644
index 000000000000..cddbda094a0b
--- /dev/null
+++ b/graphics/py-diplib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1718772390
+SHA256 (DIPlib-diplib-3.5.0_GH0.tar.gz) = e63adf91baf9f300e00d74bc595bbac0fc0a41892a939d0ea8933c72eff05bec
+SIZE (DIPlib-diplib-3.5.0_GH0.tar.gz) = 8766540
diff --git a/graphics/py-diplib/pkg-descr b/graphics/py-diplib/pkg-descr
new file mode 100644
index 000000000000..cd14cc4c8b3e
--- /dev/null
+++ b/graphics/py-diplib/pkg-descr
@@ -0,0 +1,17 @@
+The DIPlib project contains:
+* DIPlib, a C++ library for quantitative image analysis. It has been in
+  development at Delft University of Technology in The Netherlands since 1995.
+  The 3.0 release of DIPlib represented a complete rewrite in modern C++ of the
+  library infrastructure, with most of the image processing and analysis
+  algorithms ported from the previous version, and some of them improved
+  significantly.
+* DIPimage, a MATLAB toolbox for quantitative image analysis. It has been in
+  development at Delft University of Technology in The Netherlands since 1999.
+* PyDIP, Python bindings to DIPlib. This is currently a thin wrapper that
+  exposes the C++ functionality with little change.
+* DIPviewer, an interactive image display utility. It is usable from C++, Python
+  and MATLAB programs. Within DIPimage this is an optional alternative to the
+  default MATLAB-native interactive display utility.
+* DIPjavaio, an interface to OME Bio-Formats, a Java-based library that reads
+  hundreds of image file formats. This module is usable from C++ and Python
+  (DIPimage interfaces to Bio-Formats natively).
diff --git a/graphics/py-diplib/pkg-plist b/graphics/py-diplib/pkg-plist
new file mode 100644
index 000000000000..216b8ec8d1bc
--- /dev/null
+++ b/graphics/py-diplib/pkg-plist
@@ -0,0 +1,28 @@
+%%PYTHON_SITELIBDIR%%/diplib-3.5.0.dist-info/LICENSE.txt
+%%PYTHON_SITELIBDIR%%/diplib-3.5.0.dist-info/METADATA
+%%PYTHON_SITELIBDIR%%/diplib-3.5.0.dist-info/RECORD
+%%PYTHON_SITELIBDIR%%/diplib-3.5.0.dist-info/WHEEL
+%%PYTHON_SITELIBDIR%%/diplib-3.5.0.dist-info/entry_points.txt
+%%PYTHON_SITELIBDIR%%/diplib-3.5.0.dist-info/top_level.txt
+%%PYTHON_SITELIBDIR%%/diplib/PyDIP_bin%%PYTHON_EXT_SUFFIX%%.so
+%%PYTHON_SITELIBDIR%%/diplib/PyDIP_py.py
+%%PYTHON_SITELIBDIR%%/diplib/__init__.py
+%%PYTHON_SITELIBDIR%%/diplib/__main__.py
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/PyDIP_py%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/PyDIP_py%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/__main__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/__main__%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/dipview%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/dipview%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/javaio%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/javaio%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/loadjvm%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/loadjvm%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/viewer%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/diplib/__pycache__/viewer%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/diplib/dipview.py
+%%PYTHON_SITELIBDIR%%/diplib/javaio.py
+%%PYTHON_SITELIBDIR%%/diplib/loadjvm.py
+%%PYTHON_SITELIBDIR%%/diplib/viewer.py



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406230934.45N9YAwm030883>