commit: 9836eabc67ddb422808ca5489191b7d5deaaaefb Author: Jonas Frei <freijon <AT> pm <DOT> me> AuthorDate: Thu Nov 16 20:16:02 2023 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Thu Nov 16 20:16:30 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9836eabc
app-shells/carapace: new package, add 0.28.3 Signed-off-by: Jonas Frei <freijon <AT> pm.me> app-shells/carapace/Manifest | 2 ++ app-shells/carapace/carapace-0.28.3.ebuild | 35 ++++++++++++++++++++++++++++++ app-shells/carapace/metadata.xml | 12 ++++++++++ 3 files changed, 49 insertions(+) diff --git a/app-shells/carapace/Manifest b/app-shells/carapace/Manifest new file mode 100644 index 0000000000..f4b253e40a --- /dev/null +++ b/app-shells/carapace/Manifest @@ -0,0 +1,2 @@ +DIST carapace-0.28.3-deps.tar.xz 2151948 BLAKE2B ac5e1c09b2cfc6bfc45ae6db274ab676de4dc33b9da458951d44d930d7cc48dedeb2cc8496e434fef09ef066275631ddc30a51bab1da30cc40c2a528bbc11f89 SHA512 3faf83a36b030d961ebb097e9acfd4c1a41c8acdb8e3a60b782e41a66793778e690d4aba0e0e869cdfea29f4c4e6fbdde5e9aef2c1bfa5ff1ff704dc99276e42 +DIST carapace-0.28.3.tar.gz 12415261 BLAKE2B b77ddf40a715b9175e54cc447ae1fd3886dc71254157fc1e22632eebb898a9c89a7fe0b89682bcc71f8d11069a18f144edaf11e00409a3a6366f2e2ec6a68c4d SHA512 e6d71a05f347a9002ecf80090cb50342cf24e085b393d29aa10878c9b79796950836c019027ce2d8519251a88c0f1cd9fa9a39b5907f8aa55558a98fc6249462 diff --git a/app-shells/carapace/carapace-0.28.3.ebuild b/app-shells/carapace/carapace-0.28.3.ebuild new file mode 100644 index 0000000000..4ebb5c8543 --- /dev/null +++ b/app-shells/carapace/carapace-0.28.3.ebuild @@ -0,0 +1,35 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Multi-shell multi-command argument completer" +HOMEPAGE="https://rsteube.github.io/carapace-bin/" +SRC_URI="https://github.com/rsteube/${PN}-bin/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +# Using a dependency tarball as per https://devmanual.gentoo.org/eclass-reference/go-module.eclass/index.html +DEPS_URI="https://gitlab.com/freijon_gentoo/${CATEGORY}/${PN}/-/raw/main/${P}-deps.tar.xz" +SRC_URI+=" ${DEPS_URI}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +S="${WORKDIR}/${PN}-bin-${PV}" + +src_compile() { + pushd "cmd/${PN}" + ego generate ./... + ego build -ldflags="-s -w" -tags release +} + +src_install() { + dobin "cmd/${PN}/${PN}" + mv "docs/src" "docs/book" || die + rm -r "docs/book/changelog" || die + dodoc "README.md" + dodoc -r "docs/book" +} diff --git a/app-shells/carapace/metadata.xml b/app-shells/carapace/metadata.xml new file mode 100644 index 0000000000..de3ba19130 --- /dev/null +++ b/app-shells/carapace/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>frei...@pm.me</email> + <name>Jonas Frei</name> + </maintainer> + <upstream> + <remote-id type="github">rsteube/carapace-bin</remote-id> + <bugs-to>https://github.com/rsteube/carapace-bin/issues</bugs-to> + </upstream> +</pkgmetadata>