From 714d0b092a406f5d31638aff84317f001d7009d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20F=C3=B6rster?= Date: Tue, 23 Sep 2025 00:49:02 +0200 Subject: [PATCH] [dev-go/wire] add for grafana --- dev-go/wire/Manifest | 2 ++ dev-go/wire/wire-0.7.0.ebuild | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 dev-go/wire/Manifest create mode 100644 dev-go/wire/wire-0.7.0.ebuild diff --git a/dev-go/wire/Manifest b/dev-go/wire/Manifest new file mode 100644 index 0000000..344a948 --- /dev/null +++ b/dev-go/wire/Manifest @@ -0,0 +1,2 @@ +DIST wire-0.7.0-vendor.tar.xz 250152 BLAKE2B 48387d7f9b14d8d91486c0017feb2b31bceb9b49b93253363e100ced0c6d7d47db8029a4b3f0c69c4f05bda6cf57d246a485465979bc6f53b89bcc0a27de20ee SHA512 650441cf60e7f3c9f15dcd1187357162bb01eedb1db26659f16123ea47258d2660ab2557bd7b4973447758984eab4281ac9665e8baa4c6bde93d601297d288b3 +DIST wire-0.7.0.tar.gz 87605 BLAKE2B ef2a714a772660fbd2631ef68e70df6d4f121b118118103a532f428fc6da1fc9431b3a82494c653f00b44069f982e36210e5457e6d0e48b5bbdb3c583cb399fa SHA512 edad580d3b4e63db2c397774bc18ea8eb82be0e6dfeec279d79086596862333934d6c7fd1d1ed1dc7e3aebd3514a8b4068f11badf340fead39f495a92ce29324 diff --git a/dev-go/wire/wire-0.7.0.ebuild b/dev-go/wire/wire-0.7.0.ebuild new file mode 100644 index 0000000..1dffb38 --- /dev/null +++ b/dev-go/wire/wire-0.7.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="Wire: Automated Initialization in Go" +HOMEPAGE="https://github.com/google/${PN}" + +# creating vendor bundle: +# >> git clone https://github.com/google/wire -b v /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://people.znc.in/~dessa/gentoo-dessa/distfiles/${CATEGORY}/${PN}/${PN}-${PV}-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_compile() { + ego build -mod=vendor -o wire ./cmd/wire/main.go +} + +src_install() { + dobin wire + dodoc {README,CONTRIBUTING}.md +}