glow-9999.ebuild (713B)
1 # Copyright 2021 Gentoo Authors 2 # Distributed under the terms of the GNU General Public License v2 3 4 EAPI=7 5 EGO_PN="github.com/charmbracelet/glow" 6 7 DESCRIPTION="Render markdown on the CLI, with pizzazz!" 8 HOMEPAGE="https://github.com/charmbracelet/glow" 9 SRC_URI="" 10 11 inherit git-r3 12 inherit go-module 13 14 #go-module_set_globals 15 16 EGIT_REPO_URI="https://github.com/charmbracelet/glow.git" 17 if [[ ${PV} != "9999" ]]; then 18 EGIT_COMMIT="v${PV}" 19 KEYWORDS="~amd64 ~x86" 20 fi 21 22 LICENSE="MIT" 23 SLOT="0" 24 KEYWORDS="~amd64" 25 IUSE="" 26 27 DEPEND="dev-lang/go" 28 RDEPEND="${DEPEND}" 29 BDEPEND="" 30 31 if [[ ${PV} == 9999 ]]; then 32 src_unpack() { 33 git-r3_src_unpack 34 go-module_live_vendor 35 } 36 fi 37 38 src_compile() { 39 go build 40 } 41 42 src_install() { 43 dobin glow 44 }