mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-02 11:38:07 -07:00
sys-libs/libblockdev: add 3.5.0
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1327 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
d7594adf21
commit
804ee365c0
@@ -1,2 +1,3 @@
|
||||
DIST libblockdev-3.3.1.tar.gz 1160139 BLAKE2B 4baf4f980df4a71faf085f9e94cd18b0eb64f3f8f0fd68c3bd20b54109709c7cd3aca26cedfa1a8ec9ae4fd44df55a5d4237c3d3fc61a58dbd5288da6f0c0189 SHA512 f9cc15bf19120a8bb77efe82889b15c9435f4c94a1ed677839a1bcfe5bd242719f40221ba2685f4376cc52ec1e8a044f93840cb504fd7574fff1a8dd5e85d477
|
||||
DIST libblockdev-3.4.0.tar.gz 1161068 BLAKE2B 330efc4792465b7fd74a6028cd90274b95333c2e3b449e0ed965eb663e59ac2e77e5fcda755a74f7a775fc217a21344440b9d18bed08bd2e6726da93187ea811 SHA512 d722ee1f41b76158b41f57ea4062adaba274c5ffdd88fa40b0b605a8557e68ba095e6a6649b8f6efeff9ad814532b5b19aa541a1688ef4b34ea23078d946c1d3
|
||||
DIST libblockdev-3.5.0.tar.gz 1191802 BLAKE2B d852cd6bf62e4b138a38b4756cb3bf11f7cfc4d5289b021d8b84c1738591609b66b3dbe6d51d53b77e60ac5705568db5d5b6b68f2c88b2ecb0ccea686cf95389 SHA512 bdc22bd2ec23a6e0fcee9e41d6e4ed05645b7c5413874e6ed8bc0f2ad17d5e671ed966e8697a2a2b65738eb49830ade3c302a93f9facb7542685e544ebe9106a
|
||||
|
||||
163
sys-libs/libblockdev/libblockdev-3.5.0.ebuild
Normal file
163
sys-libs/libblockdev/libblockdev-3.5.0.ebuild
Normal file
@@ -0,0 +1,163 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
inherit autotools python-single-r1 xdg-utils
|
||||
|
||||
DESCRIPTION="Library for manipulating block devices"
|
||||
HOMEPAGE="https://github.com/storaged-project/libblockdev"
|
||||
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/storaged-project/libblockdev.git"
|
||||
BDEPEND="
|
||||
dev-build/autoconf-archive
|
||||
"
|
||||
else
|
||||
SRC_URI="https://github.com/storaged-project/${PN}/releases/download/${PV}/${P}.tar.gz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="0/3" # subslot is SOVERSION
|
||||
IUSE="+cryptsetup device-mapper escrow gtk-doc introspection lvm +nvme python smart test +tools"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# sys-fs/e2fsprogs: required by --with-fs
|
||||
# virtual/libudev: required at top-level
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.42.2
|
||||
>=dev-libs/libbytesize-0.1
|
||||
sys-apps/gptfdisk
|
||||
>=sys-apps/kmod-19
|
||||
>=sys-apps/util-linux-2.30
|
||||
sys-fs/e2fsprogs:=
|
||||
virtual/libudev:=
|
||||
cryptsetup? (
|
||||
>=sys-apps/keyutils-1.5.0:=
|
||||
>=sys-fs/cryptsetup-2.8.0:=
|
||||
escrow? (
|
||||
>=dev-libs/nss-3.18.0
|
||||
dev-libs/volume_key
|
||||
)
|
||||
)
|
||||
device-mapper? ( sys-fs/lvm2 )
|
||||
lvm? (
|
||||
>=dev-libs/json-glib-1.0
|
||||
dev-libs/libyaml
|
||||
sys-fs/lvm2
|
||||
virtual/udev
|
||||
)
|
||||
nvme? ( >=sys-libs/libnvme-1.3:= )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
smart? (
|
||||
>=dev-libs/json-glib-1.0
|
||||
sys-apps/smartmontools
|
||||
)
|
||||
tools? (
|
||||
>=sys-block/parted-3.2
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND+="
|
||||
dev-build/gtk-doc-am
|
||||
gtk-doc? ( dev-util/gtk-doc )
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2 )
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-libs/libbytesize[python,${PYTHON_USEDEP}]
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
')
|
||||
sys-apps/lsb-release
|
||||
sys-block/targetcli-fb
|
||||
)
|
||||
"
|
||||
|
||||
REQUIRED_USE="
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
test? ( ${PYTHON_REQUIRED_USE} )
|
||||
escrow? ( cryptsetup )
|
||||
test? ( introspection lvm )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.0.4-add-non-systemd-method-for-distro-info.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if use python || use test ; then
|
||||
python-single-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
xdg_environment_reset # bug #623992
|
||||
|
||||
# bug #744289
|
||||
find -type f \( -name "Makefile.am" -o -name "configure.ac" \) -print0 \
|
||||
| xargs --null sed "s@ -Werror@@" -i || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--with-btrfs
|
||||
--with-fs
|
||||
--with-part
|
||||
--without-mpath
|
||||
--without-nvdimm
|
||||
# dev-libs/libatasmart is inactive upstream, so we just
|
||||
# have USE=smart control sys-apps/smartmontools use.
|
||||
--without-smart
|
||||
|
||||
$(use_enable introspection)
|
||||
$(use_enable test tests)
|
||||
$(use_with cryptsetup crypto)
|
||||
$(use_with device-mapper dm)
|
||||
$(use_with escrow)
|
||||
$(use_with gtk-doc)
|
||||
$(use_with lvm lvm)
|
||||
$(use_with lvm lvm-dbus)
|
||||
$(use_with nvme)
|
||||
$(use_with python python3)
|
||||
$(use_with smart smartmontools)
|
||||
$(use_with tools)
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# See http://storaged.org/libblockdev/ch03.html
|
||||
# Largest subset which doesn't require root privileges
|
||||
"${EPYTHON}" tests/run_tests.py --include-tags extradeps sourceonly || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
|
||||
# This is installed even with USE=-lvm, but libbd_lvm are omitted so it
|
||||
# doesn't work at all.
|
||||
if ! use lvm ; then
|
||||
rm -f "${ED}"/usr/bin/lvm-cache-stats || die
|
||||
fi
|
||||
|
||||
# bug #718576
|
||||
if use python ; then
|
||||
python_optimize
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user