summaryrefslogtreecommitdiff
path: root/dev-util/bugbite-cli/bugbite-cli-0.0.12.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-09-13 04:56:54 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-09-13 04:56:54 +0000
commit0422c762a11ff5f24c2a02ba04c14eaf2e0d4f2a (patch)
treee0112fa64c8464853138707d834917b6a1d402fc /dev-util/bugbite-cli/bugbite-cli-0.0.12.ebuild
parent29d16742fb77e300dfeadf7b6f3472bb4fa072c2 (diff)
downloadbaldeagleos-repo-0422c762a11ff5f24c2a02ba04c14eaf2e0d4f2a.tar.gz
baldeagleos-repo-0422c762a11ff5f24c2a02ba04c14eaf2e0d4f2a.tar.xz
baldeagleos-repo-0422c762a11ff5f24c2a02ba04c14eaf2e0d4f2a.zip
Adding metadata
Diffstat (limited to 'dev-util/bugbite-cli/bugbite-cli-0.0.12.ebuild')
-rw-r--r--dev-util/bugbite-cli/bugbite-cli-0.0.12.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-util/bugbite-cli/bugbite-cli-0.0.12.ebuild b/dev-util/bugbite-cli/bugbite-cli-0.0.12.ebuild
new file mode 100644
index 000000000000..c6f7e464be0b
--- /dev/null
+++ b/dev-util/bugbite-cli/bugbite-cli-0.0.12.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.79
+ 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
+}