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, 25 Feb 2019 20:50:27
Message-Id: 1551127810.b0eb30985a96cbebcef9c077cb9c4e65a9d28fb8.polynomial-c@gentoo
1 commit: b0eb30985a96cbebcef9c077cb9c4e65a9d28fb8
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 25 20:50:10 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 25 20:50:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0eb3098
7
8 sys-apps/fwupd: Bump to version 1.2.5
9
10 Closes: https://bugs.gentoo.org/678748
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
13
14 sys-apps/fwupd/Manifest | 1 +
15 sys-apps/fwupd/fwupd-1.2.5.ebuild | 136 ++++++++++++++++++++++++++++++++++++++
16 2 files changed, 137 insertions(+)
17
18 diff --git a/sys-apps/fwupd/Manifest b/sys-apps/fwupd/Manifest
19 index d70e388c67f..3278af111ed 100644
20 --- a/sys-apps/fwupd/Manifest
21 +++ b/sys-apps/fwupd/Manifest
22 @@ -1 +1,2 @@
23 DIST fwupd-1.2.4.tar.gz 1808778 BLAKE2B 4dd8db0e73b148cba8ca43ec7942efa183f331a376b947421b8673d473ef868cef57e3abf4f50e031eb22f97fa8eb199b8bd7ef3b96efb598f842d0824c235a7 SHA512 7734be90459364c2e9ca35d9a9327e7becabe64cd0129d5c8f3cb4a95ef0195726c519862e843636952a3251ecea080907d1e6814c3037e9f90e8dde53b406ad
24 +DIST fwupd-1.2.5.tar.gz 1818559 BLAKE2B 0d30248bf3be093d3764624294fdd6e26b979560d70b47e67b3ca5f213177d807e749f5e30abd4d7d7d15e4be507103583834062b6a3243367169019e24a1bc7 SHA512 dc6a0def49225ce50bc89c3f76137497d4c8b71f94e42546fbf5221dc0af504ce6090f803ea9dca175f6166ff1341f6a3eab04652d744257c9e88dbd6875abc7
25
26 diff --git a/sys-apps/fwupd/fwupd-1.2.5.ebuild b/sys-apps/fwupd/fwupd-1.2.5.ebuild
27 new file mode 100644
28 index 00000000000..5ac027f9c0b
29 --- /dev/null
30 +++ b/sys-apps/fwupd/fwupd-1.2.5.ebuild
31 @@ -0,0 +1,136 @@
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 ~x86"
48 +IUSE="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.5
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 + -Dgtkdoc="$(usex doc true false)"
128 + -Delogind="$(usex elogind true false)"
129 + -Dgpg="$(usex gpg true false)"
130 + -Dman="$(usex man true false)"
131 + -Dpkcs7="$(usex pkcs7 true false)"
132 + -Dplugin_dell="$(usex dell true false)"
133 + -Dplugin_nvme="$(usex nvme true false)"
134 + -Dplugin_redfish="$(usex redfish true false)"
135 + -Dplugin_synaptics="$(usex dell true false)"
136 + -Dplugin_thunderbolt="$(usex thunderbolt true false)"
137 + -Dplugin_uefi="$(usex uefi true false)"
138 + -Dsystemd="$(usex systemd true false)"
139 + -Dtests="$(usex test true false)"
140 + )
141 +
142 + if use elogind || use systemd ; then
143 + emesonargs+=( -Dconsolekit=false )
144 + else
145 + emesonargs+=( -Dconsolekit=true )
146 + fi
147 +
148 + meson_src_configure
149 +}
150 +
151 +src_install() {
152 + meson_src_install
153 + doinitd "${FILESDIR}"/${PN}
154 +
155 + if ! use systemd ; then
156 + # Don't timeout when fwupd is running (#673140)
157 + sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \
158 + -i "${ED}"/etc/${PN}/daemon.conf || die
159 + fi
160 +}
161 +
162 +pkg_postinst() {
163 + elog "In case you are using openrc as init system"
164 + elog "and you're upgrading from <fwupd-1.1.0, you"
165 + elog "need to start the fwupd daemon via the openrc"
166 + elog "init script that comes with this package."
167 +}