From d7f7e5749b1e48edd697ff6a9303c305f346d8b2 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Sat, 9 Nov 2024 18:52:06 +0000 Subject: Adding metadata --- dev-util/bugbite-cli/bugbite-cli-0.0.12-r1.ebuild | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 dev-util/bugbite-cli/bugbite-cli-0.0.12-r1.ebuild (limited to 'dev-util/bugbite-cli/bugbite-cli-0.0.12-r1.ebuild') diff --git a/dev-util/bugbite-cli/bugbite-cli-0.0.12-r1.ebuild b/dev-util/bugbite-cli/bugbite-cli-0.0.12-r1.ebuild new file mode 100644 index 000000000000..f06cb294c832 --- /dev/null +++ b/dev-util/bugbite-cli/bugbite-cli-0.0.12-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +RUST_MIN_VER="1.79.0" + +inherit cargo edo shell-completion + +DESCRIPTION="A command line tool for bug, issue, and ticket mangling" +HOMEPAGE="https://github.com/radhermit/bugbite" +SRC_URI="https://github.com/radhermit/bugbite/releases/download/${P}/${P}.tar.xz" +LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 CC0-1.0 ISC MIT MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="static test" +RESTRICT="!test? ( test ) " + +BDEPEND=" + test? ( dev-util/cargo-nextest ) +" + +QA_FLAGS_IGNORED="usr/bin/bite" + +pkg_setup() { + rust_pkg_setup + if [[ ${MERGE_TYPE} != binary ]] && use static ; then + local rust_target=$( rustc -vV 2>/dev/null | sed -n 's|^host: ||p' ) + [[ -z ${rust_target} ]] && die "Failed to read host target from rustc!" + export RUSTFLAGS="-C target-feature=+crt-static ${RUSTFLAGS}" + export static_stuff="--target ${rust_target}" + fi +} + +src_configure() { + cargo_src_configure ${static_stuff} +} + +src_test() { + edo ${CARGO} nextest run $(usev !debug '--release') --color always --features test --tests ${static_stuff} +} + +src_install() { + cargo_src_install + + doman man/* + dofishcomp shell/bite.fish + dozshcomp shell/_bite + newbashcomp shell/bite.bash bite +} -- cgit v1.3