commit:     48a6916e88a4b129c3d731ed45681d123a4b60d4
Author:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 13 05:38:56 2024 +0000
Commit:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Sat Apr 13 05:38:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48a6916e

dev-util/bugbite-cli: version bump to 0.0.9

Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>

 dev-util/bugbite-cli/Manifest                 |  1 +
 dev-util/bugbite-cli/bugbite-cli-0.0.9.ebuild | 48 +++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/dev-util/bugbite-cli/Manifest b/dev-util/bugbite-cli/Manifest
index 8b68a60adf5d..b3087e4a8e52 100644
--- a/dev-util/bugbite-cli/Manifest
+++ b/dev-util/bugbite-cli/Manifest
@@ -1 +1,2 @@
 DIST bugbite-cli-0.0.8.tar.xz 25695676 BLAKE2B 
9d9d1f65219d5e8e18e0cf785d3c8b22e5b02d71066cbd131c74d980b90d5479425ea9a4427eb63931c871a83a7f38c9e6de9fc3f6fa0404907b523895635232
 SHA512 
f708a1bb4604a75dbadca13a64db1952194db4b409ba1a5fc0e76ced5ebd00f3a97f563855f030c72b1296c10955260183c1eddee18c5bb76429edc1e8006a90
+DIST bugbite-cli-0.0.9.tar.xz 18610920 BLAKE2B 
0c8a18a65da4535250e17f5f7456bc01c8b135f29f5edb58e2bf66fec22d0408634841d5bbb6d4c000235b994e2473564f8f646ae6e8b9161b9e371ea37dcc41
 SHA512 
fb2192aefdae469ea641bc2cb2678604b65c4ca88777b93811e3f753fe0e0807fbadb95ec8a0f40cf68ab495788064cdc121e501ae76f177ed04ba760505636e

diff --git a/dev-util/bugbite-cli/bugbite-cli-0.0.9.ebuild 
b/dev-util/bugbite-cli/bugbite-cli-0.0.9.ebuild
new file mode 100644
index 000000000000..54904ffd4168
--- /dev/null
+++ b/dev-util/bugbite-cli/bugbite-cli-0.0.9.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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="
+       >=virtual/rust-1.75
+       test? ( dev-util/cargo-nextest )
+"
+
+QA_FLAGS_IGNORED="usr/bin/bite"
+
+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
+}

Reply via email to