mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
app-shells/carapace: new package, add 0.28.3
Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
2
app-shells/carapace/Manifest
Normal file
2
app-shells/carapace/Manifest
Normal file
@@ -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
|
||||||
35
app-shells/carapace/carapace-0.28.3.ebuild
Normal file
35
app-shells/carapace/carapace-0.28.3.ebuild
Normal file
@@ -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"
|
||||||
|
}
|
||||||
12
app-shells/carapace/metadata.xml
Normal file
12
app-shells/carapace/metadata.xml
Normal file
@@ -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>freijon@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>
|
||||||
Reference in New Issue
Block a user