diff --git a/net/liferea/Makefile b/net/liferea/Makefile index e3d252548186..3e389b00e90e 100644 --- a/net/liferea/Makefile +++ b/net/liferea/Makefile @@ -1,43 +1,44 @@ PORTNAME= liferea DISTVERSION= 1.16.3 +PORTREVISION= 1 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 .include diff --git a/net/liferea/files/patch-src_itemset.c b/net/liferea/files/patch-src_itemset.c new file mode 100644 index 000000000000..30c00fd850de --- /dev/null +++ b/net/liferea/files/patch-src_itemset.c @@ -0,0 +1,22 @@ +diff --git src/itemset.c src/itemset.c +index 1b4de79e..9cd12fcc 100644 +--- src/itemset.c ++++ src/itemset.c +@@ -234,7 +234,7 @@ itemset_merge_item (itemSetPtr itemSet, GList *items, itemPtr item, gint maxChec + itemSet->ids = g_list_prepend (itemSet->ids, GUINT_TO_POINTER (item->id)); + + /* step 3: trigger async enrichment */ +- if (node->subscription && node->subscription->html5Extract) ++ if (node && node->subscription && node->subscription->html5Extract) + subscription_enrich_item (node->subscription, item); + + debug (DEBUG_UPDATE, "-> added \"%s\" (id=%d) to item set %p...", item_get_title (item), item->id, itemSet); +@@ -258,7 +258,7 @@ itemset_merge_item (itemSetPtr itemSet, GList *items, itemPtr item, gint maxChec + } + + /* step 5: Check item for new enclosures to download */ +- if (node->subscription && node->subscription->encAutoDownload) { ++ if (node && node->subscription && node->subscription->encAutoDownload) { + GSList *iter = metadata_list_get_values (item->metadata, "enclosure"); + while (iter) { + enclosurePtr enc = enclosure_from_string (iter->data);