git: b83bf6b6171c - main - graphics/py-openslide-python: New port: Python interface to OpenSlide library for reading virtual slide images
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Nov 2022 19:08:18 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b83bf6b6171c0083f646c6583489db8aa0a8ee4f
commit b83bf6b6171c0083f646c6583489db8aa0a8ee4f
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-11-18 15:56:11 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-11-18 19:08:14 +0000
graphics/py-openslide-python: New port: Python interface to OpenSlide library for reading virtual slide images
---
graphics/Makefile | 1 +
graphics/py-openslide-python/Makefile | 22 ++++++++++++++++++++++
graphics/py-openslide-python/distinfo | 3 +++
graphics/py-openslide-python/pkg-descr | 2 ++
4 files changed, 28 insertions(+)
diff --git a/graphics/Makefile b/graphics/Makefile
index f4519adf9ee2..f1ea55b13fbf 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -891,6 +891,7 @@
SUBDIR += py-opencolorio
SUBDIR += py-openimageio
SUBDIR += py-openshadinglanguage
+ SUBDIR += py-openslide-python
SUBDIR += py-optimize-images
SUBDIR += py-osmnet
SUBDIR += py-pandana
diff --git a/graphics/py-openslide-python/Makefile b/graphics/py-openslide-python/Makefile
new file mode 100644
index 000000000000..19e1b5a9e4c7
--- /dev/null
+++ b/graphics/py-openslide-python/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= openslide-python
+DISTVERSION= 1.2.0
+CATEGORIES= graphics
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Python interface to OpenSlide library for reading virtual slide images
+WWW= https://openslide.org/
+
+LICENSE= LGPL21
+
+RUN_DEPENDS= openslide>0:graphics/openslide \
+ ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR}
+
+USES= python:3.7+
+USE_PYTHON= distutils autoplist
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/openslide/_convert${PYTHON_EXT_SUFFIX}.so
+
+.include <bsd.port.mk>
diff --git a/graphics/py-openslide-python/distinfo b/graphics/py-openslide-python/distinfo
new file mode 100644
index 000000000000..03d365b363a4
--- /dev/null
+++ b/graphics/py-openslide-python/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1668796736
+SHA256 (openslide-python-1.2.0.tar.gz) = f484f833566dbe5788d03d6dbab6fafeadabefa9de8d497715527d2c0cbd986e
+SIZE (openslide-python-1.2.0.tar.gz) = 338720
diff --git a/graphics/py-openslide-python/pkg-descr b/graphics/py-openslide-python/pkg-descr
new file mode 100644
index 000000000000..664afa029e51
--- /dev/null
+++ b/graphics/py-openslide-python/pkg-descr
@@ -0,0 +1,2 @@
+OpenSlide is a C library that provides a simple interface to read whole-slide
+images (also known as virtual slides).