1 |
commit: e21acb7da107e7e9d2bc7f8b69dd2f83a8333f88 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 2 10:16:17 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 2 10:17:16 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e21acb7d |
7 |
|
8 |
sys-apps/fwupd: Bump to version 1.3.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-apps/fwupd/Manifest | 1 + |
14 |
sys-apps/fwupd/fwupd-1.3.3.ebuild | 156 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 157 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/fwupd/Manifest b/sys-apps/fwupd/Manifest |
18 |
index bd80e75ecc8..a9629791b8f 100644 |
19 |
--- a/sys-apps/fwupd/Manifest |
20 |
+++ b/sys-apps/fwupd/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST fwupd-1.2.10.tar.gz 1943920 BLAKE2B 5aec740c777d8749901ee35915f3510998b7477 |
22 |
DIST fwupd-1.2.11.tar.gz 1945646 BLAKE2B 4eb6d5008d0e515880147a94b2632ed70b5f7ab1891775ac121347653c06bf4403ab7f4a1fe160000a6195d360fe06d64c8971dd53c1538aeac40d155f59979a SHA512 a8d6a76ac59937547c6866d414e95a67779574901b0a15ecfde763f49b434b284be2ade1194179225785006e5f93836667469d08f32d4c87fc85927aa0bfe9de |
23 |
DIST fwupd-1.2.8.tar.gz 1911999 BLAKE2B 61a24ce24f778b96f7ad23496890f7a1d20c09e6bbd707f29d154992668d5c0a25cfd31b5d0d11519740e086c098cbdfd440fe9f5cab4dde0ac43fe6b438e911 SHA512 d603f9f4e5a4c0fc6abb0b75f7d884eff47fb8a16285aa545f7140fe98ce781d127ff3769f9c206bb3bfd084bbc5bf6abf9424f70e727ff79162416fe7881154 |
24 |
DIST fwupd-1.3.2.tar.gz 2100817 BLAKE2B 49441603ac0934a10b730b82b4f86cbdac03c3ab9de6051af6ca0c5f3d610cda1a619b7f0af9de61de3bd926175cf37523f47cf3fe2743ae54e5327d5ae8a518 SHA512 5b302d0ba1eb10f3ec440ed1a5ad25b5a9398c7601dc2e058d0df57e16a2e3b65ab3b7e93a07300e3db21789909fc2a72feebab0271fa0669dd792f290506c1b |
25 |
+DIST fwupd-1.3.3.tar.gz 2125604 BLAKE2B 4471d270ec7f99857dd811b2ba9d8f591a0787ee7ad2bf45edff90904483b8fe54483cde2722e7ee9afb426b17b4d4090f6935b3fa2712a277d058802fc2e9f5 SHA512 b8f0d88fa9c1c8219dd040775d76207f1be87294ebb5f38043b77a670a1601cc597a711f5635aa3d164a08ee0dd068dd22514acae96f6fc5ad20d35099d02f50 |
26 |
|
27 |
diff --git a/sys-apps/fwupd/fwupd-1.3.3.ebuild b/sys-apps/fwupd/fwupd-1.3.3.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..b1c77f7d52d |
30 |
--- /dev/null |
31 |
+++ b/sys-apps/fwupd/fwupd-1.3.3.ebuild |
32 |
@@ -0,0 +1,156 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
39 |
+ |
40 |
+inherit linux-info meson python-single-r1 vala xdg |
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 +gpg introspection +man nvme pkcs7 redfish synaptics systemd test thunderbolt 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/libxmlb-0.1.7 |
80 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
81 |
+ dev-python/pycairo[${PYTHON_USEDEP}] |
82 |
+ dev-python/pygobject:3[cairo,${PYTHON_USEDEP}] |
83 |
+ >=net-libs/libsoup-2.51.92:2.4[introspection?] |
84 |
+ virtual/libelf:0= |
85 |
+ virtual/udev |
86 |
+ consolekit? ( >=sys-auth/consolekit-1.0.0 ) |
87 |
+ dell? ( |
88 |
+ sys-libs/efivar |
89 |
+ >=sys-libs/libsmbios-2.4.0 |
90 |
+ ) |
91 |
+ elogind? ( sys-auth/elogind ) |
92 |
+ gpg? ( |
93 |
+ app-crypt/gpgme |
94 |
+ dev-libs/libgpg-error |
95 |
+ ) |
96 |
+ !minimal? ( |
97 |
+ >=sys-auth/polkit-0.103 |
98 |
+ ) |
99 |
+ nvme? ( sys-libs/efivar ) |
100 |
+ pkcs7? ( >=net-libs/gnutls-3.4.4.1:= ) |
101 |
+ redfish? ( sys-libs/efivar ) |
102 |
+ systemd? ( >=sys-apps/systemd-211 ) |
103 |
+ thunderbolt? ( |
104 |
+ sys-apps/thunderbolt-software-user-space |
105 |
+ ) |
106 |
+ uefi? ( |
107 |
+ app-crypt/tpm2-tss |
108 |
+ media-libs/fontconfig |
109 |
+ media-libs/freetype |
110 |
+ sys-boot/gnu-efi |
111 |
+ sys-boot/efibootmgr |
112 |
+ >=sys-libs/efivar-33 |
113 |
+ x11-libs/cairo |
114 |
+ ) |
115 |
+" |
116 |
+RDEPEND=" |
117 |
+ ${DEPEND} |
118 |
+ sys-apps/dbus |
119 |
+" |
120 |
+ |
121 |
+pkg_setup() { |
122 |
+ if use nvme; then |
123 |
+ kernel_is -ge 4 4 || die "NVMe support requires kernel >= 4.4" |
124 |
+ fi |
125 |
+} |
126 |
+ |
127 |
+src_prepare() { |
128 |
+ default |
129 |
+ # c.f. https://github.com/fwupd/fwupd/issues/1414 |
130 |
+ sed -e "/test('thunderbolt-self-test', e, env: test_env, timeout : 120)/d" \ |
131 |
+ -i plugins/thunderbolt/meson.build || die |
132 |
+ vala_src_prepare |
133 |
+} |
134 |
+ |
135 |
+src_configure() { |
136 |
+ local emesonargs=( |
137 |
+ --localstatedir "${EPREFIX}"/var |
138 |
+ -Dbuild="$(usex minimal standalone all)" |
139 |
+ $(meson_use agent) |
140 |
+ $(meson_use amt plugin_amt) |
141 |
+ $(meson_use consolekit) |
142 |
+ $(meson_use dell plugin_dell) |
143 |
+ $(meson_use elogind) |
144 |
+ $(meson_use gpg) |
145 |
+ $(meson_use gtk-doc gtkdoc) |
146 |
+ $(meson_use man) |
147 |
+ $(meson_use nvme plugin_nvme) |
148 |
+ $(meson_use pkcs7) |
149 |
+ $(meson_use redfish plugin_redfish) |
150 |
+ $(meson_use synaptics plugin_synaptics) |
151 |
+ $(meson_use systemd) |
152 |
+ $(meson_use test tests) |
153 |
+ $(meson_use thunderbolt plugin_thunderbolt) |
154 |
+ $(meson_use uefi plugin_uefi) |
155 |
+ # Requires libflashrom which our sys-apps/flashrom |
156 |
+ # package does not provide |
157 |
+ -Dplugin_flashrom="false" |
158 |
+ # Dependencies are not available (yet?) |
159 |
+ -Dplugin_modem_manager="false" |
160 |
+ ) |
161 |
+ |
162 |
+ meson_src_configure |
163 |
+} |
164 |
+ |
165 |
+src_install() { |
166 |
+ meson_src_install |
167 |
+ |
168 |
+ if ! use minimal ; then |
169 |
+ sed "s@%SEAT_MANAGER%@$(usex elogind elogind consolekit)@" \ |
170 |
+ "${FILESDIR}"/${PN}-r1 \ |
171 |
+ > "${T}"/${PN} || die |
172 |
+ doinitd "${T}"/${PN} |
173 |
+ |
174 |
+ if ! use systemd ; then |
175 |
+ # Don't timeout when fwupd is running (#673140) |
176 |
+ sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \ |
177 |
+ -i "${ED}"/etc/${PN}/daemon.conf || die |
178 |
+ fi |
179 |
+ fi |
180 |
+} |
181 |
+ |
182 |
+pkg_postinst() { |
183 |
+ xdg_pkg_postinst |
184 |
+ elog "In case you are using openrc as init system" |
185 |
+ elog "and you're upgrading from <fwupd-1.1.0, you" |
186 |
+ elog "need to start the fwupd daemon via the openrc" |
187 |
+ elog "init script that comes with this package." |
188 |
+} |