# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 # CRATES=" # " # Upstream have a fork of bindgen and use cgit # declare -A GIT_CRATES=( # [bindgen]="https://gitlab.com/Matt.Jolly/rust-bindgen-bcachefs;f773267b090bf16b9e8375fcbdcd8ba5e88806a8;rust-bindgen-bcachefs-%commit%/bindgen" # ) LLVM_MAX_SLOT=17 PYTHON_COMPAT=( python3_{10..12} ) inherit cargo flag-o-matic llvm multiprocessing python-any-r1 toolchain-funcs unpacker DESCRIPTION="Tools for bcachefs" HOMEPAGE="https://bcachefs.org/" if [[ ${PV} == "9999" ]]; then inherit git-r3 EGIT_REPO_URI="https://evilpiepirate.org/git/bcachefs-tools.git" else MY_COMMIT=1f78fed4693a5361f56508daac59bebd5b556379 SRC_URI="https://github.com/koverstreet/bcachefs-tools/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz ${CARGO_CRATE_URIS}" S="${WORKDIR}/${PN}-${MY_COMMIT}" KEYWORDS="~amd64" fi LICENSE="Apache-2.0 BSD GPL-2 MIT" SLOT="0" IUSE="fuse test" RESTRICT="!test? ( test )" DEPEND=" fuse? ( >=sys-fs/fuse-3.7.0 ) app-arch/lz4:= dev-libs/libaio dev-libs/libsodium:= dev-libs/userspace-rcu:= sys-apps/keyutils sys-apps/util-linux sys-libs/zlib virtual/udev " RDEPEND="${DEPEND}" # Clang is required for bindgen BDEPEND=" ${PYTHON_DEPS} $(python_gen_any_dep ' dev-python/docutils[${PYTHON_USEDEP}] test? ( dev-python/pytest[${PYTHON_USEDEP}] dev-python/pytest-xdist[${PYTHON_USEDEP}] ) ') $(unpacker_src_uri_depends)