From 8cd6a1e0b840fb651ed499e7ed1125d2fb237041 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Fri, 5 Jun 2020 16:12:17 -0700 Subject: [PATCH] feat: terraform --- app-admin/terraform/Manifest | 2 ++ app-admin/terraform/terraform-0.12.18.ebuild | 36 ++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 app-admin/terraform/Manifest create mode 100644 app-admin/terraform/terraform-0.12.18.ebuild diff --git a/app-admin/terraform/Manifest b/app-admin/terraform/Manifest new file mode 100644 index 0000000..69442f0 --- /dev/null +++ b/app-admin/terraform/Manifest @@ -0,0 +1,2 @@ +DIST terraform-0.12.18.tar.gz 10516679 BLAKE2B 146ed1335bc232bfcdb0cbd7b8fba29f7559ad2f94c154fedc0e77a63134fd21c8162bd0d07a0c068741ba213fb3eb2748f936b9a74b92d15d2fcf0291f47e4d SHA512 b75b9318a10285b445e97ab3b6a4b8b166d60a0036098e1e46421b6c67f87c0bc8c3a91d781b015264f6b6265f233396ac7735a758648e5f721229c5de172472 +EBUILD terraform-0.12.18.ebuild 836 BLAKE2B bf02adfb19a15f2a4b12409226d8584e648f98dd46b062d3a24f6e710c99c53fa137004288ba61da51b2783658b21161ccc8ac9e5502b1b31bca9e272bf81e5f SHA512 cd9e8d65da3da000cbb02ba39c885ca95a412ac672c2c568e5767a1718e1d49f8dcbb43c442d5167bf0a0f5e914ca0c93fae69c9803dee8ff97e2cbfe2f45743 diff --git a/app-admin/terraform/terraform-0.12.18.ebuild b/app-admin/terraform/terraform-0.12.18.ebuild new file mode 100644 index 0000000..effc18e --- /dev/null +++ b/app-admin/terraform/terraform-0.12.18.ebuild @@ -0,0 +1,36 @@ +# 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" +IUSE="" +DEPEND="" + +DOCS=( {README,CHANGELOG}.md ) + +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" +}