Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/fwupd/
Date: Tue, 10 Jul 2018 12:14:44
Message-Id: 1531224848.18dfbbc612b9fe17f7455fad36a821e6731abc59.mrueg@gentoo
1 commit: 18dfbbc612b9fe17f7455fad36a821e6731abc59
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 10 12:13:22 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 10 12:14:08 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18dfbbc6
7
8 sys-apps/fwupd: Fix configure options
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 sys-apps/fwupd/fwupd-1.0.8-r1.ebuild | 101 +++++++++++++++++++++++++++++++++++
13 1 file changed, 101 insertions(+)
14
15 diff --git a/sys-apps/fwupd/fwupd-1.0.8-r1.ebuild b/sys-apps/fwupd/fwupd-1.0.8-r1.ebuild
16 new file mode 100644
17 index 00000000000..da2b82c2bba
18 --- /dev/null
19 +++ b/sys-apps/fwupd/fwupd-1.0.8-r1.ebuild
20 @@ -0,0 +1,101 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +# Package requires newer meson than eclass provides
27 +MESON_AUTO_DEPEND="no"
28 +PYTHON_COMPAT=( python3_4 python3_5 python3_6 )
29 +
30 +inherit meson python-single-r1 vala xdg-utils
31 +
32 +DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable"
33 +HOMEPAGE="https://fwupd.org"
34 +SRC_URI="https://github.com/hughsie/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
35 +
36 +LICENSE="GPL-2+"
37 +
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~x86"
40 +IUSE="colorhug dell doc gpg +man pkcs7 systemd test uefi uefi_labels"
41 +REQUIRED_USE="
42 + ${PYTHON_REQUIRED_USE}
43 +"
44 +
45 +RDEPEND="
46 + ${PYTHON_DEPS}
47 + app-arch/libarchive:=
48 + dev-db/sqlite
49 + >=dev-libs/appstream-glib-0.7.4:=[introspection]
50 + >=dev-libs/glib-2.45.8:2
51 + dev-libs/libgpg-error
52 + dev-libs/libgudev:=
53 + >=dev-libs/libgusb-0.2.9[introspection]
54 + dev-python/pillow[${PYTHON_USEDEP}]
55 + dev-python/pycairo[${PYTHON_USEDEP}]
56 + dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
57 + >=net-libs/libsoup-2.51.92:2.4[introspection]
58 + >=sys-auth/polkit-0.103
59 + virtual/libelf:0=
60 + colorhug? ( >=x11-misc/colord-1.2.12:0= )
61 + dell? (
62 + sys-libs/efivar
63 + >=sys-libs/libsmbios-2.3.3
64 + )
65 + gpg? (
66 + app-crypt/gpgme
67 + dev-libs/libgpg-error
68 + )
69 + pkcs7? ( >=net-libs/gnutls-3.4.4.1:= )
70 + systemd? ( >=sys-apps/systemd-231 )
71 + !systemd? ( >=sys-auth/consolekit-1.0.0 )
72 + uefi? ( >=sys-apps/fwupdate-10 )
73 + uefi_labels? (
74 + x11-libs/pango
75 + x11-libs/cairo
76 + media-libs/freetype
77 + media-libs/fontconfig
78 + media-fonts/dejavu
79 + media-fonts/source-han-sans
80 + )
81 +"
82 +DEPEND="
83 + ${RDEPEND}
84 + app-arch/gcab
85 + app-arch/libarchive
86 + >=dev-util/meson-0.41.0
87 + >=dev-util/ninja-1.7.2
88 + virtual/pkgconfig
89 + $(vala_depend)
90 + doc? ( dev-util/gtk-doc )
91 + man? ( app-text/docbook-sgml-utils )
92 + test? ( net-libs/gnutls[tools] )
93 +"
94 +
95 +REQUIRED_USE="dell? ( uefi )"
96 +
97 +src_prepare() {
98 + default
99 + sed -i -e "s/'--create'/'--absolute-name', '--create'/" data/tests/builder/meson.build || die
100 + vala_src_prepare
101 +}
102 +
103 +src_configure() {
104 + xdg_environment_reset
105 + local emesonargs=(
106 + -Dconsolekit="$(usex systemd false true)"
107 + -Dgpg="$(usex gpg true false)"
108 + -Dgtkdoc="$(usex doc true false)"
109 + -Dman="$(usex man true false)"
110 + -Dpkcs7="$(usex pkcs7 true false)"
111 + -Dplugin_dell="$(usex dell true false)"
112 + -Dplugin_synaptics="$(usex dell true false)"
113 + # requires libtbtfwu which is not packaged (yet?)
114 + -Dplugin_thunderbolt=false
115 + -Dplugin_uefi="$(usex uefi true false)"
116 + -Dplugin_uefi_labels="$(usex uefi_labels true false)"
117 + -Dsystemd="$(usex systemd true false)"
118 + -Dtests="$(usex test true false)"
119 + )
120 + meson_src_configure
121 +}