# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit go-module EGO_SUM=( "github.com/arl/gitstatus v0.6.0" "github.com/arl/gitstatus v0.6.0/go.mod" "github.com/davecgh/go-spew v1.1.0" "github.com/davecgh/go-spew v1.1.0/go.mod" "github.com/kr/pretty v0.1.0" "github.com/kr/pretty v0.1.0/go.mod" "github.com/kr/pty v1.1.1/go.mod" "github.com/kr/text v0.1.0" "github.com/kr/text v0.1.0/go.mod" "github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e" "github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod" "github.com/pmezard/go-difflib v1.0.0" "github.com/pmezard/go-difflib v1.0.0/go.mod" "github.com/rogpeppe/go-internal v1.9.0" "github.com/rogpeppe/go-internal v1.9.0/go.mod" "github.com/stretchr/objx v0.1.0/go.mod" "github.com/stretchr/testify v1.7.0" "github.com/stretchr/testify v1.7.0/go.mod" "golang.org/x/exp v0.0.0-20230210204819-062eb4c674ab" "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod" "gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127" "gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod" "gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod" "gopkg.in/yaml.v3 v3.0.0" "gopkg.in/yaml.v3 v3.0.0/go.mod" ) go-module_set_globals DESCRIPTION="Git in your tmux status bar" HOMEPAGE="https://github.com/arl/gitmux" SRC_URI="https://github.com/arl/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz ${EGO_SUM_SRC_URI}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" RESTRICT="test" # fails RDEPEND="app-misc/tmux" src_compile() { LDFLAGS="-s -w -X main.version=${PV}" ego build -ldflags "${LDFLAGS}" -trimpath } src_test() { ego test -work ./... } src_install() { einstalldocs dobin gitmux }