From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20ACD158041 for ; Thu, 28 Mar 2024 14:24:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5BA632BC013; Thu, 28 Mar 2024 14:24:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 33FD62BC013 for ; Thu, 28 Mar 2024 14:24:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2093034068A for ; Thu, 28 Mar 2024 14:24:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 81A0E14C3 for ; Thu, 28 Mar 2024 14:24:26 +0000 (UTC) From: "Agostino Sarubbo" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Agostino Sarubbo" Message-ID: <1711635843.d2a235a030c96ad9d3fb967b91c9c102884430eb.ago@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bugbite-cli/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/bugbite-cli/bugbite-cli-0.0.7-r1.ebuild X-VCS-Directories: dev-util/bugbite-cli/ X-VCS-Committer: ago X-VCS-Committer-Name: Agostino Sarubbo X-VCS-Revision: d2a235a030c96ad9d3fb967b91c9c102884430eb X-VCS-Branch: master Date: Thu, 28 Mar 2024 14:24:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1f4eac8a-e490-49a1-accf-e27d6ae27a69 X-Archives-Hash: 2476a3a247fed2cd7874c83d0da2a9a2 commit: d2a235a030c96ad9d3fb967b91c9c102884430eb Author: Agostino Sarubbo gentoo org> AuthorDate: Thu Mar 28 14:24:03 2024 +0000 Commit: Agostino Sarubbo gentoo 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 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 +}