1 |
commit: 455b4ba53f531f90991c87b5c0ffd71b278ece1e |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 27 11:35:57 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 27 11:57:20 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=455b4ba5 |
7 |
|
8 |
sys-apps/fwupd: Bump to version 1.4.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-apps/fwupd/Manifest | 1 + |
14 |
sys-apps/fwupd/fwupd-1.4.1.ebuild | 158 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 159 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/fwupd/Manifest b/sys-apps/fwupd/Manifest |
18 |
index e5a784b78a0..16de0d90cbf 100644 |
19 |
--- a/sys-apps/fwupd/Manifest |
20 |
+++ b/sys-apps/fwupd/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST fwupd-1.2.11.tar.gz 1945646 BLAKE2B 4eb6d5008d0e515880147a94b2632ed70b5f7ab1891775ac121347653c06bf4403ab7f4a1fe160000a6195d360fe06d64c8971dd53c1538aeac40d155f59979a SHA512 a8d6a76ac59937547c6866d414e95a67779574901b0a15ecfde763f49b434b284be2ade1194179225785006e5f93836667469d08f32d4c87fc85927aa0bfe9de |
23 |
DIST fwupd-1.3.8.tar.gz 2246170 BLAKE2B b55df322c64947bcccc7bf05daaec2c5b2f646a4e53d757482dcd4d33e94d725315e6456bf69d5dbca3ef870437e1cc2a861537fc7af9b059497f119f08477de SHA512 0f0aa380adc5e167e49db4261b50bee9c905786afcd44b5fe221f42a77306219d40888989e0b16448535eaf077baed12de56b6cca42f91fca09c4a8384f243e4 |
24 |
DIST fwupd-1.3.9.tar.gz 2254260 BLAKE2B ead64be3eca00fd2d045fb6c5ccd42d8913fa056736e6ae039feef70b6edababe50fb0552db39bf057750d3f0d2224b18b7ecf5a5a408a1f1ac3023d89687f68 SHA512 b81ef1f683082e4c49ab8acd8848118fed1383d4e3e73967daaa68927e553a5bc4973004d3dd26b268b901c5deb1f9238a98537d24cfd957162f508c9622e1e4 |
25 |
+DIST fwupd-1.4.1.tar.gz 2301866 BLAKE2B 057c7cdc4449aa67540719e6b7b1f073e8b247aa80dd99cb4b1c4ebf7c368c5089ddc25200bb0a42706196e3025c21a5d09f5f507d52e5c0fc5fc6d5c1eacd46 SHA512 abec0c2d66bd7e256cefa5e0ce59bbf339ea2ffb6173671c7f6cf8893b0931c16c48c47153507bc1af3f31157dba8bddf566bba1b62b8a722fa1f50780a1f921 |
26 |
|
27 |
diff --git a/sys-apps/fwupd/fwupd-1.4.1.ebuild b/sys-apps/fwupd/fwupd-1.4.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..eef144460fc |
30 |
--- /dev/null |
31 |
+++ b/sys-apps/fwupd/fwupd-1.4.1.ebuild |
32 |
@@ -0,0 +1,158 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
39 |
+ |
40 |
+inherit linux-info meson python-single-r1 vala xdg toolchain-funcs |
41 |
+ |
42 |
+DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable" |
43 |
+HOMEPAGE="https://fwupd.org" |
44 |
+SRC_URI="https://github.com/hughsie/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="LGPL-2.1+" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~x86" |
49 |
+IUSE="agent amt consolekit dell gtk-doc elogind minimal introspection +man nvme redfish synaptics systemd test thunderbolt tpm uefi" |
50 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
51 |
+ ^^ ( consolekit elogind minimal systemd ) |
52 |
+ dell? ( uefi ) |
53 |
+ minimal? ( !introspection ) |
54 |
+" |
55 |
+RESTRICT="!test? ( test )" |
56 |
+ |
57 |
+BDEPEND="$(vala_depend) |
58 |
+ virtual/pkgconfig |
59 |
+ gtk-doc? ( dev-util/gtk-doc ) |
60 |
+ introspection? ( dev-libs/gobject-introspection ) |
61 |
+ man? ( |
62 |
+ app-text/docbook-sgml-utils |
63 |
+ sys-apps/help2man |
64 |
+ ) |
65 |
+ test? ( |
66 |
+ thunderbolt? ( dev-util/umockdev ) |
67 |
+ net-libs/gnutls[tools] |
68 |
+ ) |
69 |
+" |
70 |
+DEPEND="${PYTHON_DEPS} |
71 |
+ >=app-arch/gcab-1.0 |
72 |
+ app-arch/libarchive:= |
73 |
+ dev-db/sqlite |
74 |
+ >=dev-libs/glib-2.45.8:2 |
75 |
+ dev-libs/json-glib |
76 |
+ dev-libs/libgpg-error |
77 |
+ dev-libs/libgudev:= |
78 |
+ >=dev-libs/libgusb-0.2.9[introspection?] |
79 |
+ >=dev-libs/libjcat-0.1.0 |
80 |
+ >=dev-libs/libxmlb-0.1.13 |
81 |
+ $(python_gen_cond_dep ' |
82 |
+ dev-python/pillow[${PYTHON_MULTI_USEDEP}] |
83 |
+ dev-python/pycairo[${PYTHON_MULTI_USEDEP}] |
84 |
+ dev-python/pygobject:3[cairo,${PYTHON_MULTI_USEDEP}] |
85 |
+ ') |
86 |
+ >=net-libs/libsoup-2.51.92:2.4[introspection?] |
87 |
+ virtual/libelf:0= |
88 |
+ virtual/udev |
89 |
+ consolekit? ( >=sys-auth/consolekit-1.0.0 ) |
90 |
+ dell? ( |
91 |
+ sys-libs/efivar |
92 |
+ >=sys-libs/libsmbios-2.4.0 |
93 |
+ ) |
94 |
+ elogind? ( sys-auth/elogind ) |
95 |
+ !minimal? ( |
96 |
+ >=sys-auth/polkit-0.103 |
97 |
+ ) |
98 |
+ nvme? ( sys-libs/efivar ) |
99 |
+ redfish? ( sys-libs/efivar ) |
100 |
+ systemd? ( >=sys-apps/systemd-211 ) |
101 |
+ tpm? ( app-crypt/tpm2-tss ) |
102 |
+ uefi? ( |
103 |
+ app-crypt/tpm2-tss |
104 |
+ media-libs/fontconfig |
105 |
+ media-libs/freetype |
106 |
+ sys-boot/gnu-efi |
107 |
+ sys-boot/efibootmgr |
108 |
+ >=sys-libs/efivar-33 |
109 |
+ x11-libs/cairo |
110 |
+ ) |
111 |
+" |
112 |
+# Block sci-chemistry/chemical-mime-data for bug #701900 |
113 |
+RDEPEND=" |
114 |
+ !<sci-chemistry/chemical-mime-data-0.1.94-r4 |
115 |
+ ${DEPEND} |
116 |
+ sys-apps/dbus |
117 |
+" |
118 |
+ |
119 |
+PATCHES=( |
120 |
+ "${FILESDIR}/${PN}-1.3.9-logind_plugin.patch" |
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 |
+ vala_src_prepare |
136 |
+} |
137 |
+ |
138 |
+src_configure() { |
139 |
+ local emesonargs=( |
140 |
+ --localstatedir "${EPREFIX}"/var |
141 |
+ -Dbuild="$(usex minimal standalone all)" |
142 |
+ $(meson_use agent) |
143 |
+ $(meson_use amt plugin_amt) |
144 |
+ $(meson_use consolekit) |
145 |
+ $(meson_use dell plugin_dell) |
146 |
+ $(meson_use elogind) |
147 |
+ $(meson_use gtk-doc gtkdoc) |
148 |
+ $(meson_use man) |
149 |
+ $(meson_use nvme plugin_nvme) |
150 |
+ $(meson_use redfish plugin_redfish) |
151 |
+ $(meson_use synaptics plugin_synaptics) |
152 |
+ $(meson_use systemd) |
153 |
+ $(meson_use test tests) |
154 |
+ $(meson_use thunderbolt plugin_thunderbolt) |
155 |
+ $(meson_use tpm plugin_tpm) |
156 |
+ $(meson_use uefi plugin_uefi) |
157 |
+ # Although our sys-apps/flashrom package now provides |
158 |
+ # libflashrom.a, meson still can't find it |
159 |
+ -Dplugin_flashrom="false" |
160 |
+ # Dependencies are not available (yet?) |
161 |
+ -Dplugin_modem_manager="false" |
162 |
+ ) |
163 |
+ export CACHE_DIRECTORY="${T}" |
164 |
+ meson_src_configure |
165 |
+} |
166 |
+ |
167 |
+src_install() { |
168 |
+ meson_src_install |
169 |
+ |
170 |
+ if ! use minimal ; then |
171 |
+ sed "s@%SEAT_MANAGER%@$(usex elogind elogind consolekit)@" \ |
172 |
+ "${FILESDIR}"/${PN}-r1 \ |
173 |
+ > "${T}"/${PN} || die |
174 |
+ doinitd "${T}"/${PN} |
175 |
+ |
176 |
+ if ! use systemd ; then |
177 |
+ # Don't timeout when fwupd is running (#673140) |
178 |
+ sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \ |
179 |
+ -i "${ED}"/etc/${PN}/daemon.conf || die |
180 |
+ fi |
181 |
+ fi |
182 |
+} |
183 |
+ |
184 |
+pkg_postinst() { |
185 |
+ xdg_pkg_postinst |
186 |
+ elog "In case you are using openrc as init system" |
187 |
+ elog "and you're upgrading from <fwupd-1.1.0, you" |
188 |
+ elog "need to start the fwupd daemon via the openrc" |
189 |
+ elog "init script that comes with this package." |
190 |
+} |