commit:     31b0bbc7fdd8261b154c03135b4167a90de75a28
Author:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 10 13:13:39 2025 +0000
Commit:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Thu Apr 10 13:13:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31b0bbc7

dev-util/bugbite-cli: add 0.0.14

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

 dev-util/bugbite-cli/Manifest                  |  1 +
 dev-util/bugbite-cli/bugbite-cli-0.0.14.ebuild | 58 ++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/dev-util/bugbite-cli/Manifest b/dev-util/bugbite-cli/Manifest
index 6fd986718eb1..180a63d71f27 100644
--- a/dev-util/bugbite-cli/Manifest
+++ b/dev-util/bugbite-cli/Manifest
@@ -1 +1,2 @@
 DIST bugbite-cli-0.0.13.tar.xz 22286212 BLAKE2B 
c906446a89ae2c7346318cffb96c93178585ef42589bba4df4ecdf906e8890a922324d484bbd252e119a8d47370c63816dfb0a55481586de6f30f13d7d3d84bc
 SHA512 
40971032ff4e63416c3383a55418ba7c0c4c85321caace435000018da93176b6b1d83ee04aa4abdfa31646c9b6d1777c9e5acb035b14bca210bfc22ffc7fd90d
+DIST bugbite-cli-0.0.14.tar.xz 20837524 BLAKE2B 
219dd34809d732afa599b4580b8b7620b3e1e5a415911dc29a2a65f1af96216f6ce9e5ef2b1c0bd16ebc843ddce852641b087a90624f291e48c9ccbcc01fb734
 SHA512 
50d36716fbadb02a0472a5729ce4aeddcd76ca4f59d6a32a81a19ee27c5b550c8847661492d24de0f24c0951b9b7cae5b9ce1e999f1cd783ec2a47e02fac7954

diff --git a/dev-util/bugbite-cli/bugbite-cli-0.0.14.ebuild 
b/dev-util/bugbite-cli/bugbite-cli-0.0.14.ebuild
new file mode 100644
index 000000000000..d9df308167de
--- /dev/null
+++ b/dev-util/bugbite-cli/bugbite-cli-0.0.14.ebuild
@@ -0,0 +1,58 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUST_MIN_VER="1.84.0"
+
+inherit cargo edo multiprocessing 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="openssl static test"
+RESTRICT="!test? ( test ) "
+
+BDEPEND="
+       openssl? (
+               !static? ( dev-libs/openssl:= )
+               static? ( dev-libs/openssl:=[static-libs] )
+       )
+       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() {
+       local myfeatures=(
+               $(usev openssl native-tls)
+       )
+       cargo_src_configure --no-default-features ${static_stuff}
+}
+
+src_test() {
+       local -x NEXTEST_TEST_THREADS="$(makeopts_jobs)"
+       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