Install this version:
emerge -a =dev-go/goversion-1.2.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-go/goversion-1.2.0
Or alternatively:
emerge --autounmask-write -a =dev-go/goversion-1.2.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.2.0 | 8 | ~amd64 | 0 |
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Print version used to build Go executables"
HOMEPAGE="https://github.com/rsc/goversion https://rsc.io/goversion"
SRC_URI="https://github.com/rsc/goversion/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
src_unpack() {
default
cat <<- EOF > "${S}"/go.mod
module rsc.io/goversion
go 1.17
EOF
go-module_src_unpack
}
src_compile() {
ego build -o ${PN} .
}
src_install() {
dobin ${PN}
dodoc README.md
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | goversion-1.2.0.tar.gz | 8586 bytes | https://github.com/rsc/goversion/archive/v1.2.0.tar.gz |