git: 3c5671ce73ae - main - graphics/inkscape: fix spellchecking related depends (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Mon, 28 Nov 2022 11:03:05 UTC
The branch main has been updated by fluffy:

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

commit 3c5671ce73aea8479f77c03c20f218007a512242
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2022-11-28 10:59:43 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2022-11-28 10:59:43 +0000

    graphics/inkscape: fix spellchecking related depends (+)
    
    Inkscape does not use libgtkspell, libaspell or libenchant in any way,
    these dependencies were incorrect and need to be removed.
    It does optionally use libgspell, so add corresponding option and dependency [1]
    
    While here, add runntime dependency on py-cachecontrol, py-requests and py-filelock [2]
    
    PR:     267967 [1], 267754 [2]
---
 graphics/inkscape/Makefile | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/graphics/inkscape/Makefile b/graphics/inkscape/Makefile
index 45021a11809f..94a1dba20868 100644
--- a/graphics/inkscape/Makefile
+++ b/graphics/inkscape/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	inkscape
 DISTVERSION=	1.2.1
-PORTREVISION=	9
+PORTREVISION=	10
 CATEGORIES=	graphics gnome
 MASTER_SITES=	https://media.inkscape.org/dl/resources/file/
 
@@ -27,24 +27,23 @@ LIB_DEPENDS=	libboost_filesystem.so:devel/boost-libs \
 		libgc.so:devel/boehm-gc \
 		libgdl-3.so:x11-toolkits/gdl \
 		libgsl.so:math/gsl \
-		libgtkspell3-3.so:textproc/gtkspell3 \
 		liblcms2.so:graphics/lcms2 \
 		libfribidi.so:converters/fribidi \
-		libaspell.so:textproc/aspell \
 		libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2 \
 		libharfbuzz.so:print/harfbuzz \
 		libpotrace.so:graphics/libpotrace \
 		libpng.so:graphics/png \
 		libsoup-2.4.so:devel/libsoup \
-		libenchant-2.so:textproc/enchant2 \
 		libyaml.so:textproc/libyaml \
 		libdouble-conversion.so:devel/double-conversion \
 		lib2geom.so:math/lib2geom
 RUN_DEPENDS=	${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}appdirs>0:devel/py-appdirs@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}filelock>=3.7.1:sysutils/py-filelock@${PY_FLAVOR}
 		${PYTHON_PKGNAMEPREFIX}scour>0:textproc/py-scour@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}cachecontrol>0:www/py-cachecontrol@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}cssselect>0:www/py-cssselect@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
 		ps2pdf:print/ghostscript9-agpl-base \
@@ -66,8 +65,8 @@ WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}_${DATETAG}
 SHEBANG_FILES=	share/extensions/*.py share/extensions/genpofiles.sh \
 		share/templates/*.py man/fix-roff-punct
 
-OPTIONS_DEFINE=		OPENMP POPPLER SCRIBUS VISIO CDR DBUS WPG GVFS NLS
-OPTIONS_DEFAULT=	POPPLER VISIO CDR WPG GM
+OPTIONS_DEFINE=		OPENMP POPPLER SCRIBUS VISIO CDR DBUS WPG GVFS NLS GSPELL
+OPTIONS_DEFAULT=	POPPLER VISIO CDR WPG GM GSPELL
 OPTIONS_DEFAULT_amd64=	OPENMP
 OPTIONS_RADIO=		IMAGICK
 OPTIONS_RADIO_IMAGICK=	IMAGICK6 GM
@@ -114,6 +113,10 @@ GM_CMAKE_BOOL=		WITH_GRAPHICS_MAGICK
 NLS_CMAKE_BOOL=		WITH_NLS
 NLS_USES=		gettext
 
+GSPELL_DESC=		Support for spell checking through gspell
+GSPELL_CMAKE_BOOL= 	WITH_GSPELL
+GSPELL_LIB_DEPENDS=	libgspell-1.so:textproc/gspell
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|COMMAND python3|COMMAND ${PYTHON_VERSION}|g' \
 		${WRKSRC}/share/*/CMakeLists.txt