mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-08 12:01:56 +00:00
graphics/py-imageio: Add RAWPY option
This commit is contained in:
parent
82da90813c
commit
0360e8e0d4
@ -33,12 +33,13 @@ USE_PYTHON= autoplist concurrent pep517 pytest
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
OPTIONS_DEFINE= FFMPEG FITS PILLOW_HEIF PYAV TIFFFILE
|
||||
OPTIONS_DEFINE= FFMPEG FITS PILLOW_HEIF PYAV RAWPY TIFFFILE
|
||||
OPTIONS_DEFAULT=FFMPEG
|
||||
FFMPEG_DESC= Read/Write video using FFmpeg
|
||||
FITS_DESC= Read FITS files
|
||||
PILLOW_HEIF_DESC= Read HEIF files
|
||||
PYAV_DESC= Read/Write video and image files
|
||||
RAWPY_DESC= Read/Write images via rawpy
|
||||
TIFFFILE_DESC= Read/Write TIFF files
|
||||
|
||||
FFMPEG_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}imageio-ffmpeg>=0:graphics/py-imageio-ffmpeg@${PY_FLAVOR} \
|
||||
@ -46,6 +47,8 @@ FFMPEG_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}imageio-ffmpeg>=0:graphics/py-imageio
|
||||
FITS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}astropy>=0,2:astro/py-astropy@${PY_FLAVOR}
|
||||
PILLOW_HEIF_RUN_DEPENDS=${PYTHON_PKGNAMEPREFIX}pillow-heif>=0:graphics/py-pillow-heif@${PY_FLAVOR}
|
||||
PYAV_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}av>=0:multimedia/py-av@${PY_FLAVOR}
|
||||
RAWPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}rawpy>=0:graphics/py-rawpy@${PY_FLAVOR}
|
||||
TIFFFILE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tifffile>=0:graphics/py-tifffile@${PY_FLAVOR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
11
graphics/py-imageio/files/patch-setup.py
Normal file
11
graphics/py-imageio/files/patch-setup.py
Normal file
@ -0,0 +1,11 @@
|
||||
--- setup.py.orig 2024-08-13 04:41:56 UTC
|
||||
+++ setup.py
|
||||
@@ -117,7 +117,7 @@ extras_require = {
|
||||
# TODO: move this to cpython_only_plugins when python 3.8 support is dropped
|
||||
"rawpy": [
|
||||
"rawpy",
|
||||
- "numpy>2",
|
||||
+ "numpy",
|
||||
], # rawpy doesn't support python 3.8 (due to numpy > 2 requirement)
|
||||
"pillow-heif": ["pillow-heif"], # pillow-heif doesn#t support py3.8 on MacOS ARM
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user