git: f07e3ff6f964 - main - net/liferea: Update to 1.14.6

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sat, 25 Jan 2025 14:01:54 UTC
The branch main has been updated by eduardo:

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

commit f07e3ff6f964c57906d99d4392f46c7052f1bae0
Author:     Fabian Keil <fk@fabiankeil.de>
AuthorDate: 2025-01-25 13:52:16 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2025-01-25 14:00:01 +0000

    net/liferea: Update to 1.14.6
    
    - Add LGPL3 to the list of licenses
    - Define LICENSE_FILE(s)
    - Remove unneeded GNU_CONFIGURE_MANPREFIX
    - Apply upstream patch to fix build with libxml2 2.12.0+
    
    ChangeLog:      https://github.com/lwindolf/liferea/releases/tag/v1.14.6
    PR:             280329
    Approved by:    maintainer timeout >5 months
---
 net/liferea/Makefile                 | 11 +++++++----
 net/liferea/distinfo                 |  6 +++---
 net/liferea/files/extra-patch-libxml | 28 ++++++++++++++++++++++++++++
 3 files changed, 38 insertions(+), 7 deletions(-)

diff --git a/net/liferea/Makefile b/net/liferea/Makefile
index 4ec85c01d8ef..98d17a97b9d0 100644
--- a/net/liferea/Makefile
+++ b/net/liferea/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	liferea
-DISTVERSION=	1.14.5
-PORTREVISION=	3
+DISTVERSION=	1.14.6
 CATEGORIES=	net gnome
 MASTER_SITES=	https://github.com/lwindolf/liferea/releases/download/v${DISTVERSION}/
 
@@ -8,7 +7,10 @@ MAINTAINER=	kwm@FreeBSD.org
 COMMENT=	Simple RSS/RDF feed reader
 WWW=		https://lzone.de/liferea/
 
-LICENSE=	GPLv2
+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 \
@@ -29,7 +31,6 @@ USE_GNOME=	cairo dconf:run gtk30 gdkpixbuf2 intltool introspection \
 GLIB_SCHEMAS=	net.sf.liferea.gschema.xml
 
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 CONFIGURE_ARGS=	--enable-introspection
 
 # Introspection starts the program, but it may hang or crash-abort
@@ -39,4 +40,6 @@ MAKE_ENV+=	WEBKIT_DISABLE_COMPOSITING_MODE=1
 
 INSTALL_TARGET=	install-strip
 
+EXTRA_PATCHES=  ${FILESDIR}/extra-patch-libxml:-p1
+
 .include <bsd.port.mk>
diff --git a/net/liferea/distinfo b/net/liferea/distinfo
index e8035144afb8..6f3db185d4fc 100644
--- a/net/liferea/distinfo
+++ b/net/liferea/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1682250795
-SHA256 (liferea-1.14.5.tar.bz2) = 2244e78d8f6b6e28f411a3554d61496a012d5fe1392fe1b475978ecfd8c61177
-SIZE (liferea-1.14.5.tar.bz2) = 1749703
+TIMESTAMP = 1720963009
+SHA256 (liferea-1.14.6.tar.bz2) = 36f28e51d26eebcbd3460c53eb5cb012855a5fc6cce6bca58103dfc06353cc72
+SIZE (liferea-1.14.6.tar.bz2) = 1750293
diff --git a/net/liferea/files/extra-patch-libxml b/net/liferea/files/extra-patch-libxml
new file mode 100644
index 000000000000..abe1fb137669
--- /dev/null
+++ b/net/liferea/files/extra-patch-libxml
@@ -0,0 +1,28 @@
+From be8ef494586d9ef73c04ec4ca058a9a158ae3562 Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyich@gmail.com>
+Date: Sun, 31 Dec 2023 22:26:31 +0000
+Subject: [PATCH] src/node_type.h: add `#include <libxml/tree.h>` for
+ `xmlNodePtr` type
+
+Without the change build fails on `libxml2-2.12.3` as:
+
+    ../../src/node_type.h:62:64: error: unknown type name 'xmlNodePtr'; did you mean 'nodePtr'?
+       62 |         void            (*export)               (nodePtr node, xmlNodePtr cur, gboolean trusted);
+          |                                                                ^~~~~~~~~~
+          |                                                                nodePtr
+---
+ src/node_type.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/node_type.h b/src/node_type.h
+index fcd3e7223..a41ff52fc 100644
+--- a/src/node_type.h
++++ b/src/node_type.h
+@@ -23,6 +23,7 @@
+ 
+ #include "node.h"
+ 
++#include <libxml/tree.h>
+ #include <libxml/xmlmemory.h>
+ #include <gtk/gtk.h>
+