public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Agostino Sarubbo" <ago@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bugbite-cli/
Date: Thu, 28 Mar 2024 14:24:26 +0000 (UTC)	[thread overview]
Message-ID: <1711635843.d2a235a030c96ad9d3fb967b91c9c102884430eb.ago@gentoo> (raw)

commit:     d2a235a030c96ad9d3fb967b91c9c102884430eb
Author:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 28 14:24:03 2024 +0000
Commit:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Thu Mar 28 14:24:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2a235a0

dev-util/bugbite-cli: add a revision to hack around a static build

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

 dev-util/bugbite-cli/bugbite-cli-0.0.7-r1.ebuild | 48 ++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/dev-util/bugbite-cli/bugbite-cli-0.0.7-r1.ebuild b/dev-util/bugbite-cli/bugbite-cli-0.0.7-r1.ebuild
new file mode 100644
index 000000000000..8389e8b00161
--- /dev/null
+++ b/dev-util/bugbite-cli/bugbite-cli-0.0.7-r1.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"
+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 --all-features --tests ${static_stuff}
+}
+
+src_install() {
+	cargo_src_install
+
+	doman man/*
+	dofishcomp shell/bite.fish
+	dozshcomp shell/_bite
+	newbashcomp shell/bite.bash bite
+}


             reply	other threads:[~2024-03-28 14:24 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-28 14:24 Agostino Sarubbo [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-15 13:47 [gentoo-commits] repo/gentoo:master commit in: dev-util/bugbite-cli/ Agostino Sarubbo
2025-04-10 13:50 Agostino Sarubbo
2025-04-10 13:14 Agostino Sarubbo
2025-01-28 12:21 Sam James
2024-11-20 12:51 Agostino Sarubbo
2024-11-09 13:48 Sam James
2024-11-09 13:48 Sam James
2024-11-08 11:36 Agostino Sarubbo
2024-09-12 14:48 Agostino Sarubbo
2024-09-12  9:44 Agostino Sarubbo
2024-09-12  9:44 Agostino Sarubbo
2024-08-26  8:51 Agostino Sarubbo
2024-08-26  8:51 Agostino Sarubbo
2024-04-20 17:59 Agostino Sarubbo
2024-04-20 17:59 Agostino Sarubbo
2024-04-13  5:39 Agostino Sarubbo
2024-04-13  5:39 Agostino Sarubbo
2024-04-11 11:39 Agostino Sarubbo
2024-04-10 10:25 Agostino Sarubbo
2024-04-10  9:59 Agostino Sarubbo
2024-04-10  9:59 Agostino Sarubbo
2024-04-10  9:17 Agostino Sarubbo
2024-03-29 10:33 Agostino Sarubbo
2024-03-27 11:35 Agostino Sarubbo
2024-03-27 11:29 Agostino Sarubbo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1711635843.d2a235a030c96ad9d3fb967b91c9c102884430eb.ago@gentoo \
    --to=ago@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox