Diff bolt-0.9.1 with a bolt-0.9.2

/usr/portage/sys-apps/bolt/bolt-0.9.2.ebuild 2023-10-09 14:52:35.344368498 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit linux-info meson systemd
6
inherit linux-info meson udev
7 7

  
8 8
DESCRIPTION="Userspace system daemon to enable security levels for Thunderbolt 3"
9 9
HOMEPAGE="https://gitlab.freedesktop.org/bolt/bolt"
10 10
SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.gz"
11 11

  
12
LICENSE="LGPL-2.1"
12
LICENSE="LGPL-2.1 GPL-2+"
13 13
SLOT="0"
14 14
KEYWORDS="amd64 ~riscv x86"
15
IUSE="doc systemd"
15
IUSE="test"
16
RESTRICT="!test? ( test )"
16 17

  
17
DEPEND="
18
RDEPEND="
18 19
	>=dev-libs/glib-2.56.0:2
19
	dev-util/glib-utils
20
	virtual/libudev
20
	virtual/libudev:=
21 21
	virtual/udev
22
	dev-util/umockdev
23 22
	sys-auth/polkit[introspection]
24
	systemd? ( sys-apps/systemd )
25
	doc? ( app-text/asciidoc )"
26
RDEPEND="${DEPEND}"
23
"
24
DEPEND="
25
	${RDEPEND}
26
	test? ( dev-util/umockdev )
27
"
28
BDEPEND="
29
	app-text/asciidoc
30
	dev-util/glib-utils
31
	virtual/pkgconfig
32
"
27 33

  
28
pkg_pretend() {
34
pkg_setup() {
29 35
	if use kernel_linux && kernel_is lt 5 6; then
30 36
		CONFIG_CHECK="~THUNDERBOLT"
31 37
		ERROR_THUNDERBOLT="This package requires the thunderbolt kernel driver."
......
33 39
		CONFIG_CHECK="~USB4"
34 40
		ERROR_USB4="This package requires the USB4 kernel driver for Thunderbolt support."
35 41
	fi
36
	check_extra_config
37

  
38
	CONFIG_CHECK="~HOTPLUG_PCI"
42
	CONFIG_CHECK+=" ~HOTPLUG_PCI"
39 43
	ERROR_HOTPLUG_PCI="Thunderbolt requires PCI hotplug support."
40
	check_extra_config
44

  
45
	linux-info_pkg_setup
41 46
}
42 47

  
43 48
src_configure() {
44 49
	local emesonargs=(
45
		-Dman=$(usex doc true false)
46
		--sysconfdir=/etc
47
		--localstatedir=/var
48
		--sharedstatedir=/var/lib
50
		-Dman=true
51
		--sysconfdir="${EPREFIX}"/etc
52
		--localstatedir="${EPREFIX}"/var
53
		--sharedstatedir="${EPREFIX}"/var/lib
49 54
	)
50 55
	meson_src_configure
51 56
}
......
55 60
	newinitd "${FILESDIR}"/${PN}.openrc-r1 boltd
56 61
	keepdir /var/lib/boltd
57 62
}
63

  
64
pkg_postinst() {
65
	udev_reload
66
}
67

  
68
pkg_postrm() {
69
	udev_reload
70
}
Thank you!