aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Frei <freijon@pm.me>2024-05-12 19:55:10 +0200
committerJonas Frei <freijon@pm.me>2024-05-12 19:55:10 +0200
commitfe5cf6966faac092bd0c262430e15300fed6b946 (patch)
treedcd2679b9b902fa326cf9b9e689ef40015ca7ca6 /app-shells
parentgui-apps/lswt: fix CFLAGS and support EPREFIX (diff)
downloadguru-fe5cf6966faac092bd0c262430e15300fed6b946.tar.gz
guru-fe5cf6966faac092bd0c262430e15300fed6b946.tar.bz2
guru-fe5cf6966faac092bd0c262430e15300fed6b946.zip
app-shells/carapace: add 1.0.2
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.2.ebuild40
2 files changed, 42 insertions, 0 deletions
diff --git a/app-shells/carapace/Manifest b/app-shells/carapace/Manifest
index ae21f5ef0..3a02ac912 100644
--- a/app-shells/carapace/Manifest
+++ b/app-shells/carapace/Manifest
@@ -4,3 +4,5 @@ DIST carapace-1.0.0-deps.tar.xz 3057572 BLAKE2B e61f5e496ab6e349d2ec1ee56e2ff85e
DIST carapace-1.0.0.tar.gz 14593185 BLAKE2B 2021c05a964e68f12551a6f44c9e95bc095631e98f5e00eef21ed870f8926b854813cc5d15777f0fbd27b9a90a0b456dd729b761d0019dc1c7784fbe80db7c8a SHA512 0a65597438852a03d1fcd2fb974b02cc0e68ff39d47daa75a51a0650232f11e7916992bc80a0b1f907e2325a8e7b70baab008f0a1061b6032b70a0c27ead3623
DIST carapace-1.0.1-deps.tar.xz 3059464 BLAKE2B 2d6590659d707e8820c71f25b1d69e88b0f40a0a9738e3568095568bd2db013acbd754f913060c778a3932b4f16688e94f768680a5843b19a2b7a62da81c4f72 SHA512 4ac7f058a6fa27c9c205eddc31557cdd025d6946313b53f5da08c5608c1b8a62d79b6758f1729832b7cff05ead696367fcd3441aaa6f9f5a92cf6531f3a1b523
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
diff --git a/app-shells/carapace/carapace-1.0.2.ebuild b/app-shells/carapace/carapace-1.0.2.ebuild
new file mode 100644
index 000000000..2fee4c3b2
--- /dev/null
+++ b/app-shells/carapace/carapace-1.0.2.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
+}