# Copyright 2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # Auto-Generated by cargo-ebuild 0.5.4 EAPI=8 inherit cargo git-r3 DESCRIPTION="JavaScript toolchain manager" # Double check the homepage as the cargo_metadata crate # does not provide this value so instead repository is used HOMEPAGE="https://volta.sh" EGIT_REPO_URI="https://github.com/volta-cli/volta" # License set may be more restrictive as OR is not respected # use cargo-license for a more accurate license picture LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 CC0-1.0 ISC MIT MIT-0 MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB" SLOT="0" DEPEND="" RDEPEND="${DEPEND}" BDEPEND="" # rust does not use *FLAGS from make.conf, silence portage warning # update with proper path to binaries this crate installs, omit leading / QA_FLAGS_IGNORED="usr/bin/${PN}" src_unpack() { git-r3_src_unpack cargo_live_src_unpack } src_compile() { filter-lto # does not play well with C code in crates cargo_src_compile --bins # note: configure --bins would skip tests } src_test() { virtx cargo_src_test }