From b5c8e7977a8950fe976559fbed28db9c0bcd3d6f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 19 Jul 2022 02:37:55 +0100 Subject: gentoo auto-resync : 19:07:2022 - 02:37:54 --- dev-libs/appstream-glib/Manifest | 3 + .../appstream-glib/appstream-glib-0.8.0.ebuild | 67 ++++++++++++++++++++++ .../appstream-glib-0.8.0-fix-as-self-test.patch | 34 +++++++++++ 3 files changed, 104 insertions(+) create mode 100644 dev-libs/appstream-glib/appstream-glib-0.8.0.ebuild create mode 100644 dev-libs/appstream-glib/files/appstream-glib-0.8.0-fix-as-self-test.patch (limited to 'dev-libs/appstream-glib') diff --git a/dev-libs/appstream-glib/Manifest b/dev-libs/appstream-glib/Manifest index ae410027a7ba..e4cda6e0d023 100644 --- a/dev-libs/appstream-glib/Manifest +++ b/dev-libs/appstream-glib/Manifest @@ -1,3 +1,6 @@ +AUX appstream-glib-0.8.0-fix-as-self-test.patch 1105 BLAKE2B 55871bd0e63caac85ab6c2ed40abe9412b47b84132c3235b8c80870299c7d1f120e8533ef048ccd117eeb95cab3dda5497c332d1b14008a68ee1c768cd7c3119 SHA512 aaf7f392c7ea3faa2bd1a9cddb0ec8964432ec35a360715cc6b931209a0fc0fe7b0da79aa969101243908fa513638a208039f888d667410b0c6bbf7c36416805 DIST appstream-glib-0.7.18.tar.xz 2309276 BLAKE2B 67f414ae45866cab314ed2b307f2045a2035c262810696246f5bdea2a0bac88d98b561f72a8e87608f90407ad6d577d720213461ecef09d277e919b5330c0bc2 SHA512 2a202eb25d823d524128a8ab164025b6579e069f8b62373cf5447d049a0e3764fca5bf1464296101a45870d1426b094493fc8ead07a6a4bcb514c0f1a91e8ff2 +DIST appstream-glib-0.8.0.tar.xz 2315988 BLAKE2B b0858a2dccc70c3eee32262bd83a73ad739d72ca049b23387fea012c68d8dcbaec28aeaa31f81b05dee12c60a5426bdbcf1f22f5a8edbb441c663882c47b1a22 SHA512 13aeb37b8e890691a14d20ed0a86a14ae7125a6e08e60adcefe58ce2f861cebf7f49a01d9d1c137205b923f3162b307fc2671d476b7aaa9eae5fc5234ea4c1da EBUILD appstream-glib-0.7.18-r1.ebuild 1651 BLAKE2B 321871842b6b26a0d05825c51d8e1b55577249e78f272c27b17af44431a45413fe659e73948ff260765d41750d6ebdfbc55c0078e8e194f1064e0e4b5e79afc9 SHA512 8fc7c9fb1b9073fe1b7340428c0d258f7d6ae6f2d87eff6b3201334e21aee4cbc60b3d3a61bf09d5f11386cc2d0f2743ba77f011a4612edef3c6043f3a893db0 +EBUILD appstream-glib-0.8.0.ebuild 1661 BLAKE2B ed20b7a3c50fa1bd95da73fbe5c844fbfd8cccff5d6573e4e9268ffa5941bdeb51e75365824839f1260da46f1353ea9384e07a126dbd162db088ca46b5058e30 SHA512 be2e2ce1a38904cdbae11eb893e85f40caa0c29c9f468c382946998e9f0e4af18dcd327b80cee17bad4481f73bd3bbff7585bcd9ecd76e11d164d9a0e9532e24 MISC metadata.xml 423 BLAKE2B f1fc786c21caf25b776ccfa366294cd7efe83b5f160517b80b020ae439265c92d5d2377438d8a5c2eb42498562964c1a194289561510075971a6921e87ed8e68 SHA512 d2be7970d5bb30d2de64d6a220be6aa1073c9dc692bb6ed48800ec5b509c2eb265b2dc4a0221dd880952d03fb418cf89ff026efa088ad38304dd6f2270ff8d8c diff --git a/dev-libs/appstream-glib/appstream-glib-0.8.0.ebuild b/dev-libs/appstream-glib/appstream-glib-0.8.0.ebuild new file mode 100644 index 000000000000..28cc5cc07b30 --- /dev/null +++ b/dev-libs/appstream-glib/appstream-glib-0.8.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit xdg meson + +DESCRIPTION="Provides GObjects and helper methods to read and write AppStream metadata" +HOMEPAGE="https://people.freedesktop.org/~hughsient/appstream-glib/ https://github.com/hughsie/appstream-glib" +SRC_URI="https://people.freedesktop.org/~hughsient/${PN}/releases/${P}.tar.xz" + +LICENSE="LGPL-2.1+" +SLOT="0/8" # soname version +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="gtk-doc fonts +introspection stemmer" + +RDEPEND=" + >=dev-libs/glib-2.58.0:2 + sys-apps/util-linux + app-arch/libarchive:= + >=net-misc/curl-7.56.0 + >=dev-libs/json-glib-1.1.2 + >=x11-libs/gdk-pixbuf-2.31.5:2[introspection?] + + fonts? ( + x11-libs/gtk+:3 + >=media-libs/freetype-2.4:2 + ) + >=media-libs/fontconfig-2.11:1.0 + dev-libs/libyaml + stemmer? ( dev-libs/snowball-stemmer:= ) + x11-libs/pango + introspection? ( >=dev-libs/gobject-introspection-1.54:= ) +" +DEPEND="${RDEPEND}" +# libxml2 required for glib-compile-resources +BDEPEND=" + dev-util/gperf + + dev-libs/libxml2:2 + app-text/docbook-xml-dtd:4.2 + dev-libs/libxslt + gtk-doc? ( + >=dev-util/gtk-doc-1.9 + app-text/docbook-xml-dtd:4.3 + ) + >=sys-devel/gettext-0.19.8 +" + +PATCHES=( + "${FILESDIR}"/${P}-fix-as-self-test.patch +) + +src_configure() { + local emesonargs=( + -Ddep11=true + -Dbuilder=true + -Drpm=false + -Dalpm=false + $(meson_use fonts) + $(meson_use stemmer) + -Dman=true + $(meson_use gtk-doc) + $(meson_use introspection) + ) + meson_src_configure +} diff --git a/dev-libs/appstream-glib/files/appstream-glib-0.8.0-fix-as-self-test.patch b/dev-libs/appstream-glib/files/appstream-glib-0.8.0-fix-as-self-test.patch new file mode 100644 index 000000000000..e302a04a9ce8 --- /dev/null +++ b/dev-libs/appstream-glib/files/appstream-glib-0.8.0-fix-as-self-test.patch @@ -0,0 +1,34 @@ +From 3870226a3585be4c31c1719248be0e17d789f3d7 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" +Date: Fri, 15 Jul 2022 20:33:50 +0200 +Subject: [PATCH] Properly initialize AsNodeToXmlHelper + +Fixes: https://github.com/hughsie/appstream-glib/issues/445 +--- + libappstream-glib/as-node.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libappstream-glib/as-node.c b/libappstream-glib/as-node.c +index 4d438f5..b6650e4 100644 +--- a/libappstream-glib/as-node.c ++++ b/libappstream-glib/as-node.c +@@ -826,7 +826,7 @@ as_node_from_xml_internal (const gchar *data, gssize data_sz, + AsNodeFromXmlFlags flags, + GError **error) + { +- AsNodeToXmlHelper helper; ++ AsNodeToXmlHelper helper = {0}; + AsNode *root = NULL; + gboolean ret; + g_autoptr(GError) error_local = NULL; +@@ -963,7 +963,7 @@ as_node_from_file (GFile *file, + GCancellable *cancellable, + GError **error) + { +- AsNodeToXmlHelper helper; ++ AsNodeToXmlHelper helper = {0}; + GError *error_local = NULL; + AsNode *root = NULL; + const gchar *content_type = NULL; +-- +2.35.1 -- cgit v1.2.3