# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cargo DESCRIPTION="A suite of tools for thin provisioning on Linux" HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools" if [[ ${PV} == *9999 ]]; then EGIT_REPO_URI="https://github.com/jthornber/thin-provisioning-tools.git" inherit git-r3 else SRC_URI="https://github.com/jthornber/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" fi LICENSE="GPL-3" SLOT="0" # Rust QA_FLAGS_IGNORED="usr/sbin/pdata_tools" src_unpack() { if [[ ${PV} == 9999 ]] ; then git-r3_src_unpack cargo_live_src_unpack else default fi } src_compile() { emake V= } src_install() { emake V= DESTDIR="${D}" DATADIR="${ED}/usr/share" install }