git: 59610d0f78e8 - main - textproc/sigil: Update 2.4.2 => 2.5.0

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Sun, 25 May 2025 12:57:31 UTC
The branch main has been updated by vvd:

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

commit 59610d0f78e85971ffc24d7d47afb31596b1f9c5
Author:     Jonathan Chen <jonc@chen.org.nz>
AuthorDate: 2025-05-25 12:42:14 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-25 12:42:14 +0000

    textproc/sigil: Update 2.4.2 => 2.5.0
    
    Changelog:
    https://github.com/Sigil-Ebook/Sigil/releases/tag/2.5.0
    
    Improve port:
    - replace LIB_DEPENDS=libGLX.so:graphics/libglvnd with USES=gl and USE_GL=opengl
    - fix warning from poudriere - add USES=gl and USE_GL=opengl
    - replace LDFLAGS+=-L${LOCALBASE}/lib with USES=localbase:ldconfig
    
    PR:     287039
---
 textproc/sigil/Makefile  | 16 ++++------------
 textproc/sigil/distinfo  |  6 +++---
 textproc/sigil/pkg-plist |  4 ++++
 3 files changed, 11 insertions(+), 15 deletions(-)

diff --git a/textproc/sigil/Makefile b/textproc/sigil/Makefile
index e5d8f7cb65e1..535834268f4f 100644
--- a/textproc/sigil/Makefile
+++ b/textproc/sigil/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	sigil
-DISTVERSION=	2.4.2
+DISTVERSION=	2.5.0
 CATEGORIES=	textproc
 
 MAINTAINER=	jonc@chen.org.nz
@@ -10,21 +10,18 @@ LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING.txt
 
 LIB_DEPENDS=	libpcre2-16.so:devel/pcre2 \
-		libhunspell-1.7.so:textproc/hunspell \
-		libGLX.so:graphics/libglvnd
+		libhunspell-1.7.so:textproc/hunspell
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dulwich>=0.15.0:devel/py-dulwich@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR}
 
-USES=		cmake cpe desktop-file-utils \
+USES=		cmake cpe desktop-file-utils gl localbase:ldflags \
 		minizip pkgconfig python qt:6 shebangfix
 CPE_VENDOR=	${PORTNAME}-ebook
-
 USE_GITHUB=	yes
 GH_ACCOUNT=	Sigil-Ebook
 GH_PROJECT=	Sigil
-
+USE_GL=		opengl
 USE_LDCONFIG=	${PREFIX}/lib/sigil
-
 USE_QT=		base declarative positioning svg webchannel webengine \
 		tools:build imageformats:run
 
@@ -33,11 +30,6 @@ SHEBANG_FILES=	src/Resource_Files/plugin_launchers/python/*.py \
 
 CMAKE_ARGS=	-DUSE_SYSTEM_LIBS:BOOL=1
 
-# Upstream uses pkg-config output to pass libhunspell-1.7.so and
-# libpcre16.so to the linker. pkg-config output does not include full
-# paths, so add a workaround to keep the port linking for now.
-LDFLAGS+=	-L${LOCALBASE}/lib
-
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sigil/*.so
 
diff --git a/textproc/sigil/distinfo b/textproc/sigil/distinfo
index 05d03b58869a..f614966c49b8 100644
--- a/textproc/sigil/distinfo
+++ b/textproc/sigil/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1738530389
-SHA256 (Sigil-Ebook-Sigil-2.4.2_GH0.tar.gz) = 6113718b66f1756b13c25990930e7ec0d311ac5142c0b844cf73f6faf98375c5
-SIZE (Sigil-Ebook-Sigil-2.4.2_GH0.tar.gz) = 19144897
+TIMESTAMP = 1748076730
+SHA256 (Sigil-Ebook-Sigil-2.5.0_GH0.tar.gz) = f7e696400633c3f857096918225a11a3c7175fbe5e25124be76ec4f520823580
+SIZE (Sigil-Ebook-Sigil-2.5.0_GH0.tar.gz) = 19346255
diff --git a/textproc/sigil/pkg-plist b/textproc/sigil/pkg-plist
index e079b56eca59..d674559c1bb4 100644
--- a/textproc/sigil/pkg-plist
+++ b/textproc/sigil/pkg-plist
@@ -78,6 +78,9 @@ share/pixmaps/sigil.png
 %%DATADIR%%/python3lib/cssreformatter.py
 %%DATADIR%%/python3lib/diffstat.py
 %%DATADIR%%/python3lib/fix_opf_ids.py
+%%DATADIR%%/python3lib/fr_utils.py
+%%DATADIR%%/python3lib/functionrep.py
+%%DATADIR%%/python3lib/functionsearch.py
 %%DATADIR%%/python3lib/gencheck.py
 %%DATADIR%%/python3lib/metadata_utils.py
 %%DATADIR%%/python3lib/metaproc2.py
@@ -91,6 +94,7 @@ share/pixmaps/sigil.png
 %%DATADIR%%/python3lib/repomanager.py
 %%DATADIR%%/python3lib/sanitycheck.py
 %%DATADIR%%/python3lib/sdifflibparser.py
+%%DATADIR%%/python3lib/titlecase.py
 %%DATADIR%%/python3lib/unidecode/LICENSE
 %%DATADIR%%/python3lib/unidecode/README.rst
 %%DATADIR%%/python3lib/unidecode/__init__.py