summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2022-10-23 18:05:43 +0200
committerPacho Ramos <pacho@gentoo.org>2022-10-23 18:16:42 +0200
commit4c1e7f4344ac80cff992e23cff13d791ca02991f (patch)
treec6898da5c0f2c203bdc5699b671bbe623fd415d9 /gnome-extra/gnome-firmware
parentx11-misc/virtualgl: drop 3.0-r1 (diff)
downloadgentoo-4c1e7f4344ac80cff992e23cff13d791ca02991f.tar.gz
gentoo-4c1e7f4344ac80cff992e23cff13d791ca02991f.tar.bz2
gentoo-4c1e7f4344ac80cff992e23cff13d791ca02991f.zip
gnome-extra/gnome-firmware: new package, add 43.0
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'gnome-extra/gnome-firmware')
-rw-r--r--gnome-extra/gnome-firmware/Manifest1
-rw-r--r--gnome-extra/gnome-firmware/files/gnome-firmware-43.0-build-failure.patch26
-rw-r--r--gnome-extra/gnome-firmware/gnome-firmware-43.0.ebuild49
-rw-r--r--gnome-extra/gnome-firmware/metadata.xml7
4 files changed, 83 insertions, 0 deletions
diff --git a/gnome-extra/gnome-firmware/Manifest b/gnome-extra/gnome-firmware/Manifest
new file mode 100644
index 000000000000..91e4973b183a
--- /dev/null
+++ b/gnome-extra/gnome-firmware/Manifest
@@ -0,0 +1 @@
+DIST gnome-firmware-43.0.tar.xz 261244 BLAKE2B 93eaf911d080f70d9f7de0467804751fe9f26fbe7d9aa0835360949bcc8c7ecb827ecc1a21c71392448b98b442db239ac85181bd1bfeedd896ff7357ebfee206 SHA512 8aa06de07e5fb40f15ee8c8a688552978dd183db8f783246094d5713c99d8b90aeb50212517a45e80e3152053fed864f99028f1f2b8535dc596c86a7d70c339a
diff --git a/gnome-extra/gnome-firmware/files/gnome-firmware-43.0-build-failure.patch b/gnome-extra/gnome-firmware/files/gnome-firmware-43.0-build-failure.patch
new file mode 100644
index 000000000000..2ea2b1938230
--- /dev/null
+++ b/gnome-extra/gnome-firmware/files/gnome-firmware-43.0-build-failure.patch
@@ -0,0 +1,26 @@
+From e8a5b2ec185d78c918305cd85962823c6b4ef363 Mon Sep 17 00:00:00 2001
+From: Richard Hughes <richard@hughsie.com>
+Date: Fri, 14 Oct 2022 15:15:23 +0100
+Subject: [PATCH] Fix compile failure with -Dsystemd=false
+
+Fixes https://gitlab.gnome.org/World/gnome-firmware/-/issues/47
+---
+ src/gfu-common.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/gfu-common.c b/src/gfu-common.c
+index dfb1d30..bf83778 100644
+--- a/src/gfu-common.c
++++ b/src/gfu-common.c
+@@ -234,7 +234,7 @@ gfu_common_system_shutdown(GError **error)
+ #else
+ g_set_error_literal(error,
+ FWUPD_ERROR,
+- FWUPD_ERROR_INVALID_ARGS,
++ FWUPD_ERROR_NOT_SUPPORTED,
+ "No supported backend compiled in to perform the operation.");
+ #endif
+ return val != NULL;
+--
+GitLab
+
diff --git a/gnome-extra/gnome-firmware/gnome-firmware-43.0.ebuild b/gnome-extra/gnome-firmware/gnome-firmware-43.0.ebuild
new file mode 100644
index 000000000000..ecfd51345cde
--- /dev/null
+++ b/gnome-extra/gnome-firmware/gnome-firmware-43.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson xdg
+
+DESCRIPTION="Install firmware on devices"
+HOMEPAGE="https://gitlab.gnome.org/World/gnome-firmware"
+SRC_URI="https://people.freedesktop.org/~hughsient/releases/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+man elogind systemd"
+
+RDEPEND="
+ >=gui-libs/gtk-4.2:4
+ dev-libs/glib:2
+ >=sys-apps/fwupd-1.7.5[elogind?,systemd?]
+ >=dev-libs/libxmlb-0.1.7:=
+ >=gui-libs/libadwaita-1.0.0:1
+ elogind? ( sys-auth/elogind )
+ systemd? ( sys-apps/systemd )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ sys-devel/gettext
+ virtual/pkgconfig
+ man? ( sys-apps/help2man )
+"
+
+DOCS=( README.md )
+
+PATCHES=(
+ # https://gitlab.gnome.org/World/gnome-firmware/-/issues/47
+ "${FILESDIR}/${P}-build-failure.patch"
+)
+
+src_configure() {
+ local emesonargs=(
+ -Dconsolekit=false
+ -Ddevel=false
+ $(meson_use elogind)
+ $(meson_use man)
+ $(meson_use systemd)
+ )
+ meson_src_configure
+}
diff --git a/gnome-extra/gnome-firmware/metadata.xml b/gnome-extra/gnome-firmware/metadata.xml
new file mode 100644
index 000000000000..572c7daf2ccf
--- /dev/null
+++ b/gnome-extra/gnome-firmware/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pacho@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>