Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/fwupd/
Date: Tue, 30 Aug 2022 08:06:08
Message-Id: 1661845965.417a464663eea1ad9b7cff714d62942f90cab0b8.marecki@gentoo
1 commit: 417a464663eea1ad9b7cff714d62942f90cab0b8
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 30 07:52:45 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 30 07:52:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=417a4646
7
8 sys-apps/fwupd: drop 1.7.5, 1.8.0-r1, 1.8.1
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 sys-apps/fwupd/Manifest | 3 -
13 sys-apps/fwupd/fwupd-1.7.5.ebuild | 174 --------------------------------
14 sys-apps/fwupd/fwupd-1.8.0-r1.ebuild | 179 ---------------------------------
15 sys-apps/fwupd/fwupd-1.8.1.ebuild | 188 -----------------------------------
16 4 files changed, 544 deletions(-)
17
18 diff --git a/sys-apps/fwupd/Manifest b/sys-apps/fwupd/Manifest
19 index 5c1ae4a880be..060c1b5fe73c 100644
20 --- a/sys-apps/fwupd/Manifest
21 +++ b/sys-apps/fwupd/Manifest
22 @@ -1,5 +1,2 @@
23 -DIST fwupd-1.7.5.tar.gz 4014523 BLAKE2B b7297bbf3358209464691b928b928fa029c68ae6a3bc413d514409e4382bf8a3b0d57f4febc29a24d6351481474dd8111406ffdcb11125139fbc04a33ea00321 SHA512 1c2d99d905f76ebfce65db310ba0f6c1305ecf662b58bd9f6f6597ccc79cbabed126c97f2142207c99d8373ed42575363a58d9f053f390780b7c9a19c614fb31
24 DIST fwupd-1.7.7.tar.gz 4057638 BLAKE2B 197d7b8a8de64094d267bb4e2de30101373bcc52fd54d12dc2590a50f2bcebbcfe00847d19c0088d2c778743d219ee73c0237db711ad27e36f7126f7c615ccf7 SHA512 a787ffdff93f483ad97547d335c50a4db7b61bce1bc27d737b077bbedfa4676c8d6d37db94ac24083c50e3bfde8aefd4d1adb3d0e473303f454a46dde136df0a
25 -DIST fwupd-1.8.0.tar.gz 4103239 BLAKE2B 15d06a261be1f529573a0f3b21a54066b1b286e1d1c68ac24f3862f7e3a8855661775b369016d67fbc9797fd13dea88000e78d1a6973e489ecaa6f7f6855b3cf SHA512 8977e0b0878e46480565a32935cc008d57d3978609c01877e3a90dc594b122bed0c94613a53f0f2d3f50d8a039b09cb93787aaf7e0b5d8cf1ec1a6247fe1610b
26 -DIST fwupd-1.8.1.tar.gz 4143691 BLAKE2B 1606bc35e0bf15efe202ec906161e5c526d4fdd1ef1469da6aeb141539c3196cbdd603b124e805c4eb43c020fed5049b1813d6301211fa02fa4c0c2c2b8222b3 SHA512 9f3e15b977b335058d1430049f19de8a17260cdbc4e84aa728ff4e6db3deebc8725f532e9b3edb7d51a0ddc9cc9f8272449417e7345009d447b9f4b3378a4819
27 DIST fwupd-1.8.3.tar.gz 4267315 BLAKE2B 35e5855ea0d314fa5b1cc33ed4efa71e54c35b57c742748a5d6c7f4c1f88bfd9c2e5a84f2af72f6e5e63ddfc4f6521312fb7b1446922c76917f9abdd4d90e618 SHA512 271a1c2547f35322a7a7d83adc84d729ba73d810f6ac526d1c6aa2a9774dea1edc986b7d62481ebb70d43653577ced19f13f695dedf4012c82d814da70cb83f4
28
29 diff --git a/sys-apps/fwupd/fwupd-1.7.5.ebuild b/sys-apps/fwupd/fwupd-1.7.5.ebuild
30 deleted file mode 100644
31 index 28f7c27c0499..000000000000
32 --- a/sys-apps/fwupd/fwupd-1.7.5.ebuild
33 +++ /dev/null
34 @@ -1,174 +0,0 @@
35 -# Copyright 1999-2022 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -
40 -PYTHON_COMPAT=( python3_{8..10} )
41 -
42 -inherit bash-completion-r1 linux-info meson python-single-r1 vala xdg
43 -
44 -DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable"
45 -HOMEPAGE="https://fwupd.org"
46 -SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 -
48 -LICENSE="LGPL-2.1+"
49 -SLOT="0"
50 -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86"
51 -IUSE="amt archive bash-completion bluetooth dell elogind fastboot flashrom gnutls gtk-doc gusb introspection logitech lzma +man minimal modemmanager nvme policykit spi +sqlite synaptics systemd test thunderbolt tpm uefi"
52 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
53 - ^^ ( elogind minimal systemd )
54 - dell? ( uefi )
55 - fastboot? ( gusb )
56 - logitech? ( gusb )
57 - minimal? ( !introspection )
58 - spi? ( lzma )
59 - synaptics? ( gnutls )
60 - uefi? ( gnutls )
61 -"
62 -RESTRICT="!test? ( test )"
63 -
64 -BDEPEND="$(vala_depend)
65 - virtual/pkgconfig
66 - gtk-doc? ( dev-util/gtk-doc )
67 - bash-completion? ( >=app-shells/bash-completion-2.0 )
68 - introspection? ( dev-libs/gobject-introspection )
69 - man? (
70 - app-text/docbook-sgml-utils
71 - sys-apps/help2man
72 - )
73 - test? (
74 - thunderbolt? ( dev-util/umockdev )
75 - net-libs/gnutls[tools]
76 - )
77 -"
78 -COMMON_DEPEND="${PYTHON_DEPS}
79 - >=app-arch/gcab-1.0
80 - app-arch/xz-utils
81 - >=dev-libs/glib-2.58:2
82 - dev-libs/json-glib
83 - dev-libs/libgudev:=
84 - >=dev-libs/libjcat-0.1.0[gpg,pkcs7]
85 - >=dev-libs/libxmlb-0.1.13:=[introspection?]
86 - $(python_gen_cond_dep '
87 - dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
88 - ')
89 - >=net-libs/libsoup-2.51.92:2.4[introspection?]
90 - net-misc/curl
91 - archive? ( app-arch/libarchive:= )
92 - dell? ( >=sys-libs/libsmbios-2.4.0 )
93 - elogind? ( >=sys-auth/elogind-211 )
94 - flashrom? ( >=sys-apps/flashrom-1.2-r3 )
95 - gnutls? ( net-libs/gnutls )
96 - gusb? ( >=dev-libs/libgusb-0.3.5[introspection?] )
97 - logitech? ( dev-libs/protobuf-c:= )
98 - lzma? ( app-arch/xz-utils )
99 - modemmanager? ( net-misc/modemmanager[qmi] )
100 - policykit? ( >=sys-auth/polkit-0.103 )
101 - sqlite? ( dev-db/sqlite )
102 - systemd? ( >=sys-apps/systemd-211 )
103 - tpm? ( app-crypt/tpm2-tss )
104 - uefi? (
105 - sys-apps/fwupd-efi
106 - sys-boot/efibootmgr
107 - sys-fs/udisks
108 - sys-libs/efivar
109 - )
110 -"
111 -# Block sci-chemistry/chemical-mime-data for bug #701900
112 -RDEPEND="
113 - !<sci-chemistry/chemical-mime-data-0.1.94-r4
114 - ${COMMON_DEPEND}
115 - sys-apps/dbus
116 -"
117 -
118 -DEPEND="
119 - ${COMMON_DEPEND}
120 - x11-libs/pango[introspection]
121 -"
122 -
123 -pkg_setup() {
124 - python-single-r1_pkg_setup
125 - if use nvme ; then
126 - kernel_is -ge 4 4 || die "NVMe support requires kernel >= 4.4"
127 - fi
128 -}
129 -
130 -src_prepare() {
131 - default
132 - # c.f. https://github.com/fwupd/fwupd/issues/1414
133 - sed -e "/test('thunderbolt-self-test', e, env: test_env, timeout : 120)/d" \
134 - -i plugins/thunderbolt/meson.build || die
135 -
136 - sed -e '/platform-integrity/d' \
137 - -i plugins/meson.build || die #753521
138 -
139 - sed -e "/install_dir.*'doc'/s/fwupd/${PF}/" \
140 - -i data/builder/meson.build || die
141 -
142 - vala_src_prepare
143 -}
144 -
145 -src_configure() {
146 - local plugins=(
147 - $(meson_use amt plugin_amt)
148 - $(meson_use dell plugin_dell)
149 - $(meson_use fastboot plugin_fastboot)
150 - $(meson_use flashrom plugin_flashrom)
151 - $(meson_use gusb plugin_uf2)
152 - $(meson_use logitech plugin_logitech_bulkcontroller)
153 - $(meson_use modemmanager plugin_modem_manager)
154 - $(meson_use nvme plugin_nvme)
155 - $(meson_use sqlite)
156 - $(meson_use spi plugin_intel_spi)
157 - $(meson_use synaptics plugin_synaptics_mst)
158 - $(meson_use synaptics plugin_synaptics_rmi)
159 - $(meson_use thunderbolt plugin_thunderbolt)
160 - $(meson_use tpm plugin_tpm)
161 - $(meson_use uefi plugin_uefi_capsule)
162 - $(meson_use uefi plugin_uefi_capsule_splash)
163 - $(meson_use uefi plugin_uefi_pk)
164 - )
165 - use ppc64 && plugins+=( -Dplugin_msr="false" )
166 - use riscv && plugins+=( -Dplugin_msr="false" )
167 -
168 - local emesonargs=(
169 - --localstatedir "${EPREFIX}"/var
170 - -Dbuild="$(usex minimal standalone all)"
171 - -Dconsolekit="false"
172 - -Dcurl="true"
173 - -Ddocs="$(usex gtk-doc gtkdoc none)"
174 - -Defi_binary="false"
175 - -Dsupported_build="true"
176 - $(meson_use archive libarchive)
177 - $(meson_use bash-completion bash_completion)
178 - $(meson_use bluetooth bluez)
179 - $(meson_use elogind)
180 - $(meson_use gnutls)
181 - $(meson_use gusb)
182 - $(meson_use lzma)
183 - $(meson_use man)
184 - $(meson_use introspection)
185 - $(meson_use policykit polkit)
186 - $(meson_use systemd)
187 - $(meson_use test tests)
188 -
189 - ${plugins[@]}
190 - )
191 - use uefi && emesonargs+=( -Defi_os_dir="gentoo" )
192 - export CACHE_DIRECTORY="${T}"
193 - meson_src_configure
194 -}
195 -
196 -src_install() {
197 - meson_src_install
198 -
199 - if ! use minimal ; then
200 - newinitd "${FILESDIR}"/${PN}-r2 ${PN}
201 -
202 - if ! use systemd ; then
203 - # Don't timeout when fwupd is running (#673140)
204 - sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \
205 - -i "${ED}"/etc/${PN}/daemon.conf || die
206 - fi
207 - fi
208 -}
209
210 diff --git a/sys-apps/fwupd/fwupd-1.8.0-r1.ebuild b/sys-apps/fwupd/fwupd-1.8.0-r1.ebuild
211 deleted file mode 100644
212 index cc9c6194035c..000000000000
213 --- a/sys-apps/fwupd/fwupd-1.8.0-r1.ebuild
214 +++ /dev/null
215 @@ -1,179 +0,0 @@
216 -# Copyright 1999-2022 Gentoo Authors
217 -# Distributed under the terms of the GNU General Public License v2
218 -
219 -EAPI=8
220 -
221 -PYTHON_COMPAT=( python3_{8..10} )
222 -
223 -inherit bash-completion-r1 linux-info meson python-single-r1 vala xdg
224 -
225 -DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable"
226 -HOMEPAGE="https://fwupd.org"
227 -SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
228 -
229 -LICENSE="LGPL-2.1+"
230 -SLOT="0"
231 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
232 -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 thunderbolt tpm uefi"
233 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
234 - ^^ ( elogind minimal systemd )
235 - dell? ( uefi )
236 - fastboot? ( gusb )
237 - logitech? ( gusb )
238 - minimal? ( !introspection )
239 - spi? ( lzma )
240 - synaptics? ( gnutls )
241 - uefi? ( gnutls )
242 -"
243 -RESTRICT="!test? ( test )"
244 -
245 -BDEPEND="$(vala_depend)
246 - >=dev-util/meson-0.60.0
247 - virtual/pkgconfig
248 - gtk-doc? ( dev-util/gtk-doc )
249 - bash-completion? ( >=app-shells/bash-completion-2.0 )
250 - introspection? ( dev-libs/gobject-introspection )
251 - man? (
252 - app-text/docbook-sgml-utils
253 - sys-apps/help2man
254 - )
255 - test? (
256 - thunderbolt? ( dev-util/umockdev )
257 - net-libs/gnutls[tools]
258 - )
259 -"
260 -COMMON_DEPEND="${PYTHON_DEPS}
261 - >=app-arch/gcab-1.0
262 - app-arch/xz-utils
263 - >=dev-libs/glib-2.58:2
264 - dev-libs/json-glib
265 - dev-libs/libgudev:=
266 - >=dev-libs/libjcat-0.1.4[gpg,pkcs7]
267 - >=dev-libs/libxmlb-0.1.13:=[introspection?]
268 - $(python_gen_cond_dep '
269 - dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
270 - ')
271 - >=net-libs/libsoup-2.51.92:2.4[introspection?]
272 - net-misc/curl
273 - archive? ( app-arch/libarchive:= )
274 - cbor? ( dev-libs/libcbor )
275 - dell? (
276 - >=app-crypt/tpm2-tss-2.0
277 - >=sys-libs/libsmbios-2.4.0
278 - )
279 - elogind? ( >=sys-auth/elogind-211 )
280 - flashrom? ( >=sys-apps/flashrom-1.2-r3 )
281 - gnutls? ( net-libs/gnutls )
282 - gusb? ( >=dev-libs/libgusb-0.3.5[introspection?] )
283 - logitech? ( dev-libs/protobuf-c:= )
284 - lzma? ( app-arch/xz-utils )
285 - modemmanager? ( net-misc/modemmanager[qmi] )
286 - policykit? ( >=sys-auth/polkit-0.114 )
287 - sqlite? ( dev-db/sqlite )
288 - systemd? ( >=sys-apps/systemd-211 )
289 - tpm? ( app-crypt/tpm2-tss:= )
290 - uefi? (
291 - sys-apps/fwupd-efi
292 - sys-boot/efibootmgr
293 - sys-fs/udisks
294 - sys-libs/efivar
295 - )
296 -"
297 -RDEPEND="
298 - ${COMMON_DEPEND}
299 - sys-apps/dbus
300 -"
301 -
302 -DEPEND="
303 - ${COMMON_DEPEND}
304 - x11-libs/pango[introspection]
305 -"
306 -
307 -pkg_setup() {
308 - python-single-r1_pkg_setup
309 - vala_setup
310 - if use nvme ; then
311 - kernel_is -ge 4 4 || die "NVMe support requires kernel >= 4.4"
312 - fi
313 -}
314 -
315 -src_prepare() {
316 - default
317 - # c.f. https://github.com/fwupd/fwupd/issues/1414
318 - sed -e "/test('thunderbolt-self-test', e, env: test_env, timeout : 120)/d" \
319 - -i plugins/thunderbolt/meson.build || die
320 -
321 - sed -e '/platform-integrity/d' \
322 - -i plugins/meson.build || die #753521
323 -
324 - sed -e "/install_dir.*'doc'/s/fwupd/${PF}/" \
325 - -i data/builder/meson.build || die
326 -}
327 -
328 -src_configure() {
329 - local plugins=(
330 - -Dplugin_gpio="enabled"
331 - $(meson_feature amt plugin_amt)
332 - $(meson_feature dell plugin_dell)
333 - $(meson_feature fastboot plugin_fastboot)
334 - $(meson_feature flashrom plugin_flashrom)
335 - $(meson_feature gusb plugin_uf2)
336 - $(meson_feature logitech plugin_logitech_bulkcontroller)
337 - $(meson_feature modemmanager plugin_modem_manager)
338 - $(meson_feature nvme plugin_nvme)
339 - $(meson_use spi plugin_intel_spi)
340 - $(meson_feature synaptics plugin_synaptics_mst)
341 - $(meson_feature synaptics plugin_synaptics_rmi)
342 - $(meson_feature thunderbolt plugin_thunderbolt)
343 - $(meson_feature tpm plugin_tpm)
344 - $(meson_feature uefi plugin_uefi_capsule)
345 - $(meson_use uefi plugin_uefi_capsule_splash)
346 - $(meson_feature uefi plugin_uefi_pk)
347 - )
348 - if use ppc64 || use riscv ; then
349 - plugins+=( -Dplugin_msr="disabled" )
350 - fi
351 -
352 - local emesonargs=(
353 - --localstatedir "${EPREFIX}"/var
354 - -Dbuild="$(usex minimal standalone all)"
355 - -Dconsolekit="disabled"
356 - -Dcurl="enabled"
357 - -Ddocs="$(usex gtk-doc gtkdoc none)"
358 - -Defi_binary="false"
359 - -Dsupported_build="enabled"
360 - $(meson_feature archive libarchive)
361 - $(meson_use bash-completion bash_completion)
362 - $(meson_feature bluetooth bluez)
363 - $(meson_feature cbor)
364 - $(meson_feature elogind)
365 - $(meson_feature gnutls)
366 - $(meson_feature gusb)
367 - $(meson_feature lzma)
368 - $(meson_use man)
369 - $(meson_feature introspection)
370 - $(meson_feature policykit polkit)
371 - $(meson_feature sqlite)
372 - $(meson_feature systemd)
373 - $(meson_use test tests)
374 -
375 - ${plugins[@]}
376 - )
377 - use uefi && emesonargs+=( -Defi_os_dir="gentoo" )
378 - export CACHE_DIRECTORY="${T}"
379 - meson_src_configure
380 -}
381 -
382 -src_install() {
383 - meson_src_install
384 -
385 - if ! use minimal ; then
386 - newinitd "${FILESDIR}"/${PN}-r2 ${PN}
387 -
388 - if ! use systemd ; then
389 - # Don't timeout when fwupd is running (#673140)
390 - sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \
391 - -i "${ED}"/etc/${PN}/daemon.conf || die
392 - fi
393 - fi
394 -}
395
396 diff --git a/sys-apps/fwupd/fwupd-1.8.1.ebuild b/sys-apps/fwupd/fwupd-1.8.1.ebuild
397 deleted file mode 100644
398 index 3852c4032a8d..000000000000
399 --- a/sys-apps/fwupd/fwupd-1.8.1.ebuild
400 +++ /dev/null
401 @@ -1,188 +0,0 @@
402 -# Copyright 1999-2022 Gentoo Authors
403 -# Distributed under the terms of the GNU General Public License v2
404 -
405 -EAPI=8
406 -
407 -PYTHON_COMPAT=( python3_{8..10} )
408 -
409 -inherit bash-completion-r1 linux-info meson python-single-r1 vala udev xdg
410 -
411 -DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable"
412 -HOMEPAGE="https://fwupd.org"
413 -SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
414 -
415 -LICENSE="LGPL-2.1+"
416 -SLOT="0"
417 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
418 -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 thunderbolt tpm uefi"
419 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
420 - ^^ ( elogind minimal systemd )
421 - dell? ( uefi )
422 - fastboot? ( gusb )
423 - logitech? ( gusb )
424 - minimal? ( !introspection )
425 - spi? ( lzma )
426 - synaptics? ( gnutls )
427 - uefi? ( gnutls )
428 -"
429 -RESTRICT="!test? ( test )"
430 -
431 -BDEPEND="$(vala_depend)
432 - >=dev-util/meson-0.60.0
433 - virtual/pkgconfig
434 - gtk-doc? ( dev-util/gtk-doc )
435 - bash-completion? ( >=app-shells/bash-completion-2.0 )
436 - introspection? ( dev-libs/gobject-introspection )
437 - man? (
438 - app-text/docbook-sgml-utils
439 - sys-apps/help2man
440 - )
441 - test? (
442 - thunderbolt? ( dev-util/umockdev )
443 - net-libs/gnutls[tools]
444 - )
445 -"
446 -COMMON_DEPEND="${PYTHON_DEPS}
447 - >=app-arch/gcab-1.0
448 - app-arch/xz-utils
449 - >=dev-libs/glib-2.58:2
450 - dev-libs/json-glib
451 - dev-libs/libgudev:=
452 - >=dev-libs/libjcat-0.1.4[gpg,pkcs7]
453 - >=dev-libs/libxmlb-0.1.13:=[introspection?]
454 - $(python_gen_cond_dep '
455 - dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
456 - ')
457 - >=net-libs/libsoup-2.51.92:2.4[introspection?]
458 - net-misc/curl
459 - archive? ( app-arch/libarchive:= )
460 - cbor? ( dev-libs/libcbor )
461 - dell? (
462 - >=app-crypt/tpm2-tss-2.0
463 - >=sys-libs/libsmbios-2.4.0
464 - )
465 - elogind? ( >=sys-auth/elogind-211 )
466 - flashrom? ( >=sys-apps/flashrom-1.2-r3 )
467 - gnutls? ( net-libs/gnutls )
468 - gusb? ( >=dev-libs/libgusb-0.3.5[introspection?] )
469 - logitech? ( dev-libs/protobuf-c:= )
470 - lzma? ( app-arch/xz-utils )
471 - modemmanager? ( net-misc/modemmanager[qmi] )
472 - policykit? ( >=sys-auth/polkit-0.114 )
473 - sqlite? ( dev-db/sqlite )
474 - systemd? ( >=sys-apps/systemd-211 )
475 - tpm? ( app-crypt/tpm2-tss:= )
476 - uefi? (
477 - sys-apps/fwupd-efi
478 - sys-boot/efibootmgr
479 - sys-fs/udisks
480 - sys-libs/efivar
481 - )
482 -"
483 -RDEPEND="
484 - ${COMMON_DEPEND}
485 - sys-apps/dbus
486 -"
487 -
488 -DEPEND="
489 - ${COMMON_DEPEND}
490 - x11-libs/pango[introspection]
491 -"
492 -
493 -pkg_setup() {
494 - python-single-r1_pkg_setup
495 - vala_setup
496 - if use nvme ; then
497 - kernel_is -ge 4 4 || die "NVMe support requires kernel >= 4.4"
498 - fi
499 -}
500 -
501 -src_prepare() {
502 - default
503 - # c.f. https://github.com/fwupd/fwupd/issues/1414
504 - sed -e "/test('thunderbolt-self-test', e, env: test_env, timeout : 120)/d" \
505 - -i plugins/thunderbolt/meson.build || die
506 -
507 - sed -e '/platform-integrity/d' \
508 - -i plugins/meson.build || die #753521
509 -
510 - sed -e "/install_dir.*'doc'/s/fwupd/${PF}/" \
511 - -i data/builder/meson.build || die
512 -}
513 -
514 -src_configure() {
515 - local plugins=(
516 - -Dplugin_gpio="enabled"
517 - $(meson_feature amt plugin_amt)
518 - $(meson_feature dell plugin_dell)
519 - $(meson_feature fastboot plugin_fastboot)
520 - $(meson_feature flashrom plugin_flashrom)
521 - $(meson_feature gusb plugin_uf2)
522 - $(meson_feature logitech plugin_logitech_bulkcontroller)
523 - $(meson_feature modemmanager plugin_modem_manager)
524 - $(meson_feature nvme plugin_nvme)
525 - $(meson_use spi plugin_intel_spi)
526 - $(meson_feature synaptics plugin_synaptics_mst)
527 - $(meson_feature synaptics plugin_synaptics_rmi)
528 - $(meson_feature thunderbolt plugin_thunderbolt)
529 - $(meson_feature tpm plugin_tpm)
530 - $(meson_feature uefi plugin_uefi_capsule)
531 - $(meson_use uefi plugin_uefi_capsule_splash)
532 - $(meson_feature uefi plugin_uefi_pk)
533 - )
534 - if use ppc64 || use riscv ; then
535 - plugins+=( -Dplugin_msr="disabled" )
536 - fi
537 -
538 - local emesonargs=(
539 - --localstatedir "${EPREFIX}"/var
540 - -Dbuild="$(usex minimal standalone all)"
541 - -Dconsolekit="disabled"
542 - -Dcurl="enabled"
543 - -Ddocs="$(usex gtk-doc gtkdoc none)"
544 - -Defi_binary="false"
545 - -Dsupported_build="enabled"
546 - -Dudevdir="${EPREFIX}$(get_udevdir)"
547 - $(meson_feature archive libarchive)
548 - $(meson_use bash-completion bash_completion)
549 - $(meson_feature bluetooth bluez)
550 - $(meson_feature cbor)
551 - $(meson_feature elogind)
552 - $(meson_feature gnutls)
553 - $(meson_feature gusb)
554 - $(meson_feature lzma)
555 - $(meson_use man)
556 - $(meson_feature introspection)
557 - $(meson_feature policykit polkit)
558 - $(meson_feature sqlite)
559 - $(meson_feature systemd)
560 - $(meson_use test tests)
561 -
562 - ${plugins[@]}
563 - )
564 - use uefi && emesonargs+=( -Defi_os_dir="gentoo" )
565 - export CACHE_DIRECTORY="${T}"
566 - meson_src_configure
567 -}
568 -
569 -src_install() {
570 - meson_src_install
571 -
572 - if ! use minimal ; then
573 - newinitd "${FILESDIR}"/${PN}-r2 ${PN}
574 -
575 - if ! use systemd ; then
576 - # Don't timeout when fwupd is running (#673140)
577 - sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \
578 - -i "${ED}"/etc/${PN}/daemon.conf || die
579 - fi
580 - fi
581 -}
582 -
583 -pkg_postinst() {
584 - use minimal || udev_reload
585 -}
586 -
587 -pkg_postrm() {
588 - use minimal || udev_reload
589 -}