Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/fwupd/
Date: Mon, 15 Apr 2019 12:19:05
Message-Id: 1555330247.fb64fff75116b7da37a4527a08d684a28b20507e.polynomial-c@gentoo
1 commit: fb64fff75116b7da37a4527a08d684a28b20507e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 15 12:10:47 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 15 12:10:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb64fff7
7
8 sys-apps/fwupd: Bump to version 1.2.7
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-apps/fwupd/Manifest | 1 +
14 sys-apps/fwupd/fwupd-1.2.7.ebuild | 143 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 144 insertions(+)
16
17 diff --git a/sys-apps/fwupd/Manifest b/sys-apps/fwupd/Manifest
18 index 7feb538b37b..d34ea680aff 100644
19 --- a/sys-apps/fwupd/Manifest
20 +++ b/sys-apps/fwupd/Manifest
21 @@ -1,2 +1,3 @@
22 DIST fwupd-1.2.5.tar.gz 1818559 BLAKE2B 0d30248bf3be093d3764624294fdd6e26b979560d70b47e67b3ca5f213177d807e749f5e30abd4d7d7d15e4be507103583834062b6a3243367169019e24a1bc7 SHA512 dc6a0def49225ce50bc89c3f76137497d4c8b71f94e42546fbf5221dc0af504ce6090f803ea9dca175f6166ff1341f6a3eab04652d744257c9e88dbd6875abc7
23 DIST fwupd-1.2.6.tar.gz 1861765 BLAKE2B 160af03c0c08bed730657520a15f96c9881996807d186a26074f10b6b340e27b0e783ae7a6b1fc433e4347cba535d49bca60b4d242101a9097fc2749f3cca0ee SHA512 c1111fd881126bf85424dec004e4321948cbdd603ed79989eee51f48197f8f0f391371834964dd1bff52eb3b353cc4c2e5714f6ff674b23dbd8e8d0e8a87ff27
24 +DIST fwupd-1.2.7.tar.gz 1899554 BLAKE2B aed0377135354c6391f63eb0802d27b5359efdb0f9d3b5c1a55ba8fe7ef0c84c9201e689d8a1bdde998e8147b25767e4dc7586c57bcf33e9f9e9d807e38e7a04 SHA512 12b5c193ab6e55e14256ea84273d139e7353618b6524197ba1f4477db32071e33a73b3e2e2b34733ca6269c4dbad5a03f2d3546b27d22b2a6db23989c69be6e5
25
26 diff --git a/sys-apps/fwupd/fwupd-1.2.7.ebuild b/sys-apps/fwupd/fwupd-1.2.7.ebuild
27 new file mode 100644
28 index 00000000000..08dacdd4693
29 --- /dev/null
30 +++ b/sys-apps/fwupd/fwupd-1.2.7.ebuild
31 @@ -0,0 +1,143 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{4,5,6,7} )
38 +
39 +inherit meson python-single-r1 vala xdg-utils
40 +
41 +DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable"
42 +HOMEPAGE="https://fwupd.org"
43 +SRC_URI="https://github.com/hughsie/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="LGPL-2.1+"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~x86"
48 +IUSE="agent colorhug dell doc elogind +gpg +man nvme pkcs7 redfish systemd test thunderbolt uefi"
49 +
50 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
51 + ?? ( elogind systemd )
52 + dell? ( uefi )
53 +"
54 +
55 +RDEPEND="${PYTHON_DEPS}
56 + app-arch/gcab
57 + app-arch/libarchive:=
58 + dev-db/sqlite
59 + >=dev-libs/glib-2.45.8:2
60 + dev-libs/json-glib
61 + dev-libs/libgpg-error
62 + dev-libs/libgudev:=
63 + >=dev-libs/libgusb-0.2.9[introspection]
64 + >=dev-libs/libxmlb-0.1.7
65 + dev-python/pillow[${PYTHON_USEDEP}]
66 + dev-python/pycairo[${PYTHON_USEDEP}]
67 + dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
68 + >=net-libs/libsoup-2.51.92:2.4[introspection]
69 + >=sys-auth/polkit-0.103
70 + virtual/libelf:0=
71 + colorhug? ( >=x11-misc/colord-1.2.12:0= )
72 + dell? (
73 + sys-libs/efivar
74 + >=sys-libs/libsmbios-2.4.0
75 + )
76 + gpg? (
77 + app-crypt/gpgme
78 + dev-libs/libgpg-error
79 + )
80 + nvme? ( sys-libs/efivar )
81 + pkcs7? ( >=net-libs/gnutls-3.4.4.1:= )
82 + redfish? ( sys-libs/efivar )
83 + !systemd? (
84 + !elogind? ( >=sys-auth/consolekit-1.0.0 )
85 + elogind? ( sys-auth/elogind )
86 + )
87 + systemd? ( >=sys-apps/systemd-211 )
88 + thunderbolt? ( sys-apps/thunderbolt-software-user-space )
89 + uefi? (
90 + media-libs/fontconfig
91 + media-libs/freetype
92 + sys-boot/gnu-efi
93 + >=sys-libs/efivar-33
94 + x11-libs/cairo
95 + )
96 +"
97 +DEPEND="${RDEPEND}
98 + $(vala_depend)
99 + x11-libs/pango[introspection]
100 + nvme? ( >=sys-kernel/linux-headers-4.4 )
101 + test? ( net-libs/gnutls[tools] )
102 +"
103 +BDEPEND="
104 + >=dev-util/meson-0.47.0
105 + virtual/pkgconfig
106 + doc? ( dev-util/gtk-doc )
107 + man? ( app-text/docbook-sgml-utils )
108 +"
109 +
110 +# required for fwupd daemon to run.
111 +# NOT a build time dependency. The build system does not check for dbus.
112 +PDEPEND="sys-apps/dbus"
113 +
114 +src_prepare() {
115 + default
116 + sed -e "s/'--create'/'--absolute-name', '--create'/" \
117 + -i data/tests/builder/meson.build || die
118 + sed -e "/'-Werror',/d" \
119 + -i plugins/uefi/efi/meson.build || die
120 + vala_src_prepare
121 +}
122 +
123 +src_configure() {
124 + xdg_environment_reset
125 + local emesonargs=(
126 + --localstatedir "${EPREFIX}"/var
127 + -Dagent="$(usex agent true false)"
128 + -Dgtkdoc="$(usex doc true false)"
129 + -Delogind="$(usex elogind true false)"
130 + -Dgpg="$(usex gpg true false)"
131 + -Dman="$(usex man true false)"
132 + -Dpkcs7="$(usex pkcs7 true false)"
133 + -Dplugin_dell="$(usex dell true false)"
134 + # Dependencies are not available (yet?)
135 + -Dplugin_modem_manager="false"
136 + -Dplugin_nvme="$(usex nvme true false)"
137 + -Dplugin_redfish="$(usex redfish true false)"
138 + -Dplugin_synaptics="$(usex dell true false)"
139 + -Dplugin_thunderbolt="$(usex thunderbolt true false)"
140 + -Dplugin_uefi="$(usex uefi true false)"
141 + -Dsystemd="$(usex systemd true false)"
142 + -Dtests="$(usex test true false)"
143 + )
144 +
145 + if use elogind || use systemd ; then
146 + emesonargs+=( -Dconsolekit=false )
147 + else
148 + emesonargs+=( -Dconsolekit=true )
149 + fi
150 +
151 + meson_src_configure
152 +}
153 +
154 +src_install() {
155 + meson_src_install
156 +
157 + sed "s@%SEAT_MANAGER%@$(usex elogind elogind consolekit)@" \
158 + "${FILESDIR}"/${PN}-r1 \
159 + > "${T}"/${PN} || die
160 + doinitd "${T}"/${PN}
161 +
162 + if ! use systemd ; then
163 + # Don't timeout when fwupd is running (#673140)
164 + sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \
165 + -i "${ED}"/etc/${PN}/daemon.conf || die
166 + fi
167 +}
168 +
169 +pkg_postinst() {
170 + elog "In case you are using openrc as init system"
171 + elog "and you're upgrading from <fwupd-1.1.0, you"
172 + elog "need to start the fwupd daemon via the openrc"
173 + elog "init script that comes with this package."
174 +}