1 |
commit: 4c1ff661e2fc321e840736d1626a9d2f94b35307 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 29 18:25:51 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 29 22:31:40 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c1ff661 |
7 |
|
8 |
app-admin/aws-iam-tools: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
app-admin/aws-iam-tools/aws-iam-tools-1.3.0.ebuild | 36 +++++++++++----------- |
13 |
1 file changed, 18 insertions(+), 18 deletions(-) |
14 |
|
15 |
diff --git a/app-admin/aws-iam-tools/aws-iam-tools-1.3.0.ebuild b/app-admin/aws-iam-tools/aws-iam-tools-1.3.0.ebuild |
16 |
index e70c4d29a09..5714f191ff3 100644 |
17 |
--- a/app-admin/aws-iam-tools/aws-iam-tools-1.3.0.ebuild |
18 |
+++ b/app-admin/aws-iam-tools/aws-iam-tools-1.3.0.ebuild |
19 |
@@ -1,50 +1,50 @@ |
20 |
# Copyright 1999-2017 Gentoo Foundation |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
-EAPI="2" |
24 |
+EAPI=6 |
25 |
|
26 |
DESCRIPTION="The Command Line Interface for the AWS Identity and Access Management Service" |
27 |
HOMEPAGE="http://aws.amazon.com/developertools/AWS-Identity-and-Access-Management/4143" |
28 |
SRC_URI="mirror://sabayon/${CATEGORY}/IAMCli-${PV}.zip" |
29 |
|
30 |
-S="${WORKDIR}/IAMCli-${PV}" |
31 |
- |
32 |
LICENSE="Amazon" |
33 |
SLOT="0" |
34 |
KEYWORDS="~amd64 ~x86" |
35 |
IUSE="" |
36 |
+RESTRICT="mirror" |
37 |
+ |
38 |
DEPEND="app-arch/unzip" |
39 |
RDEPEND="virtual/jre" |
40 |
-RESTRICT="mirror" |
41 |
|
42 |
-src_unpack() { |
43 |
- unpack ${A} |
44 |
- cd "${WORKDIR}/IAMCli-${PV}" |
45 |
+S="${WORKDIR}/IAMCli-${PV}" |
46 |
+ |
47 |
+src_prepare() { |
48 |
+ default |
49 |
find . -name '*.cmd' -delete || die |
50 |
} |
51 |
|
52 |
src_install() { |
53 |
- dodir /opt/${PN} |
54 |
insinto /opt/${PN}/lib |
55 |
- doins -r "${S}"/lib/* |
56 |
+ doins -r lib/. |
57 |
+ |
58 |
exeinto /opt/${PN}/bin |
59 |
- doexe "${S}"/bin/* |
60 |
- |
61 |
- dodir /etc/env.d |
62 |
- cat - > "${T}"/99${PN} <<EOF |
63 |
-AWS_IAM_HOME=/opt/${PN} |
64 |
-PATH=/opt/${PN}/bin |
65 |
-ROOTPATH=/opt/${PN}/bin |
66 |
-EOF |
67 |
+ doexe bin/* |
68 |
+ |
69 |
+ cat > "${T}"/99${PN} <<- EOF || die |
70 |
+ AWS_IAM_HOME=/opt/${PN} |
71 |
+ PATH=/opt/${PN}/bin |
72 |
+ ROOTPATH=/opt/${PN}/bin |
73 |
+ EOF |
74 |
doenvd "${T}"/99${PN} |
75 |
|
76 |
- dodoc "LICENSE.txt" |
77 |
+ dodoc LICENSE.txt |
78 |
} |
79 |
|
80 |
pkg_postinst() { |
81 |
ewarn "Remember to run: env-update && source /etc/profile if you plan" |
82 |
ewarn "to use these tools in a shell before logging out (or restarting" |
83 |
ewarn "your login manager)" |
84 |
+ |
85 |
elog |
86 |
elog "You need to put the following in your ~/.bashrc replacing the" |
87 |
elog "values with the full path to your AWS credentials file." |