commit: bd6129cc9b93dcaf1d9be00fdb526a66e6b1aa5b Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Wed Feb 22 16:54:53 2023 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Wed Feb 22 16:55:08 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd6129cc
app-admin/terraform: add 1.3.9 Closes: https://bugs.gentoo.org/884885 Closes: https://bugs.gentoo.org/895242 Signed-off-by: William Hubbs <williamh <AT> gentoo.org> app-admin/terraform/Manifest | 2 ++ app-admin/terraform/terraform-1.3.9.ebuild | 40 ++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/app-admin/terraform/Manifest b/app-admin/terraform/Manifest index ccf8c7dcc39c..24fd5a0aa8a8 100644 --- a/app-admin/terraform/Manifest +++ b/app-admin/terraform/Manifest @@ -6,3 +6,5 @@ DIST terraform-1.2.4-deps.tar.xz 264291608 BLAKE2B 4c0dd8d76bbf2b062f80225ff6534 DIST terraform-1.2.4.tar.gz 5183520 BLAKE2B 51b9353dfe40e988c8c621f9e09ec9d3e8facfa7b682832671b3f0f12f52d0836dd6ff1851bebfe6ca590248cd029c508dc35b437b637a51ace4c36ad5807730 SHA512 43dfc4745dbcb3f29577fac610771258c5a9551bf33019d1f6bd3059a808cd365f432842c565522c530b03abf18aeada53fc390604eaeafce4464afd9edcb463 DIST terraform-1.2.7-deps.tar.xz 264297220 BLAKE2B 0052fe5519c5b9aec060dcb6a68d0a48ed069a7c4f37f8cfc9088f2fec5865c7e3e515be176e316f50eabd00c2658d7371ecb3a728d3bcf28fca120553bc39b3 SHA512 a9d77a8c26ec6fb7da3c8a574b10fd6559b8828539b5fe89ea98c29979bedf33488bb10b1b2ea1624841ea23dc33d5c5b350b1d6ba3b31fdcbc7e067aa9c8601 DIST terraform-1.2.7.tar.gz 4694193 BLAKE2B e32f7a304aad5b4cfb0866d890036f772eafbd1c767941999c0db44ed7a9e0e931890a466518af5b7715dcff2a0bac1d379c230fa032f9ebae45ad9df041b9d1 SHA512 d77db9040bd19f4a6e2988a61ecb7dc5adecf46f798d90e1232f9ffe385668ecb0869f1877d5f6ea8a36d48e1e47fffa463b9809046b524af741ddb5b67b469e +DIST terraform-1.3.9-deps.tar.xz 246904620 BLAKE2B 26577614ff95fa03dcf0362050f0e2a10eaa500f71d992b2927f6c44475341e899f62141e203ce9231bf329dc03825076d3f615c693a6c33c11190d4420b042f SHA512 9587b6022d320a104f3ad67dda9f1b931e258f78e7f6b6f87a8302732206b55d7d4af555b09517994ea1f53f069d8e1b5e2ca05c129efbbe4d7c3b75cbd27c69 +DIST terraform-1.3.9.tar.gz 4964672 BLAKE2B bfe823a2c1bc8d6188d339c8b5d452be4873adf1063aa0a880457d7e5b4e042d2d8c2ba93eb20eb46bad209c184bfe628b5093d6bdd6163e1bc57934c6770ad2 SHA512 3e951142120b5d71830b5bde34ef3e8907b1585f461f51f83e16170a46e1fc21934d4d1935f1a49963add3d894f68a5cf267ef91293347d0dd9a4b90978ea751 diff --git a/app-admin/terraform/terraform-1.3.9.ebuild b/app-admin/terraform/terraform-1.3.9.ebuild new file mode 100644 index 000000000000..e3ee07fe5929 --- /dev/null +++ b/app-admin/terraform/terraform-1.3.9.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="A tool for building, changing, and combining infrastructure safely" +HOMEPAGE="https://www.terraform.io/" +SRC_URI="https://github.com/hashicorp/${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 ~arm64 ~riscv" + +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/terraform \ + -verbose \ + . || die +} + +src_install() { + dobin bin/* + einstalldocs +} + +pkg_postinst() { + elog "If you would like to install shell completions please run:" + elog " terraform -install-autocomplete" +}