git: 9b002e182ce9 - main - graphics/py-imageio: Update to 2.17.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 26 Apr 2022 15:05:24 UTC
The branch main has been updated by sunpoet:

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

commit 9b002e182ce9573dab66c6df6dc21087ff5e2658
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-26 14:53:47 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-26 15:01:27 +0000

    graphics/py-imageio: Update to 2.17.0
    
    - Add FFMPEG option
    
    Changes:        https://github.com/imageio/imageio/releases
---
 graphics/py-imageio/Makefile | 13 +++++++++----
 graphics/py-imageio/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/graphics/py-imageio/Makefile b/graphics/py-imageio/Makefile
index bee0f84557ca..94c3a5b8e13d 100644
--- a/graphics/py-imageio/Makefile
+++ b/graphics/py-imageio/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	imageio
-PORTVERSION=	2.16.2
+PORTVERSION=	2.17.0
 CATEGORIES=	graphics python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,9 +11,7 @@ LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libfreeimage.so:graphics/freeimage
-RUN_DEPENDS=	ffmpeg:multimedia/ffmpeg \
-		${PYTHON_PKGNAMEPREFIX}imageio-ffmpeg>=0:graphics/py-imageio-ffmpeg@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}numpy>=1.20.0,1:math/py-numpy@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pillow>=8.3.2:graphics/py-pillow@${PY_FLAVOR}
 
 USES=		python:3.7+
@@ -21,4 +19,11 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+OPTIONS_DEFINE=	FFMPEG
+OPTIONS_DEFAULT=FFMPEG
+FFMPEG_DESC=	Read/Write video using FFmpeg
+
+FFMPEG_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}imageio-ffmpeg>=0:graphics/py-imageio-ffmpeg@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR}
+
 .include <bsd.port.mk>
diff --git a/graphics/py-imageio/distinfo b/graphics/py-imageio/distinfo
index 85e05ad93f58..3f9e486f92e8 100644
--- a/graphics/py-imageio/distinfo
+++ b/graphics/py-imageio/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1650228796
-SHA256 (imageio-2.16.2.tar.gz) = 8fea761d51a53c150cabd82ed36011252c17580c752216b8222f078630dfb9ba
-SIZE (imageio-2.16.2.tar.gz) = 3407239
+TIMESTAMP = 1650970141
+SHA256 (imageio-2.17.0.tar.gz) = b21f009e52eb22b02b839f3bf2ae5374aaf0886317313c1358c6014e5383b539
+SIZE (imageio-2.17.0.tar.gz) = 3422328