1 |
commit: 5a203e29191713520da3c1b5631dd3ef6d348da5 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 27 11:26:11 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 27 12:22:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a203e29 |
7 |
|
8 |
sys-apps/fwupd: add 1.8.5 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
sys-apps/fwupd/Manifest | 1 + |
13 |
sys-apps/fwupd/fwupd-1.8.5.ebuild | 206 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 207 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/fwupd/Manifest b/sys-apps/fwupd/Manifest |
17 |
index 3042715986de..9b22d6ecb853 100644 |
18 |
--- a/sys-apps/fwupd/Manifest |
19 |
+++ b/sys-apps/fwupd/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST fwupd-1.8.3.tar.gz 4267315 BLAKE2B 35e5855ea0d314fa5b1cc33ed4efa71e54c35b57c742748a5d6c7f4c1f88bfd9c2e5a84f2af72f6e5e63ddfc4f6521312fb7b1446922c76917f9abdd4d90e618 SHA512 271a1c2547f35322a7a7d83adc84d729ba73d810f6ac526d1c6aa2a9774dea1edc986b7d62481ebb70d43653577ced19f13f695dedf4012c82d814da70cb83f4 |
22 |
DIST fwupd-1.8.4.tar.xz 3269648 BLAKE2B 20857c5de6194a561c587ace0463d94440d25256a04cce51b77f3dcffde9b0f08a03a03e1d0dbb5f15016169f9a31e290609b3fc3f68b40b932c77335f05ec6f SHA512 569d0cb81f9a29259d0a7ae7100ca1063d20557b56903f80c1466667baf40a74d677f48159e5bd53ab6b33de8ce7185bf279b6dbcf6edfee744c1d4965c5db8f |
23 |
+DIST fwupd-1.8.5.tar.xz 3289548 BLAKE2B d82845ad4a6faaee966d43b8d9d5be0d4522ac6f2455ac8ef9d9c90dd0141a4feb7dd28f5c79526a49fd2ac4b785f92328a913a0fd13073fa2357aa996dd0700 SHA512 96856a56cb10b789bbbb82a33b702473cf1bdc32a9fddca6e48313ba3fefbe2f63a12a7290e3b4bd11939844f6989a0e15e96a4c2911cb900cd9e8d9c6c13f15 |
24 |
|
25 |
diff --git a/sys-apps/fwupd/fwupd-1.8.5.ebuild b/sys-apps/fwupd/fwupd-1.8.5.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..4c8db080c024 |
28 |
--- /dev/null |
29 |
+++ b/sys-apps/fwupd/fwupd-1.8.5.ebuild |
30 |
@@ -0,0 +1,206 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..11} ) |
37 |
+ |
38 |
+inherit linux-info meson python-single-r1 vala udev xdg |
39 |
+ |
40 |
+DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable" |
41 |
+HOMEPAGE="https://fwupd.org" |
42 |
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz" |
43 |
+ |
44 |
+LICENSE="LGPL-2.1+" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" |
47 |
+IUSE="amt archive bash-completion bluetooth cbor dell elogind fastboot flashrom gnutls gtk-doc +gusb introspection logitech lzma +man minimal modemmanager nvme policykit spi +sqlite synaptics systemd test tpm uefi" |
48 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
49 |
+ ^^ ( elogind minimal systemd ) |
50 |
+ dell? ( uefi ) |
51 |
+ fastboot? ( gusb ) |
52 |
+ logitech? ( gusb ) |
53 |
+ minimal? ( !introspection ) |
54 |
+ modemmanager? ( gusb ) |
55 |
+ spi? ( lzma ) |
56 |
+ synaptics? ( gnutls ) |
57 |
+ test? ( gusb ) |
58 |
+ uefi? ( gnutls ) |
59 |
+" |
60 |
+RESTRICT="!test? ( test )" |
61 |
+ |
62 |
+BDEPEND="$(vala_depend) |
63 |
+ >=dev-util/meson-0.60.0 |
64 |
+ virtual/pkgconfig |
65 |
+ gtk-doc? ( |
66 |
+ $(python_gen_cond_dep ' |
67 |
+ >=dev-python/markdown-3.2[${PYTHON_USEDEP}] |
68 |
+ ') |
69 |
+ >=dev-util/gi-docgen-2021.1 |
70 |
+ ) |
71 |
+ bash-completion? ( >=app-shells/bash-completion-2.0 ) |
72 |
+ introspection? ( dev-libs/gobject-introspection ) |
73 |
+ man? ( |
74 |
+ app-text/docbook-sgml-utils |
75 |
+ sys-apps/help2man |
76 |
+ ) |
77 |
+ test? ( |
78 |
+ dev-util/umockdev |
79 |
+ net-libs/gnutls[tools] |
80 |
+ ) |
81 |
+" |
82 |
+COMMON_DEPEND="${PYTHON_DEPS} |
83 |
+ >=app-arch/gcab-1.0 |
84 |
+ app-arch/xz-utils |
85 |
+ >=dev-libs/glib-2.58:2 |
86 |
+ dev-libs/json-glib |
87 |
+ dev-libs/libgudev:= |
88 |
+ >=dev-libs/libjcat-0.1.4[gpg,pkcs7] |
89 |
+ >=dev-libs/libxmlb-0.1.13:=[introspection?] |
90 |
+ $(python_gen_cond_dep ' |
91 |
+ dev-python/pygobject:3[cairo,${PYTHON_USEDEP}] |
92 |
+ ') |
93 |
+ >=net-libs/libsoup-2.51.92:2.4[introspection?] |
94 |
+ net-misc/curl |
95 |
+ archive? ( app-arch/libarchive:= ) |
96 |
+ cbor? ( dev-libs/libcbor ) |
97 |
+ dell? ( |
98 |
+ >=app-crypt/tpm2-tss-2.0 |
99 |
+ >=sys-libs/libsmbios-2.4.0 |
100 |
+ ) |
101 |
+ elogind? ( >=sys-auth/elogind-211 ) |
102 |
+ flashrom? ( >=sys-apps/flashrom-1.2-r3 ) |
103 |
+ gnutls? ( net-libs/gnutls ) |
104 |
+ gusb? ( >=dev-libs/libgusb-0.3.5[introspection?] ) |
105 |
+ logitech? ( dev-libs/protobuf-c:= ) |
106 |
+ lzma? ( app-arch/xz-utils ) |
107 |
+ modemmanager? ( net-misc/modemmanager[qmi] ) |
108 |
+ policykit? ( >=sys-auth/polkit-0.114 ) |
109 |
+ sqlite? ( dev-db/sqlite ) |
110 |
+ systemd? ( >=sys-apps/systemd-211 ) |
111 |
+ tpm? ( app-crypt/tpm2-tss:= ) |
112 |
+ uefi? ( |
113 |
+ sys-apps/fwupd-efi |
114 |
+ sys-boot/efibootmgr |
115 |
+ sys-fs/udisks |
116 |
+ sys-libs/efivar |
117 |
+ ) |
118 |
+" |
119 |
+RDEPEND=" |
120 |
+ ${COMMON_DEPEND} |
121 |
+ sys-apps/dbus |
122 |
+" |
123 |
+ |
124 |
+DEPEND=" |
125 |
+ ${COMMON_DEPEND} |
126 |
+ x11-libs/pango[introspection] |
127 |
+" |
128 |
+ |
129 |
+PATCHES=( |
130 |
+ "${FILESDIR}"/${PN}-1.8.4-installed_tests.patch |
131 |
+) |
132 |
+ |
133 |
+pkg_setup() { |
134 |
+ python-single-r1_pkg_setup |
135 |
+ |
136 |
+ if use nvme ; then |
137 |
+ kernel_is -ge 4 4 || die "NVMe support requires kernel >= 4.4" |
138 |
+ fi |
139 |
+} |
140 |
+ |
141 |
+src_prepare() { |
142 |
+ default |
143 |
+ |
144 |
+ vala_setup |
145 |
+ |
146 |
+ # c.f. https://github.com/fwupd/fwupd/issues/1414 |
147 |
+ sed -e "/test('thunderbolt-self-test', e, env: test_env, timeout : 120)/d" \ |
148 |
+ -i plugins/thunderbolt/meson.build || die |
149 |
+ |
150 |
+ sed -e '/platform-integrity/d' \ |
151 |
+ -i plugins/meson.build || die #753521 |
152 |
+ |
153 |
+ sed -e "/install_dir.*'doc'/s/doc/gtk-doc/" \ |
154 |
+ -i docs/meson.build || die |
155 |
+ |
156 |
+ python_fix_shebang "${S}"/contrib/*.py |
157 |
+} |
158 |
+ |
159 |
+src_configure() { |
160 |
+ local plugins=( |
161 |
+ -Dplugin_gpio="enabled" |
162 |
+ $(meson_feature amt plugin_amt) |
163 |
+ $(meson_feature dell plugin_dell) |
164 |
+ $(meson_feature fastboot plugin_fastboot) |
165 |
+ $(meson_feature flashrom plugin_flashrom) |
166 |
+ $(meson_feature gusb plugin_uf2) |
167 |
+ $(meson_feature logitech plugin_logitech_bulkcontroller) |
168 |
+ $(meson_feature modemmanager plugin_modem_manager) |
169 |
+ $(meson_feature nvme plugin_nvme) |
170 |
+ $(meson_use spi plugin_intel_spi) |
171 |
+ $(meson_feature synaptics plugin_synaptics_mst) |
172 |
+ $(meson_feature synaptics plugin_synaptics_rmi) |
173 |
+ $(meson_feature tpm plugin_tpm) |
174 |
+ $(meson_feature uefi plugin_uefi_capsule) |
175 |
+ $(meson_use uefi plugin_uefi_capsule_splash) |
176 |
+ $(meson_feature uefi plugin_uefi_pk) |
177 |
+ ) |
178 |
+ if use ppc64 || use riscv ; then |
179 |
+ plugins+=( -Dplugin_msr="disabled" ) |
180 |
+ fi |
181 |
+ |
182 |
+ local emesonargs=( |
183 |
+ --localstatedir "${EPREFIX}"/var |
184 |
+ -Dbuild="$(usex minimal standalone all)" |
185 |
+ -Dconsolekit="disabled" |
186 |
+ -Dcurl="enabled" |
187 |
+ -Defi_binary="false" |
188 |
+ -Dgresource_quirks="disabled" |
189 |
+ -Dsupported_build="enabled" |
190 |
+ -Dudevdir="${EPREFIX}$(get_udevdir)" |
191 |
+ $(meson_feature archive libarchive) |
192 |
+ $(meson_use bash-completion bash_completion) |
193 |
+ $(meson_feature bluetooth bluez) |
194 |
+ $(meson_feature cbor) |
195 |
+ $(meson_feature elogind) |
196 |
+ $(meson_feature gnutls) |
197 |
+ $(meson_feature gtk-doc docs) |
198 |
+ $(meson_feature gusb) |
199 |
+ $(meson_feature lzma) |
200 |
+ $(meson_use man) |
201 |
+ $(meson_feature introspection) |
202 |
+ $(meson_feature policykit polkit) |
203 |
+ $(meson_feature sqlite) |
204 |
+ $(meson_feature systemd) |
205 |
+ $(meson_use test tests) |
206 |
+ |
207 |
+ ${plugins[@]} |
208 |
+ ) |
209 |
+ use uefi && emesonargs+=( -Defi_os_dir="gentoo" ) |
210 |
+ export CACHE_DIRECTORY="${T}" |
211 |
+ meson_src_configure |
212 |
+} |
213 |
+ |
214 |
+src_install() { |
215 |
+ meson_src_install |
216 |
+ |
217 |
+ if ! use minimal ; then |
218 |
+ newinitd "${FILESDIR}"/${PN}-r2 ${PN} |
219 |
+ |
220 |
+ if ! use systemd ; then |
221 |
+ # Don't timeout when fwupd is running (#673140) |
222 |
+ sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \ |
223 |
+ -i "${ED}"/etc/${PN}/daemon.conf || die |
224 |
+ fi |
225 |
+ fi |
226 |
+} |
227 |
+ |
228 |
+pkg_postinst() { |
229 |
+ xdg_pkg_postinst |
230 |
+ use minimal || udev_reload |
231 |
+} |
232 |
+ |
233 |
+pkg_postrm() { |
234 |
+ xdg_pkg_postrm |
235 |
+ use minimal || udev_reload |
236 |
+} |