sys-block/thin-provisioning-tools: Sync with Gentoo

It's from Gentoo commit 0f59dd3b07c5f185426e5863b028f522260860de.
This commit is contained in:
Flatcar Buildbot 2024-11-25 07:09:15 +00:00 committed by Krzesimir Nowak
parent 1f4add5143
commit a1d573c185
3 changed files with 21 additions and 5 deletions

View File

@ -10,7 +10,7 @@ HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools"
if [[ ${PV} != *9999 ]]; then
SRC_URI="https://github.com/jthornber/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
else
inherit git-r3
EGIT_REPO_URI='https://github.com/jthornber/thin-provisioning-tools.git'

View File

@ -149,7 +149,7 @@ declare -A GIT_CRATES=(
LLVM_COMPAT=( {17..18} )
inherit llvm-r1 cargo
inherit cargo llvm-r1
DESCRIPTION="A suite of tools for thin provisioning on Linux"
HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools"
@ -162,7 +162,7 @@ else
https://github.com/jthornber/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="amd64 ~arm ~arm64 ~loong ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux"
fi
LICENSE="GPL-3"
@ -171,6 +171,12 @@ LICENSE+=" Apache-2.0 BSD GPL-3 ISC MIT MPL-2.0 Unicode-DFS-2016"
SLOT="0"
IUSE="io-uring"
RDEPEND="virtual/libudev:="
# libdevmapper.h needed for devicemapper-sys crate
DEPEND="
${RDEPEND}
sys-fs/lvm2
"
# Needed for bindgen
BDEPEND="
$(llvm_gen_dep '
@ -194,6 +200,11 @@ PATCHES=(
"${FILESDIR}/${PN}-1.0.6-build-with-cargo.patch"
)
pkg_setup() {
llvm-r1_pkg_setup
rust_pkg_setup
}
src_unpack() {
if [[ ${PV} == 9999 ]] ; then
git-r3_src_unpack

View File

@ -150,7 +150,7 @@ declare -A GIT_CRATES=(
LLVM_COMPAT=( {17..18} )
inherit llvm-r1 cargo
inherit cargo llvm-r1
DESCRIPTION="A suite of tools for thin provisioning on Linux"
HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools"
@ -163,7 +163,7 @@ else
https://github.com/jthornber/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux"
fi
LICENSE="GPL-3"
@ -201,6 +201,11 @@ PATCHES=(
"${FILESDIR}/${PN}-1.0.6-build-with-cargo.patch"
)
pkg_setup() {
llvm-r1_pkg_setup
rust_pkg_setup
}
src_unpack() {
if [[ ${PV} == 9999 ]] ; then
git-r3_src_unpack