git: b47799212b48 - main - textproc/py-sphinxcontrib-svg2pdfconverter: Update to 1.2.3

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Thu, 27 Feb 2025 19:25:03 UTC
The branch main has been updated by uzsolt:

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

commit b47799212b488e1ec07ad3cb9dc52dde471dc805
Author:     Alastair Hogge <agh@riseup.net>
AuthorDate: 2025-02-27 19:21:22 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2025-02-27 19:24:39 +0000

    textproc/py-sphinxcontrib-svg2pdfconverter: Update to 1.2.3
    
    Add Port OPTIONs for all three PDF renderers, making Cairo the default.
    
    PR:             276210
    Approved by:    submitter is maintainer
---
 textproc/py-sphinxcontrib-svg2pdfconverter/Makefile | 19 +++++++++++++++++--
 textproc/py-sphinxcontrib-svg2pdfconverter/distinfo |  6 +++---
 2 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/textproc/py-sphinxcontrib-svg2pdfconverter/Makefile b/textproc/py-sphinxcontrib-svg2pdfconverter/Makefile
index e1beaa3d3f71..fe5469119b63 100644
--- a/textproc/py-sphinxcontrib-svg2pdfconverter/Makefile
+++ b/textproc/py-sphinxcontrib-svg2pdfconverter/Makefile
@@ -1,8 +1,9 @@
 PORTNAME=	sphinxcontrib-svg2pdfconverter
-DISTVERSION=	1.2.2
+DISTVERSION=	1.2.3
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:C/-/_/}-${DISTVERSION}
 
 MAINTAINER=	agh@riseup.net
 COMMENT=	Sphinx extension for converting SVG to PDF
@@ -16,10 +17,24 @@ BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAV
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 
-USES=		gnome python
+USES=		python
 USE_GNOME=	librsvg2
 USE_PYTHON=	autoplist concurrent flavors pep517
 
 NO_ARCH=	yes
 
+OPTIONS_DEFAULT=	CAIROSVG
+OPTIONS_GROUP=		RENDERER
+OPTIONS_GROUP_RENDERER=	CAIROSVG INKSCAPE RSVG
+
+CAIROSVG_DESC=	Python Cairo SVG
+INKSCAPE_DESC=	Inkscape
+RENDERER_DESC=	SVG to PDF runtime renderer
+RSVG_DESC=	Rust librsvg2 (graphics/librsvg2)
+
+CAIROSVG_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cairosvg>0:graphics/py-cairosvg@${PY_FLAVOR}
+INKSCAPE_RUN_DEPENDS=	inkscape>0:graphics/inkscape
+RSVG_USES=		gnome
+RSVG_USE=		GNOME=librsvg2
+
 .include <bsd.port.mk>
diff --git a/textproc/py-sphinxcontrib-svg2pdfconverter/distinfo b/textproc/py-sphinxcontrib-svg2pdfconverter/distinfo
index 1389e1b582db..daa7c11b5b79 100644
--- a/textproc/py-sphinxcontrib-svg2pdfconverter/distinfo
+++ b/textproc/py-sphinxcontrib-svg2pdfconverter/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1690284076
-SHA256 (sphinxcontrib-svg2pdfconverter-1.2.2.tar.gz) = 80a55ca61f70eae93efc65f3814f2f177c86ba55934a9f6c5022f1778b62146b
-SIZE (sphinxcontrib-svg2pdfconverter-1.2.2.tar.gz) = 5516
+TIMESTAMP = 1739821315
+SHA256 (sphinxcontrib_svg2pdfconverter-1.2.3.tar.gz) = fb5d517b634c5629522004c59edce4d9050d89822408cab452c7d52fe5ae9824
+SIZE (sphinxcontrib_svg2pdfconverter-1.2.3.tar.gz) = 5774