commit: a63556c375fe0e9333f21bc9c6cd8f898d8c5861 Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Mon Jan 13 21:40:40 2025 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Mon Jan 13 21:40:56 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a63556c3
app-admin/opentofu: add 1.9.0 Signed-off-by: William Hubbs <williamh <AT> gentoo.org> app-admin/opentofu/Manifest | 2 ++ app-admin/opentofu/opentofu-1.9.0.ebuild | 40 ++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/app-admin/opentofu/Manifest b/app-admin/opentofu/Manifest index 85fbeba6afcf..93a4d43fe471 100644 --- a/app-admin/opentofu/Manifest +++ b/app-admin/opentofu/Manifest @@ -10,3 +10,5 @@ DIST opentofu-1.7.2-deps.tar.xz 107787580 BLAKE2B 10d7f8e114ca43964de34f4ecc7d8a DIST opentofu-1.7.2.tar.gz 3890420 BLAKE2B 7e234b535cd76b8716ed69271fd2ba13670c7ab7ae5fcff8c1e5a16097a518eee2d437772ae90b680e38adf5e64d77fdfa543f087492a36eb866405500eb3cc4 SHA512 49f93c1f7e1469b69a784424b724460c199e54c351801ef7ad3db1fea24089b585a5cf9ffef90b45ba2713d853b8d99828ceffa7c3469737bcd201b6ce34f362 DIST opentofu-1.8.1-deps.tar.xz 107813812 BLAKE2B 965afc691f6cab85774ca543088bd6dbfb37af22ed59a4fefd8b352924435d2569c7968475d272ead6d710e4279956aecd6f3a6a1421ee1ffc758255918f0399 SHA512 af429415110dfc19cb588390d49cc0aad057505d6de3897cb52d996473d81f294f239cc1a767682355d97fd292c7c1cf56e42f8127375eff9c3affdbc372fbcc DIST opentofu-1.8.1.tar.gz 3995189 BLAKE2B d6bfd35172960180defee30e0fa3135f6aac5017d307f236145931cc134c58b123a1e368278e2fcce613a184c90b1ae3fb15a0e4da32c4fbf2e291b8f4c2251d SHA512 c6bb6cab979cb5bb53eb53eea6c1a0b2766b06fd5c66564597b3df8d4561d2b2af3f5a4804f3427da3addc11c12b99ef913637b2126452f5f2168d88a06af478 +DIST opentofu-1.9.0-deps.tar.xz 107229436 BLAKE2B f0c2074cccdd7be8504eaf1e389a6bb1fec12a2a2a5bba88ae281527611eb3a0a8f3a5d2bbddbd76edce710641367ed8d878db54ab070946d04cbeb3f680c72c SHA512 dac5c4d1238641bcdb1fa37ff53d92924f424330e7c46d60ad14cf5c1e8f33267690468f11e4e4b853cdc8f06937f07200373bbbe845b4faaee1a5b086b10c33 +DIST opentofu-1.9.0.tar.gz 4126960 BLAKE2B da87112a68f35689297bdaab261fd8916160fea9154da2578bb037fa21dc416b24233fbf5144d03cff73677cbaabdc019d10c8d60816e7ecae0ceabcc1fcfc62 SHA512 3b8219f778ede549def2d112c4939a95aa0484689e739b30a5e81bc723cc6ea7284eb6dc83001d415451dba39ecfaa4855a682ce2ea2e716bba385df2e8e0a08 diff --git a/app-admin/opentofu/opentofu-1.9.0.ebuild b/app-admin/opentofu/opentofu-1.9.0.ebuild new file mode 100644 index 000000000000..d80ebed9007a --- /dev/null +++ b/app-admin/opentofu/opentofu-1.9.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="The open source infrastructure as code tool" +HOMEPAGE="https://www.opentofu.org/" +SRC_URI="https://github.com/opentofu/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD BSD-2 MPL-2.0 MIT ISC" +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" +}
