From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 99E2E1582EF for ; Fri, 28 Feb 2025 10:27:00 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 8915B34305D for ; Fri, 28 Feb 2025 10:27:00 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 8B98B1102C9; Fri, 28 Feb 2025 10:26:59 +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 bobolink.gentoo.org (Postfix) with ESMTPS id 7FD681102C9 for ; Fri, 28 Feb 2025 10:26:59 +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 33DAA34305A for ; Fri, 28 Feb 2025 10:26:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 93EFD1A10 for ; Fri, 28 Feb 2025 10:26:57 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1740738402.2fdf97bcd0df65ecf59efdb0b435b5e899bbe4e5.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/go-jira/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/go-jira/go-jira-1.0.28-r1.ebuild X-VCS-Directories: app-misc/go-jira/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 2fdf97bcd0df65ecf59efdb0b435b5e899bbe4e5 X-VCS-Branch: master Date: Fri, 28 Feb 2025 10:26:57 +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: ee192f2f-526b-4192-8606-fa4a75d75719 X-Archives-Hash: 63dcc178efd98857738f1042be23a55e commit: 2fdf97bcd0df65ecf59efdb0b435b5e899bbe4e5 Author: Arthur Zamarin gentoo org> AuthorDate: Fri Feb 28 10:24:28 2025 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Feb 28 10:26:42 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fdf97bc app-misc/go-jira: EAPI=8, fix gen shell-completion, fix license Signed-off-by: Arthur Zamarin gentoo.org> app-misc/go-jira/go-jira-1.0.28-r1.ebuild | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/app-misc/go-jira/go-jira-1.0.28-r1.ebuild b/app-misc/go-jira/go-jira-1.0.28-r1.ebuild new file mode 100644 index 000000000000..20d8f277a9f8 --- /dev/null +++ b/app-misc/go-jira/go-jira-1.0.28-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module shell-completion toolchain-funcs + +DESCRIPTION="A simple JIRA commandline client in Go" +HOMEPAGE="https://github.com/go-jira/jira" +SRC_URI="https://github.com/go-jira/jira/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" +S=${WORKDIR}/jira-${PV} + +LICENSE="Apache-2.0" +# Dependent licenses +LICENSE+=" BSD" +SLOT="0" +KEYWORDS="~amd64" + +src_compile() { + ego build -o jira ./cmd/jira + + if ! tc-is-cross-compiler; then + elog "generating shell completion files" + # those commands exit OK with 1, so we can't use die + + ./jira --completion-script-bash > jira.bash + grep -q "complete -F" jira.bash || die "bash completion script is invalid" + + ./jira --completion-script-zsh > jira.zsh + grep -q "compdef jira" jira.zsh || die "zsh completion script is invalid" + fi +} + +src_install() { + dobin jira + dodoc {CHANGELOG,README}.md + + if ! tc-is-cross-compiler; then + newbashcomp jira.bash jira + newzshcomp jira.zsh _jira + else + ewarn "Shell completion files not installed!" + fi +}