Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/ndctl/
Date: Thu, 06 Jan 2022 18:28:01
Message-Id: 1641493670.a67b5680bfeb037ece9227225358f30e31d9e04f.chutzpah@gentoo
1 commit: a67b5680bfeb037ece9227225358f30e31d9e04f
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 6 18:27:46 2022 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 6 18:27:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a67b5680
7
8 sys-block/ndctl: Version bump to 72.1
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
12
13 sys-block/ndctl/Manifest | 1 +
14 sys-block/ndctl/ndctl-72.1.ebuild | 74 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 75 insertions(+)
16
17 diff --git a/sys-block/ndctl/Manifest b/sys-block/ndctl/Manifest
18 index d1e4db609220..29fe610e9bb0 100644
19 --- a/sys-block/ndctl/Manifest
20 +++ b/sys-block/ndctl/Manifest
21 @@ -1 +1,2 @@
22 DIST ndctl-71.1.tar.gz 330512 BLAKE2B 582f29fb649f33a48b5412bfefc15de2b1f765b27251d1b8a472d8c7705d671acbd6bf646f737baf8556d8fda39db68242f44e11225d7305e95f5d2ec5931f31 SHA512 92fb06ca64455775ce0b89ba0846f70235e02fe3502e2a8a55a858f76f87cb90ae98f5bf01620e5884f667ea78ee2bee2cd9e7a85ffa8f8d9c456e9282ca9ebc
23 +DIST ndctl-72.1.tar.gz 365324 BLAKE2B 2e061bd1357c0b422f728e8624106d93e9eed2f5c7795428b0c61d041ab45569aa8bb6eb52544360ad538be85f3b7f84f8c9ab1037a8ca5498c2e1a13fa22186 SHA512 7304e23121c99457fa6e22a399fb636f6a66d6d07b090463ec41e424687b06e7e8a1a18623ab9dd5783aaccfa09ff964e3477b63aaa4614ac60f6e6050452f12
24
25 diff --git a/sys-block/ndctl/ndctl-72.1.ebuild b/sys-block/ndctl/ndctl-72.1.ebuild
26 new file mode 100644
27 index 000000000000..e19869475171
28 --- /dev/null
29 +++ b/sys-block/ndctl/ndctl-72.1.ebuild
30 @@ -0,0 +1,74 @@
31 +# Copyright 2021-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit udev autotools bash-completion-r1
37 +
38 +DESCRIPTION="Helper tools and libraries for managing non-volatile memory on Linux"
39 +HOMEPAGE="https://github.com/pmem/ndctl"
40 +SRC_URI="https://github.com/pmem/ndctl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2 LGPL-2.1 MIT CC0-1.0"
43 +SLOT="0/6"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="bash-completion systemd test"
46 +
47 +DEPEND="
48 + dev-libs/iniparser:0=
49 + dev-libs/json-c:=
50 + sys-apps/keyutils:=
51 + sys-apps/kmod:=
52 + sys-apps/util-linux:=
53 + virtual/libudev:=
54 + systemd? ( sys-apps/systemd:= )
55 +"
56 +RDEPEND="${DEPEND}"
57 +BDEPEND="
58 + app-text/asciidoc
59 + app-text/xmlto
60 + sys-devel/libtool
61 + virtual/pkgconfig
62 +"
63 +
64 +RESTRICT="!test? ( test )"
65 +
66 +# tests require root access
67 +RESTRICT+=" test"
68 +
69 +DOCS=(
70 + README.md
71 + CONTRIBUTING.md
72 +)
73 +
74 +PATCHES=(
75 + "${FILESDIR}/ndctl-71.1-bash-completion-configure.patch"
76 +)
77 +
78 +src_prepare() {
79 + default
80 + printf 'm4_define([GIT_VERSION], [%s])' "${PV}" > version.m4 || die
81 + sed -e '/git-version-gen/ d' -i Makefile.am || die
82 + eautoreconf
83 +}
84 +
85 +src_configure() {
86 + econf \
87 + --with-bash-completion-dir="$(get_bashcompdir)" \
88 + --with-udevrulesdir=$(get_udevdir)/rules.d \
89 + $(use_with systemd) \
90 + --disable-asciidoctor
91 +}
92 +
93 +src_test() {
94 + emake check
95 +}
96 +
97 +src_install() {
98 + default
99 +
100 + find "${ED}" -name '*.la' -delete || die
101 +
102 + bashcomp_alias ndctl daxctl
103 + bashcomp_alias ndctl cxl
104 +}