Gentoo Archives: gentoo-commits

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