mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
Closes: https://bugs.gentoo.org/974530 Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Copyright 2022-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit go-module shell-completion
|
|
|
|
DESCRIPTION="Render markdown on the CLI, with pizzazz!"
|
|
HOMEPAGE="https://github.com/charmbracelet/glow"
|
|
SRC_URI="https://github.com/charmbracelet/glow/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
|
https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-go-mod-deps.tar.xz ->
|
|
${P}-deps.tar.xz
|
|
"
|
|
|
|
LICENSE="MIT"
|
|
#gentoo-go-license glow-2.1.2.ebuild
|
|
LICENSE+=" Apache-2.0 BSD MIT "
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
BDEPEND=">=dev-lang/go-1.25.9"
|
|
|
|
src_compile(){
|
|
ego build -o bin/glow
|
|
}
|
|
|
|
src_test(){
|
|
ego test -v ./...
|
|
}
|
|
|
|
src_install(){
|
|
dobin bin/glow
|
|
bin/glow man > glow.1
|
|
doman glow.1
|
|
einstalldocs
|
|
bin/glow completion bash > "${PN}" || die "generating bash completion failed"
|
|
dobashcomp "${PN}"
|
|
bin/glow completion zsh > "_${PN}" || die "generating zsh completion failed"
|
|
dozshcomp "_${PN}"
|
|
bin/glow completion fish > "${PN}.fish" || die "generating fish completion failed"
|
|
dofishcomp "${PN}.fish"
|
|
}
|