summaryrefslogtreecommitdiff
path: root/dev-util/bugbite-cli/bugbite-cli-0.0.14.ebuild
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
commitbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch)
tree0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-util/bugbite-cli/bugbite-cli-0.0.14.ebuild
parentf716a9fe6455d39eef01e718aae68dae61c19704 (diff)
downloadbaldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-util/bugbite-cli/bugbite-cli-0.0.14.ebuild')
-rw-r--r--dev-util/bugbite-cli/bugbite-cli-0.0.14.ebuild64
1 files changed, 64 insertions, 0 deletions
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..5878ef3a43fa
--- /dev/null
+++ b/dev-util/bugbite-cli/bugbite-cli-0.0.14.ebuild
@@ -0,0 +1,64 @@
+# 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 )
+"
+
+RDEPEND="
+ openssl? (
+ !static? ( dev-libs/openssl:= )
+ )
+"
+
+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
+}