diff options
author | Jonas Frei <freijon@pm.me> | 2024-03-24 06:36:34 +0100 |
---|---|---|
committer | Jonas Frei <freijon@pm.me> | 2024-03-24 06:41:48 +0100 |
commit | 2c7b74f622dcaef79f98eb550be9ca0be52d5476 (patch) | |
tree | 554096edf5ddd49790fddbec8d2a218d957756c2 /app-shells | |
parent | x11-terms/rio-terminfo: drop 0.0.28 (diff) | |
download | guru-2c7b74f622dcaef79f98eb550be9ca0be52d5476.tar.gz guru-2c7b74f622dcaef79f98eb550be9ca0be52d5476.tar.bz2 guru-2c7b74f622dcaef79f98eb550be9ca0be52d5476.zip |
app-shells/carapace: add 1.0.0
Signed-off-by: Jonas Frei <freijon@pm.me>
Diffstat (limited to 'app-shells')
-rw-r--r-- | app-shells/carapace/Manifest | 2 | ||||
-rw-r--r-- | app-shells/carapace/carapace-1.0.0.ebuild | 40 |
2 files changed, 42 insertions, 0 deletions
diff --git a/app-shells/carapace/Manifest b/app-shells/carapace/Manifest index 058dc3119..db16418cf 100644 --- a/app-shells/carapace/Manifest +++ b/app-shells/carapace/Manifest @@ -2,3 +2,5 @@ DIST carapace-0.28.5-deps.tar.xz 2166312 BLAKE2B 9ae03183e1f3f8e3b121f76f226bfe0 DIST carapace-0.28.5.tar.gz 12432252 BLAKE2B ae5b0e30d88fdd79eea05094d7b7e2c5365f115a369aef57200175a48eee755cd4e964c8eb0c42fffe1f1d951db4d217af3aa0ff1c814c4643769479694ee9e0 SHA512 ce1746a05075afed1a394b424c8dc796f3c9a9215010fb4f716fde8c230f8a50b616e83883c292f524dff87697a2e5837b9739bb546dc8e58edcbe12f416df9b DIST carapace-0.30.2-deps.tar.xz 2206908 BLAKE2B 7ed05934d8512f8e091397c8aa6ca45b4843fb1ab3d5f6cc7ecb7e9c3d75314d919c6f784f214c6f836385e0722faa59e94a48765ca338f0914bb232c9b2b95a SHA512 dd597c786f09798c3c8a6029972e8d4627fa2d3d4f5dce2771d4a88c969daa85738b99b8e34896a26a168e115310231b7b6898b8e607375de0840be42d3bc7a1 DIST carapace-0.30.2.tar.gz 13819214 BLAKE2B 8dce39ece1f216dbf9a109be5f8bbaf0d1dd9d7756402bdee64caf50ebf2770c24f068e541b0528f98e429acb1aa43231300fe74590385629ec69b7c73718869 SHA512 142cfb1d99df10507f27f1fc20b6639f84307182bd37eed3a6797f39b646f2315875873cd6ecfeb497dfdaf4b3bf9293dc96bd2e494661612bd949a62c2e495b +DIST carapace-1.0.0-deps.tar.xz 3057572 BLAKE2B e61f5e496ab6e349d2ec1ee56e2ff85e904fe7dd2e85f32e78a0cfcc1cf94ddd8d3b9e23a478f42c8b3e373261fa02843221fe691d33bfc7ed645f6d0aa52a96 SHA512 3f3d427f3d4fc6e649fd4066f486ecde9bfdc8b8e0b27af8d96f59734ea02d833b96daa77f6e4882a1b9d3c9558739bc917d637631555eadb10042be6cd17a2e +DIST carapace-1.0.0.tar.gz 14593185 BLAKE2B 2021c05a964e68f12551a6f44c9e95bc095631e98f5e00eef21ed870f8926b854813cc5d15777f0fbd27b9a90a0b456dd729b761d0019dc1c7784fbe80db7c8a SHA512 0a65597438852a03d1fcd2fb974b02cc0e68ff39d47daa75a51a0650232f11e7916992bc80a0b1f907e2325a8e7b70baab008f0a1061b6032b70a0c27ead3623 diff --git a/app-shells/carapace/carapace-1.0.0.ebuild b/app-shells/carapace/carapace-1.0.0.ebuild new file mode 100644 index 000000000..e8000b304 --- /dev/null +++ b/app-shells/carapace/carapace-1.0.0.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://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" + +DOCS=( + "README.md" +) +HTML_DOCS=( + "docs/book/" +) + +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/release_notes" || die + einstalldocs +} |