You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.2 KiB
70 lines
1.2 KiB
4 years ago
|
# Copyright 2021 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
inherit autotools bash-completion-r1
|
||
|
|
||
|
DESCRIPTION="Helper tools and libraries for managing non-volatile memory on Linux"
|
||
|
HOMEPAGE="https://github.com/pmem/ndctl"
|
||
|
SRC_URI="https://github.com/pmem/ndctl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2 LGPL-2.1 MIT CC0-1.0"
|
||
|
SLOT="0/6"
|
||
3 years ago
|
KEYWORDS="amd64 ~x86"
|
||
4 years ago
|
IUSE="bash-completion systemd test"
|
||
|
|
||
|
DEPEND="
|
||
|
dev-libs/json-c:=
|
||
|
sys-apps/keyutils:=
|
||
|
sys-apps/kmod:=
|
||
|
sys-apps/util-linux:=
|
||
|
virtual/libudev:=
|
||
|
systemd? ( sys-apps/systemd:= )
|
||
|
"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
BDEPEND="
|
||
|
app-text/asciidoc
|
||
|
app-text/xmlto
|
||
|
sys-devel/libtool
|
||
|
virtual/pkgconfig
|
||
|
"
|
||
|
|
||
|
RESTRICT="!test? ( test )"
|
||
|
|
||
|
# tests require root access
|
||
|
RESTRICT+=" test"
|
||
|
|
||
|
DOCS=(
|
||
|
README.md
|
||
|
CONTRIBUTING.md
|
||
|
)
|
||
|
|
||
3 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}/${PN}-71.1-bash-completion-configure.patch"
|
||
|
)
|
||
|
|
||
4 years ago
|
src_prepare() {
|
||
|
default
|
||
|
printf 'm4_define([GIT_VERSION], [%s])' "${PV}" > version.m4 || die
|
||
|
sed -e '/git-version-gen/ d' -i Makefile.am || die
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
3 years ago
|
--with-bash-completion-dir="$(get_bashcompdir)" \
|
||
4 years ago
|
$(use_with systemd) \
|
||
|
--disable-asciidoctor
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
emake check
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
3 years ago
|
bashcomp_alias ndctl daxctl
|
||
4 years ago
|
}
|