aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Frei <freijon@pm.me>2024-06-15 06:59:34 +0200
committerJonas Frei <freijon@pm.me>2024-06-15 09:14:46 +0200
commit18b0198fcd5b26a012791ce63dc7f9af797111df (patch)
tree5767c02775d5f9b7cc863aae6ed54533c69a4317 /app-shells
parentnet-dns/AdGuardHome: cleanup (diff)
downloadguru-18b0198fcd5b26a012791ce63dc7f9af797111df.tar.gz
guru-18b0198fcd5b26a012791ce63dc7f9af797111df.tar.bz2
guru-18b0198fcd5b26a012791ce63dc7f9af797111df.zip
app-shells/carapace: add 1.0.3
Signed-off-by: Jonas Frei <freijon@pm.me>
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/carapace/Manifest2
-rw-r--r--app-shells/carapace/carapace-1.0.3.ebuild40
2 files changed, 42 insertions, 0 deletions
diff --git a/app-shells/carapace/Manifest b/app-shells/carapace/Manifest
index 6f7e7f187..2f5f9881b 100644
--- a/app-shells/carapace/Manifest
+++ b/app-shells/carapace/Manifest
@@ -4,3 +4,5 @@ DIST carapace-1.0.1-deps.tar.xz 3059464 BLAKE2B 2d6590659d707e8820c71f25b1d69e88
DIST carapace-1.0.1.tar.gz 14611346 BLAKE2B 6e7d0ce9897f4b4251531d951cbdece9420931141d311b84b873ecd51f9e1ebe9bd0ee4ab647e1e578ed372469e11769621448c8e0b6c61774513088bb6da763 SHA512 4e4d745879209343ff06e2d716bcbb7ec59920bb885deea9cb6a765d4c7a2040e4ace578e3fa820bda4c89a6ecab55e48e914f22c00565551331645e62e3fe73
DIST carapace-1.0.2-deps.tar.xz 3057732 BLAKE2B e657e06d1cf7d2f72210c2d61c5b5180db8a14f2aa93bcea463311c7523b4d0e8ce27f344e7fae54ac3fb4a941679d41882213cdc3a3db101821ac8227cd5919 SHA512 268989ab7ee3d86b174b261517bc2bc55ba33467d3f7eb88ebba220164bb938a4a7560afcc5aef7c9fc112d896116f9d6db26176c8aa4b32742ea4229abbf7ea
DIST carapace-1.0.2.tar.gz 14617140 BLAKE2B 0837165d4930d6e9fdd47ece9c51a8c7470bf6abd4f873c023658ed8c39e307a7b2a66f0d79d47f9767b29207e09ee9fb12e82d136e5e4b04709fd0202d76150 SHA512 f32bea9b15d0517dab0a0e5176fdab4e23dc3c11209a9647578adf3f2a12628d69424505e1833bbab497d8f8348c393e0dcf5250434cf860ae2e6bb0e04e2bc5
+DIST carapace-1.0.3-deps.tar.xz 3060444 BLAKE2B 560a0ee95810cca800ab4ebcf22c90e7971c7748ff50da79ae5c58b9775c4ed159ea67b2ecdb232bd7e919b0831641510cae30fdff6e91592b983a3581bc7e18 SHA512 996364d0746c678bb75e950656e0d969ff78235e148afb415472b3153169f2d5d4c74e361490e69f84b50564246cf18b7ef2238c09de7445694d427accdaa4c9
+DIST carapace-1.0.3.tar.gz 14613295 BLAKE2B 71cd6675a30673dba859f3647ee18299def074c4e8d1dd29ffa0c0264d128c55a04f3177f67928742b5a86984aee3782432e041376e6a702c6715e4fd67bb9aa SHA512 8b1781bff0d2f1e9a7b9b433153eced755231479c7eabf383af07687b4c588f8488dc43d4f6707ba345548737318b442ac0e4614068017106540ef50ef4b1527
diff --git a/app-shells/carapace/carapace-1.0.3.ebuild b/app-shells/carapace/carapace-1.0.3.ebuild
new file mode 100644
index 000000000..2fee4c3b2
--- /dev/null
+++ b/app-shells/carapace/carapace-1.0.3.ebuild
@@ -0,0 +1,40 @@
+# 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://carapace.sh/"
+SRC_URI="https://github.com/${PN}-sh/${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}"
+
+S="${WORKDIR}/${PN}-bin-${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DOCS=(
+ "README.md"
+)
+HTML_DOCS=(
+ "docs/book/"
+)
+
+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/release_notes" || die
+ einstalldocs
+}