1 |
commit: 741c18278755f8ef6420ecbbc58e5eeb7fd96c79 |
2 |
Author: Dan Molik <dan <AT> danmolik <DOT> com> |
3 |
AuthorDate: Tue Feb 5 12:51:44 2019 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 28 22:49:35 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=741c1827 |
7 |
|
8 |
app-admin/terraform: add DOCS and post-install instructions. |
9 |
|
10 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
11 |
Signed-off-by: Dan Molik <dan <AT> danmolik.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/10987 |
13 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
14 |
|
15 |
app-admin/terraform/terraform-0.11.11-r1.ebuild | 39 +++++++++++++++++++++++++ |
16 |
1 file changed, 39 insertions(+) |
17 |
|
18 |
diff --git a/app-admin/terraform/terraform-0.11.11-r1.ebuild b/app-admin/terraform/terraform-0.11.11-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..7fbea19820f |
21 |
--- /dev/null |
22 |
+++ b/app-admin/terraform/terraform-0.11.11-r1.ebuild |
23 |
@@ -0,0 +1,39 @@ |
24 |
+# Copyright 1999-2019 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+inherit golang-vcs-snapshot |
30 |
+ |
31 |
+DESCRIPTION="A tool for building, changing, and combining infrastructure safely" |
32 |
+HOMEPAGE="https://www.terraform.io/" |
33 |
+ |
34 |
+EGO_PN="github.com/hashicorp/${PN}" |
35 |
+SRC_URI="https://github.com/hashicorp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="MPL-2.0" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64" |
40 |
+IUSE="" |
41 |
+DEPEND=">=dev-lang/go-1.11.0" |
42 |
+ |
43 |
+DOCS="README.md CHANGELOG.md" |
44 |
+ |
45 |
+src_compile() { |
46 |
+ cd "src/${EGO_PN}" || die |
47 |
+ GOPATH="${S}" GOCACHE="${T}/go-cache" go build \ |
48 |
+ -v -work -o "${S}/${PN}" ./ || die |
49 |
+} |
50 |
+ |
51 |
+src_install() { |
52 |
+ dobin terraform |
53 |
+ |
54 |
+ pushd "src/${EGO_PN}" || die |
55 |
+ einstalldocs |
56 |
+ popd || die |
57 |
+} |
58 |
+ |
59 |
+pkg_postinst() { |
60 |
+ elog "If you would like to install shell completions please run:" |
61 |
+ elog " terraform -install-autocomplete" |
62 |
+} |