diff options
-rw-r--r-- | app-admin/terraform/Manifest | 1 | ||||
-rw-r--r-- | app-admin/terraform/terraform-0.12.16.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/app-admin/terraform/Manifest b/app-admin/terraform/Manifest index 8cdc81c4bab9..66e4b4dd9e45 100644 --- a/app-admin/terraform/Manifest +++ b/app-admin/terraform/Manifest @@ -2,3 +2,4 @@ DIST terraform-0.11.13.tar.gz 10906645 BLAKE2B dafdc1acddd4ea97b41cc5899a5417017 DIST terraform-0.12.11.tar.gz 10338506 BLAKE2B 62c33591d55345e8c3b9c61b6f9279a81f1df86f5942cee787e4b525eefdf7834f0e4a6a42835b4ae038591fd467941454be674a3c1c8b329ef52c7d5e39359b SHA512 2b9fc6157aea8e7159d7089135620433d75843f2b3dd48af18ecb7837a5ca3ea72d9dfb8b36a25a65f9b9cc29b11bc7910f124a359a6589bfb941a714e0b7b23 DIST terraform-0.12.12.tar.gz 10441883 BLAKE2B c30366c46bc77b7b5c1a44766ce891db01a139e1fa9f936962341d2b9230f85c9137ffc3236e6baad5aad5bada845fd0327846ebfb0c93037ae7c9c46fd70f13 SHA512 58e15da1cc5345e7780573bfeda4a6f34dc281682a0e3f7bf6b129d0db42ff343b79575bb06472e1c994f8d3e3d7e3ab507a4a09f1cfd166690a611af221bd8e DIST terraform-0.12.15.tar.gz 10432372 BLAKE2B 9d8d70cf88ef56dbe891be266353fe2eb89b51740e22264f46e0b20785bbb8b6752e2465b02dba79bd9a30a6d0914ddfc7e9b7000f38fcbeb01580d1ac52eec3 SHA512 a63b0acd81e814b679a479ead8afe023d5fca0a925eef6b7ccbfa1916554e47a383dbe73f97d036c0c8ebe3e2289c9001ce24c50eef4e5d5eab3ca48d766150b +DIST terraform-0.12.16.tar.gz 10435715 BLAKE2B 1f2f221130ebe8df45cdde5fece7773af16b4dfc0a1a336109c9ea3eafcc5f8382069e60b7efe702b9683ab3ed586e1c1fbdbd1582423642485274490df01255 SHA512 8f499843f53a27587b08beb25973fccd08ee84191a53407ee3aa2e9aad483e597791665485a7ed6d7c94f96b611956e83fd610e603a2e8e7732eaa78d3920ed5 diff --git a/app-admin/terraform/terraform-0.12.16.ebuild b/app-admin/terraform/terraform-0.12.16.ebuild new file mode 100644 index 000000000000..6183146d4a09 --- /dev/null +++ b/app-admin/terraform/terraform-0.12.16.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit golang-base go-module + +DESCRIPTION="A tool for building, changing, and combining infrastructure safely" +HOMEPAGE="https://www.terraform.io/" + +EGO_PN="github.com/hashicorp/${PN}" +SRC_URI="https://github.com/hashicorp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 BSD-2 BSD-4 ECL-2.0 imagemagick ISC JSON MIT MIT-with-advertising MPL-2.0 unicode" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="test" + +DOCS=( {README,CHANGELOG}.md ) + +src_prepare() { + default + # the sed command is necessary to generate tests outside of the + # default git root of `terraform', in our case the working dir + # is `work/$PN-$PV' + # sed -i -e "s/!=\s\+\"terraform\"/!=\ \"${P}\"/" \ + # ./scripts/generate-plugins.go || die +} + +src_compile() { + GOCACHE="${T}/go-cache" go build \ + -work -o "bin/${PN}" ./ || die +} + +src_install() { + dobin bin/terraform + + einstalldocs +} + +pkg_postinst() { + elog "If you would like to install shell completions please run:" + elog " terraform -install-autocomplete" +} |