diff --git a/textproc/sigil/Makefile b/textproc/sigil/Makefile index dd9332f4acaf..ff7942080170 100644 --- a/textproc/sigil/Makefile +++ b/textproc/sigil/Makefile @@ -1,36 +1,37 @@ PORTNAME= sigil DISTVERSION= 2.8.1 +PORTREVISION= 1 CATEGORIES= textproc MAINTAINER= jonc@chen.org.nz COMMENT= WYSIWYG ePub editor WWW= https://sigil-ebook.com/ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING.txt LIB_DEPENDS= libpcre2-16.so:devel/pcre2 \ 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 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 SHEBANG_FILES= src/Resource_Files/plugin_launchers/python/*.py \ src/Resource_Files/python3lib/*.py CMAKE_ARGS= -DUSE_SYSTEM_LIBS:BOOL=1 post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sigil/*.so .include diff --git a/textproc/sigil/files/patch-sigil-sh b/textproc/sigil/files/patch-sigil-sh new file mode 100644 index 000000000000..dcdaf0c0617f --- /dev/null +++ b/textproc/sigil/files/patch-sigil-sh @@ -0,0 +1,16 @@ + +Add workaround for: + https://github.com/Sigil-Ebook/Sigil/issues/874 + +--- src/Resource_Files/bash/sigil-sh_install.orig 2026-07-22 07:53:34.831031000 +1200 ++++ src/Resource_Files/bash/sigil-sh_install 2026-07-22 07:54:41.043039000 +1200 +@@ -24,6 +24,9 @@ + # export SIGIL_EXTRA_ROOT + #fi + ++# Workaround for crash-on-close ++export QT_QUICK_BACKEND=software ++ + export LD_LIBRARY_PATH + + exec ${CMAKE_INSTALL_FULL_LIBDIR}/sigil/sigil "$@"