diff --git a/net/liferea/Makefile b/net/liferea/Makefile index d854f51534f1..525629fadda4 100644 --- a/net/liferea/Makefile +++ b/net/liferea/Makefile @@ -1,49 +1,48 @@ PORTNAME= liferea -DISTVERSION= 1.16.7 -PORTREVISION= 1 +DISTVERSION= 1.16.8 CATEGORIES= net gnome MASTER_SITES= https://github.com/lwindolf/liferea/releases/download/v${DISTVERSION}/ MAINTAINER= cmt@FreeBSD.org COMMENT= Simple RSS/RDF feed reader WWW= https://lzone.de/liferea/ LICENSE= GPLv2 LGPL3 LICENSE_COMB= multi LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING.LIB BUILD_DEPENDS= gsettings-desktop-schemas>=0:devel/gsettings-desktop-schemas LIB_DEPENDS= libfribidi.so:converters/fribidi \ libharfbuzz.so:print/harfbuzz \ libsoup-3.0.so:devel/libsoup3 \ libwebkit2gtk-4.1.so:www/webkit2-gtk@41 \ libpeas-2.so:devel/libpeas \ libjson-glib-1.0.so:devel/json-glib RUN_DEPENDS= gsettings-desktop-schemas>=0:devel/gsettings-desktop-schemas \ ${PYTHON_PKGNAMEPREFIX}libpeas>=0:devel/py-libpeas@${PY_FLAVOR} USES= compiler:c++11-lang cpe desktop-file-utils gettext \ gmake gnome libtool localbase \ pathfix pkgconfig python sqlite tar:bzip2 USE_GNOME= cairo dconf:run gtk30 gdkpixbuf intltool introspection \ libxslt libxml2 GLIB_SCHEMAS= net.sf.liferea.gschema.xml GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-introspection # Introspection starts the program, but it may hang or crash-abort # without an X server because the Webkit compositor tries to initialize # a graphics backend MAKE_ENV+= WEBKIT_DISABLE_COMPOSITING_MODE=1 INSTALL_TARGET= install-strip # stop-gap hack to accomodate glib < 2.86 and pygobject > 3.52 post-install: ${MKDIR} -p "${STAGEDIR}/${LOCALBASE}/lib/girepository-1.0/" ${LN} -sf "../${PORTNAME}/girepository-1.0/Liferea-3.0.typelib" "${STAGEDIR}/${LOCALBASE}/lib/girepository-1.0/Liferea-3.0.typelib" .include diff --git a/net/liferea/distinfo b/net/liferea/distinfo index c1f7a10c9443..f09257a2b251 100644 --- a/net/liferea/distinfo +++ b/net/liferea/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1766965224 -SHA256 (liferea-1.16.7.tar.bz2) = e7bd66c44aa73d5bee27fafc854e1baed2618953f16c138f5e158bdd75a65132 -SIZE (liferea-1.16.7.tar.bz2) = 1771078 +TIMESTAMP = 1777199483 +SHA256 (liferea-1.16.8.tar.bz2) = 0c22d6bada14a7bb633df0f0d53ffa976b739359ed0ce069c89c6d0ff0a5867b +SIZE (liferea-1.16.8.tar.bz2) = 1780929 diff --git a/net/liferea/files/patch-js_user.js b/net/liferea/files/patch-js_user.js new file mode 100644 index 000000000000..0d6d19dae736 --- /dev/null +++ b/net/liferea/files/patch-js_user.js @@ -0,0 +1,38 @@ +taken from: +commit 000a8b75f98f2cf444694a03ca24f9f1d27d037f +Author: Lars Windolf +Date: Sat Dec 27 23:56:49 2025 +0100 + + Support user.js to hook into rendering + +diff --git js/user.js js/user.js +new file mode 100644 +index 00000000..16af9bdc +--- /dev/null ++++ js/user.js +@@ -0,0 +1,24 @@ ++// This is a JS hook that allows you to hack the Liferea rendering ++// ++// It is invoked by the htmlview.js rendering scripting and provides you ++// with hooks one to modify the data before rendering and one to modify ++// or enhance the rendering after it is done. ++ ++// hooks to modify item info rendering ++ ++window.hookPreItemRendering = (data) => { ++ return data; ++}; ++window.hookPostItemRendering = () => { ++ // Modify DOM as you like ++}; ++ ++// hooks to modify node info rendering ++ ++window.hookPreNodeRendering = (data) => { ++ return data; ++ ++}; ++window.hookPostNodeRendering = () => { ++ // Modify DOM as you like ++}; +\ No newline at end of file diff --git a/net/liferea/files/patch-src_Makefile.in b/net/liferea/files/patch-src_Makefile.in new file mode 100644 index 000000000000..88e1318367f5 --- /dev/null +++ b/net/liferea/files/patch-src_Makefile.in @@ -0,0 +1,10 @@ +--- src/Makefile.in.orig 2026-04-26 13:20:43.007761000 +0200 ++++ src/Makefile.in 2026-04-26 13:21:19.183756000 +0200 +@@ -476,6 +476,7 @@ + $(top_srcdir)/js/htmlview.js \ + $(top_srcdir)/js/gopher-renderer.js \ + $(top_srcdir)/js/helpers/render.js \ ++ $(top_srcdir)/js/user.js \ + $(top_srcdir)/js/vendor/Readability.js \ + $(top_srcdir)/js/vendor/purify.min.js \ + $(top_srcdir)/js/vendor/handlebars.min.js \