Install this version:
emerge -a =dev-go/wire-0.7.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-go/wire-0.7.0
Or alternatively:
emerge --autounmask-write -a =dev-go/wire-0.7.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.7.0 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Wire: Automated Initialization in Go"
HOMEPAGE="https://github.com/google/${PN}"
# creating vendor bundle:
# >> git clone https://github.com/google/wire -b v<version> /tmp/wire
# >> cd /tmp/wire && version=`git describe --tags | sed -E "s/v([0-9.]+)/\1/g"`
# >> go mod vendor && mkdir wire-${version} && mv vendor wire-${version}/vendor
# >> tar -caf wire-${version}-vendor.tar.xz wire-${version}/vendor
SRC_URI="
https://github.com/google/${PN}/archive/v${PV/_rc/-rc.}.tar.gz -> ${P}.tar.gz
https://vendors.simple-co.de/${PN}/${P}-vendor.tar.xz
"
KEYWORDS="~amd64"
LICENSE="Apache-2.0"
SLOT="0"
DEPEND="dev-lang/go"
src_compile() {
GO111MODULE=on GOCACHE="${T}"/go-cache go build -mod=vendor -o ./bin/${PN} ./cmd/wire/main.go
}
src_install() {
dobin bin/*
dodoc {README,CONTRIBUTING}.md
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | wire-0.7.0-vendor.tar.xz | 250304 bytes | https://vendors.simple-co.de/wire/wire-0.7.0-vendor.tar.xz |
| DIST | wire-0.7.0.tar.gz | 87605 bytes | https://github.com/google/wire/archive/v0.7.0.tar.gz |