git: 1bbf7597b204 - main - graphics/py-rawpy: Add py-rawpy 0.22.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 Sep 2024 06:19:34 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=1bbf7597b2045c454183ab555b4d3db601fe21d7 commit 1bbf7597b2045c454183ab555b4d3db601fe21d7 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-09-05 05:14:07 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-09-05 06:11:20 +0000 graphics/py-rawpy: Add py-rawpy 0.22.0 rawpy is an easy-to-use Python wrapper for the LibRaw library. It also contains some extra functionality for finding and repairing hot/dead pixels. --- graphics/Makefile | 1 + graphics/py-rawpy/Makefile | 29 +++++++++++++++++++++++++++++ graphics/py-rawpy/distinfo | 3 +++ graphics/py-rawpy/files/patch-setup.py | 9 +++++++++ graphics/py-rawpy/pkg-descr | 2 ++ 5 files changed, 44 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index e3e9ead3e7f4..82e21992a16e 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -988,6 +988,7 @@ SUBDIR += py-rasterio SUBDIR += py-rasterstats SUBDIR += py-rawkit + SUBDIR += py-rawpy SUBDIR += py-rich-pixels SUBDIR += py-s2 SUBDIR += py-scikit-image diff --git a/graphics/py-rawpy/Makefile b/graphics/py-rawpy/Makefile new file mode 100644 index 000000000000..a7f495ca8303 --- /dev/null +++ b/graphics/py-rawpy/Makefile @@ -0,0 +1,29 @@ +PORTNAME= rawpy +PORTVERSION= 0.22.0 +DISTVERSIONPREFIX= v +CATEGORIES= graphics python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= RAW image processing for Python, a wrapper for libraw +WWW= https://github.com/letmaik/rawpy + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +LIB_DEPENDS= libraw.so:graphics/libraw +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} + +USES= pkgconfig python +USE_PYTHON= autoplist concurrent cython pep517 + +USE_GITHUB= yes +GH_ACCOUNT= letmaik + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include <bsd.port.mk> diff --git a/graphics/py-rawpy/distinfo b/graphics/py-rawpy/distinfo new file mode 100644 index 000000000000..b1cd028c8953 --- /dev/null +++ b/graphics/py-rawpy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724084484 +SHA256 (letmaik-rawpy-v0.22.0_GH0.tar.gz) = f63e84e7f583714f87c0e59dc1b1609e459432bc9d46980d6dd8e6cd75adc591 +SIZE (letmaik-rawpy-v0.22.0_GH0.tar.gz) = 67450919 diff --git a/graphics/py-rawpy/files/patch-setup.py b/graphics/py-rawpy/files/patch-setup.py new file mode 100644 index 000000000000..f3927aab23c0 --- /dev/null +++ b/graphics/py-rawpy/files/patch-setup.py @@ -0,0 +1,9 @@ +--- setup.py.orig 2024-06-22 08:25:57 UTC ++++ setup.py +@@ -308,5 +308,5 @@ setup( + packages = find_packages(), + ext_modules = extensions, + package_data = package_data, +- install_requires=['numpy >= 2.0'] ++ install_requires=['numpy'] + ) diff --git a/graphics/py-rawpy/pkg-descr b/graphics/py-rawpy/pkg-descr new file mode 100644 index 000000000000..fcef79ea2ee7 --- /dev/null +++ b/graphics/py-rawpy/pkg-descr @@ -0,0 +1,2 @@ +rawpy is an easy-to-use Python wrapper for the LibRaw library. It also contains +some extra functionality for finding and repairing hot/dead pixels.