1 |
commit: f02fd345af8723ded889d886328c1e5fbf176190 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 29 18:19:45 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 29 22:31:35 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f02fd345 |
7 |
|
8 |
app-admin/aws-as-tools: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
.../aws-as-tools/aws-as-tools-1.0.49.1.ebuild | 40 +++++++++++----------- |
13 |
1 file changed, 20 insertions(+), 20 deletions(-) |
14 |
|
15 |
diff --git a/app-admin/aws-as-tools/aws-as-tools-1.0.49.1.ebuild b/app-admin/aws-as-tools/aws-as-tools-1.0.49.1.ebuild |
16 |
index 38450b0e2f0..a9b3692c2a2 100644 |
17 |
--- a/app-admin/aws-as-tools/aws-as-tools-1.0.49.1.ebuild |
18 |
+++ b/app-admin/aws-as-tools/aws-as-tools-1.0.49.1.ebuild |
19 |
@@ -1,44 +1,43 @@ |
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 Auto Scaling web service" |
28 |
HOMEPAGE="http://aws.amazon.com/developertools/2535" |
29 |
# SRC_URI="http://ec2-downloads.s3.amazonaws.com/AutoScaling-2011-01-01.zip" |
30 |
SRC_URI="mirror://sabayon/app-admin/AutoScaling-1.0.49.1.zip" |
31 |
|
32 |
-S="${WORKDIR}/AutoScaling-${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}/AutoScaling-${PV}" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ default |
51 |
+ |
52 |
find . -name '*.cmd' -delete || die |
53 |
- rm bin/as-cmd-2009-05-15 |
54 |
- rm bin/service-2009-05-15 |
55 |
+ rm bin/{as-cmd,service}-2009-05-15 || die |
56 |
} |
57 |
|
58 |
src_install() { |
59 |
- dodir /opt/${PN} |
60 |
insinto /opt/${PN}/lib |
61 |
- doins -r "${S}"/lib/* |
62 |
+ doins -r lib/. |
63 |
+ |
64 |
exeinto /opt/${PN}/bin |
65 |
- doexe "${S}"/bin/* |
66 |
- |
67 |
- dodir /etc/env.d |
68 |
- cat - > "${T}"/99${PN} <<EOF |
69 |
-AWS_AUTO_SCALING_HOME=/opt/${PN} |
70 |
-PATH=/opt/${PN}/bin |
71 |
-ROOTPATH=/opt/${PN}/bin |
72 |
-EOF |
73 |
+ doexe bin/* |
74 |
+ |
75 |
+ cat > "${T}"/99${PN} <<- EOF || die |
76 |
+ AWS_AUTO_SCALING_HOME=/opt/${PN} |
77 |
+ PATH=/opt/${PN}/bin |
78 |
+ ROOTPATH=/opt/${PN}/bin |
79 |
+ EOF |
80 |
doenvd "${T}"/99${PN} |
81 |
|
82 |
dodoc "THIRDPARTYLICENSE.TXT" |
83 |
@@ -48,6 +47,7 @@ pkg_postinst() { |
84 |
ewarn "Remember to run: env-update && source /etc/profile if you plan" |
85 |
ewarn "to use these tools in a shell before logging out (or restarting" |
86 |
ewarn "your login manager)" |
87 |
+ |
88 |
elog |
89 |
elog "You need to put the following in your ~/.bashrc replacing the" |
90 |
elog "values with the full path to your AWS credentials file." |