Diff ndctl-71.1-r2 with a ndctl-76.1

/usr/portage/sys-block/ndctl/ndctl-76.1.ebuild 2023-10-09 14:52:35.436368500 +0300
1
# Copyright 2022 Gentoo Authors
1
# Copyright 2021-2023 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 autotools bash-completion-r1
6
inherit udev meson bash-completion-r1
7 7

  
8 8
DESCRIPTION="Helper tools and libraries for managing non-volatile memory on Linux"
9 9
HOMEPAGE="https://github.com/pmem/ndctl"
......
12 12
LICENSE="GPL-2 LGPL-2.1 MIT CC0-1.0"
13 13
SLOT="0/6"
14 14
KEYWORDS="amd64 ~x86"
15
IUSE="systemd test"
15
IUSE="doc libtracefs systemd test"
16 16

  
17 17
DEPEND="
18
	dev-libs/iniparser:0=
18 19
	dev-libs/json-c:=
19 20
	sys-apps/keyutils:=
20 21
	sys-apps/kmod:=
21 22
	sys-apps/util-linux:=
22 23
	virtual/libudev:=
24
	libtracefs? ( dev-libs/libtracefs:= )
23 25
	systemd? ( sys-apps/systemd:= )
24 26
"
25 27
RDEPEND="${DEPEND}"
26 28
BDEPEND="
27
	app-text/asciidoc
28
	app-text/xmlto
29
	doc? (
30
		app-text/asciidoc
31
		app-text/xmlto
32
	)
29 33
	sys-devel/libtool
30 34
	virtual/pkgconfig
31 35
"
......
40 44
	CONTRIBUTING.md
41 45
)
42 46

  
43
PATCHES=(
44
	"${FILESDIR}/${PN}-71.1-bash-completion-configure.patch"
45
)
46

  
47
src_prepare() {
48
	default
49
	printf 'm4_define([GIT_VERSION], [%s])' "${PV}" > version.m4 || die
50
	sed -e '/git-version-gen/ d' -i Makefile.am || die
51
	eautoreconf
52
}
53

  
54 47
src_configure() {
55
	econf \
56
		--with-bash-completion-dir="$(get_bashcompdir)" \
57
		$(use_with systemd) \
58
		--disable-asciidoctor
59
}
60

  
61
src_test() {
62
	emake check
48
	local -a emesonargs=(
49
		$(meson_feature systemd)
50
		$(meson_feature libtracefs)
51
		$(meson_feature doc docs)
52
		-Dasciidoctor=disabled
53
		-Dbashcompletiondir="$(get_bashcompdir)"
54
		-Drootprefix=/usr
55
		-Drootlibdir="/usr/$(get_libdir)"
56
	)
57
	meson_src_configure
63 58
}
64 59

  
65 60
src_install() {
66
	default
61
	meson_src_install
62

  
63
	# upstream doesn't install udev rules unless using systemd
64
	use systemd || udev_dorules daxctl/90-daxctl-device.rules
67 65

  
68 66
	bashcomp_alias ndctl daxctl
67
	bashcomp_alias ndctl cxl
68
}
69

  
70
pkg_postinst() {
71
	udev_reload
72
}
73

  
74
pkg_postrm() {
75
	udev_reload
69 76
}
Thank you!