app-admin/terraform: version bump to 0.12.15
authorDan Molik <dan@danmolik.com>
Thu, 14 Nov 2019 11:03:01 +0000 (06:03 -0500)
committerJoonas Niilola <juippis@gentoo.org>
Tue, 19 Nov 2019 06:10:28 +0000 (08:10 +0200)
Closes: https://bugs.gentoo.org/700066

Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Dan Molik <dan@danmolik.com>
Closes: https://github.com/gentoo/gentoo/pull/13645
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
app-admin/terraform/Manifest
app-admin/terraform/terraform-0.12.15.ebuild [new file with mode: 0644]

index ec1205e8cd3ed4e8737989919c1c947909bac2b3..8cdc81c4bab93d4b5389eec5f63be8b97fed3228 100644 (file)
@@ -1,3 +1,4 @@
 DIST terraform-0.11.13.tar.gz 10906645 BLAKE2B dafdc1acddd4ea97b41cc5899a541701731fce7b13b914c0859fe148b10b5c8ac877d71b665e8d80a65f376bb09fb8ae6fd0e0263ff711a156ca48119522f89d SHA512 1c16f20d1a65c763f1091ff2d20e0752e62903e07a12d41dd722e5c4c989f477da7d64901336d7536ed1693d5c82f4548ae5a643edae85b4e83325fc8c81b245
 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
diff --git a/app-admin/terraform/terraform-0.12.15.ebuild b/app-admin/terraform/terraform-0.12.15.ebuild
new file mode 100644 (file)
index 0000000..6183146
--- /dev/null
@@ -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"
+}