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 5D575158083 for ; Thu, 12 Sep 2024 09:44:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A76BDE29A9; Thu, 12 Sep 2024 09:44:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 8B260E29A9 for ; Thu, 12 Sep 2024 09:44:27 +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 BDDEF34072E for ; Thu, 12 Sep 2024 09:44:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2C5AB1489 for ; Thu, 12 Sep 2024 09:44:25 +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: <1726134243.d1b12de488022ec3f79d5e4606a98289ca407aa9.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/Manifest dev-util/bugbite-cli/bugbite-cli-0.0.12.ebuild X-VCS-Directories: dev-util/bugbite-cli/ X-VCS-Committer: ago X-VCS-Committer-Name: Agostino Sarubbo X-VCS-Revision: d1b12de488022ec3f79d5e4606a98289ca407aa9 X-VCS-Branch: master Date: Thu, 12 Sep 2024 09:44:25 +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: 728e1689-97ad-4c90-b1b5-c05de9749aad X-Archives-Hash: 2bca739da883dacb6601796d74d229e3 commit: d1b12de488022ec3f79d5e4606a98289ca407aa9 Author: Agostino Sarubbo gentoo org> AuthorDate: Thu Sep 12 09:44:03 2024 +0000 Commit: Agostino Sarubbo gentoo org> CommitDate: Thu Sep 12 09:44:03 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1b12de4 dev-util/bugbite-cli: add 0.0.12 Signed-off-by: Agostino Sarubbo gentoo.org> dev-util/bugbite-cli/Manifest | 1 + dev-util/bugbite-cli/bugbite-cli-0.0.12.ebuild | 48 ++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/dev-util/bugbite-cli/Manifest b/dev-util/bugbite-cli/Manifest index 6e2786236cbc..f04c0cb5adab 100644 --- a/dev-util/bugbite-cli/Manifest +++ b/dev-util/bugbite-cli/Manifest @@ -1 +1,2 @@ DIST bugbite-cli-0.0.11.tar.xz 21068652 BLAKE2B a75137923c1578c8411a3b701564ad9883352478ba0467f7202ae3f668ae42d6890075b7a9b1f1d8ae1eb54a4280f3925f13d4b8656056e56c2a32f9f790ccd1 SHA512 b1df78427a3f5d1c44df95d077284fec5112385f31a480c6488fef20b53b43cbf1f80b1dcffd78b40f04d62364f8a8a7fd17f12ca0985d10ad3ee8f23ec3ae59 +DIST bugbite-cli-0.0.12.tar.xz 21202148 BLAKE2B dd7d7b0927741d77b3a724273360348558fc2675e22e948f2f9e2b418db6a263986e051ebb700094610e98021af6264288ebcbe271c0efac88c8091f9cd0725e SHA512 2056450d13ccbdf484ef2f4e4ea663a4f10fbd4222574e630510a85a0d10b2c939e9250be947b3bd1ea3a43a78f946b6e142db94f650aab0cd46db910f369411 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..54904ffd4168 --- /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.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 --features test --tests ${static_stuff} +} + +src_install() { + cargo_src_install + + doman man/* + dofishcomp shell/bite.fish + dozshcomp shell/_bite + newbashcomp shell/bite.bash bite +}