commit:     b462b91d3672ee63f706f12017369a1be864985c
Author:     sin-ack <sin-ack <AT> protonmail <DOT> com>
AuthorDate: Tue Dec 26 16:38:47 2023 +0000
Commit:     sin-ack <sin-ack <AT> protonmail <DOT> com>
CommitDate: Tue Dec 26 16:38:47 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b462b91d

app-admin/opentofu: new package, add 1.6.0_rc1

Signed-off-by: sin-ack <sin-ack <AT> protonmail.com>

 app-admin/opentofu/Manifest                  |  2 ++
 app-admin/opentofu/opentofu-1.6.0_rc1.ebuild | 44 ++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/app-admin/opentofu/Manifest b/app-admin/opentofu/Manifest
new file mode 100644
index 0000000000..39ef76f21b
--- /dev/null
+++ b/app-admin/opentofu/Manifest
@@ -0,0 +1,2 @@
+DIST opentofu-1.6.0_rc1.tar.gz 3697569 BLAKE2B 
c29ce1ccfb191b6b48796dbf99f54357ae3caf6703b82b296da3bdb7735c11075c399730b2643321ddf61cff3fdff33c47e2813969e898dd95169db444e7641d
 SHA512 
2f4021e6d77eac238c3a158ade17a2c388ad27f48e85a2a47480a3be5648f9470ba42d23b131308dd4dd9c45f7e8322df195d682356cd40969f0d45d6bfa91ca
+DIST opentofu-v1.6.0-rc1-vendor.tar.gz 15873243 BLAKE2B 
07fbc0857c539dd6aa43927b2be6799a4842e9cbf3a8ff34145a516d803772a55a9520128c45d69a16b89303515bc03d9cc450d154a45d486542b7dc855c1999
 SHA512 
568c386ad9178f9d1bdbe5d9bb18efb149ab58ca2b50bacab228c0419d61a55fbf265229c97980920ac837c4f0ccedb378fdcf7e2d8219622990812cd6863fde

diff --git a/app-admin/opentofu/opentofu-1.6.0_rc1.ebuild 
b/app-admin/opentofu/opentofu-1.6.0_rc1.ebuild
new file mode 100644
index 0000000000..eb2b0e2813
--- /dev/null
+++ b/app-admin/opentofu/opentofu-1.6.0_rc1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module
+
+DESCRIPTION="A fork of Terraform that is open-source, community-driven, and 
managed by the Linux Foundation"
+HOMEPAGE="https://opentofu.org/";
+
+MY_PV="${PV/_rc/-rc}"
+S="${WORKDIR}/${PN}-${MY_PV}"
+SRC_URI="https://github.com/opentofu/${PN}/archive/v${MY_PV}.tar.gz -> 
${P}.tar.gz
+       
https://github.com/sin-ack/opentofu-vendor/releases/download/v${MY_PV}/opentofu-v${MY_PV}-vendor.tar.gz";
+
+# Main package is MPL-2.0. The rest is obtained with `go-licenses csv 
./cmd/tofu'
+LICENSE="MPL-2.0 Apache-2.0 BSD-2-Clause ISC MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="dev-go/gox"
+
+RESTRICT="test"
+
+DOCS=( {README,CHANGELOG}.md )
+
+src_compile() {
+       export CGO_ENABLED=0
+       gox \
+               -os=$(go env GOOS) \
+               -arch=$(go env GOARCH) \
+               -output bin/tofu \
+               -verbose \
+               ./cmd/tofu || die
+}
+
+src_install() {
+       dobin bin/*
+       einstalldocs
+}
+
+pkg_postinst() {
+       elog "If you would like to install shell completions please run:"
+       elog "    tofu -install-autocomplete"
+}

Reply via email to