git: f4ffd8dd2094 - main - graphics/py-pillow: Add IMAGEQUANT option

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 30 Mar 2022 23:51:34 UTC
The branch main has been updated by sunpoet:

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

commit f4ffd8dd2094a2b39254854901869f1ba7b7ef78
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-30 23:46:35 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-30 23:46:35 +0000

    graphics/py-pillow: Add IMAGEQUANT option
    
    - Bump PORTREVISION for dependency change
---
 graphics/py-pillow/Makefile | 11 ++++++++---
 graphics/py-pillow/distinfo |  2 +-
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/graphics/py-pillow/Makefile b/graphics/py-pillow/Makefile
index b18fe60af054..752e0372dfe4 100644
--- a/graphics/py-pillow/Makefile
+++ b/graphics/py-pillow/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	pillow
 PORTVERSION=	9.0.1
+PORTREVISION=	1
 CATEGORIES=	graphics python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -17,13 +18,14 @@ LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR}
 
-USES=		cpe python:3.7+
+USES=		cpe localbase python:3.7+
 USE_PYTHON=	autoplist concurrent distutils
 
 CPE_VENDOR=	python
 
-OPTIONS_DEFINE=	FREETYPE JPEG JPEG2000 LCMS OLE PNG RAQM TIFF TKINTER WEBP XCB
-OPTIONS_DEFAULT=FREETYPE JPEG JPEG2000 LCMS OLE PNG RAQM TIFF TKINTER WEBP XCB
+OPTIONS_DEFINE=	FREETYPE IMAGEQUANT JPEG JPEG2000 LCMS OLE PNG RAQM TIFF TKINTER WEBP XCB
+OPTIONS_DEFAULT=FREETYPE IMAGEQUANT JPEG JPEG2000 LCMS OLE PNG RAQM TIFF TKINTER WEBP XCB
+IMAGEQUANT_DESC=	Image Quantization support
 LCMS_DESC=		Little Color Management System
 OLE_DESC=		Microsoft OLE2 file format support
 RAQM_DESC=		Complex text layout support
@@ -33,6 +35,9 @@ XCB_DESC=		X11 screengrab support
 FREETYPE_LIB_DEPENDS=	libfreetype.so:print/freetype2
 FREETYPE_VARS=		PYDISTUTILS_BUILDARGS+=--enable-freetype
 FREETYPE_VARS_OFF=	PYDISTUTILS_BUILDARGS+=--disable-freetype
+IMAGEQUANT_LIB_DEPENDS=	libimagequant.so:graphics/libimagequant
+IMAGEQUANT_VARS=	PYDISTUTILS_BUILDARGS+=--enable-imagequant
+IMAGEQUANT_VARS_OFF=	PYDISTUTILS_BUILDARGS+=--disable-imagequant
 JPEG_USES=		jpeg
 JPEG_VARS=		PYDISTUTILS_BUILDARGS+=--enable-jpeg
 JPEG_VARS_OFF=		PYDISTUTILS_BUILDARGS+=--disable-jpeg
diff --git a/graphics/py-pillow/distinfo b/graphics/py-pillow/distinfo
index 6ff8acda62dd..2ab14eefbda8 100644
--- a/graphics/py-pillow/distinfo
+++ b/graphics/py-pillow/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1648248942
+TIMESTAMP = 1648681332
 SHA256 (Pillow-9.0.1.tar.gz) = 6c8bc8238a7dfdaf7a75f5ec5a663f4173f8c367e5a39f87e720495e1eed75fa
 SIZE (Pillow-9.0.1.tar.gz) = 49514914