diff options
Diffstat (limited to 'sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.8.ebuild')
-rw-r--r-- | sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.8.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.8.ebuild b/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.8.ebuild new file mode 100644 index 000000000000..249efde287e3 --- /dev/null +++ b/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.8.ebuild @@ -0,0 +1,47 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" " +LLVM_MAX_SLOT=16 +inherit cargo llvm + +DESCRIPTION="pkgcraft-based tools for Gentoo" +HOMEPAGE="https://pkgcraft.github.io/" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/pkgcraft/pkgcraft" + inherit git-r3 + + S="${WORKDIR}"/${P}/crates/pkgcraft-tools +else + SRC_URI="https://github.com/pkgcraft/pkgcraft/releases/download/${P}/${P}.tar.xz" + + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" Apache-2.0 BSD-2 BSD CC0-1.0 GPL-3+ ISC MIT Unicode-DFS-2016" +SLOT="0" + +QA_FLAGS_IGNORED="usr/bin/pk" + +# Clang needed for bindgen +BDEPEND=" + <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)) +" + +llvm_check_deps() { + has_version -b "sys-devel/clang:${LLVM_SLOT}" +} + +src_unpack() { + if [[ ${PV} == 9999 ]] ; then + git-r3_src_unpack + cargo_live_src_unpack + else + cargo_src_unpack + fi +} |