1 |
commit: 268ad026d158ce2e10ff530b1b2fe251978b2819 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 29 18:29:18 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 29 22:31:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=268ad026 |
7 |
|
8 |
app-admin/aws-rds-tools: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
.../aws-rds-tools/aws-rds-tools-1.6.001.ebuild | 38 +++++++++++----------- |
13 |
1 file changed, 19 insertions(+), 19 deletions(-) |
14 |
|
15 |
diff --git a/app-admin/aws-rds-tools/aws-rds-tools-1.6.001.ebuild b/app-admin/aws-rds-tools/aws-rds-tools-1.6.001.ebuild |
16 |
index 4d0cfb2e1d0..1cd6d1b4857 100644 |
17 |
--- a/app-admin/aws-rds-tools/aws-rds-tools-1.6.001.ebuild |
18 |
+++ b/app-admin/aws-rds-tools/aws-rds-tools-1.6.001.ebuild |
19 |
@@ -1,50 +1,50 @@ |
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 Command Line Toolkit for the Amazon Relational Database Service" |
28 |
HOMEPAGE="http://aws.amazon.com/developertools/2928" |
29 |
SRC_URI="mirror://sabayon/${CATEGORY}/RDSCli-${PV}.zip" |
30 |
|
31 |
-S="${WORKDIR}/RDSCli-${PV}" |
32 |
- |
33 |
LICENSE="Amazon" |
34 |
SLOT="0" |
35 |
KEYWORDS="~amd64 ~x86" |
36 |
IUSE="" |
37 |
+RESTRICT="mirror" |
38 |
+ |
39 |
DEPEND="app-arch/unzip" |
40 |
RDEPEND="virtual/jre" |
41 |
-RESTRICT="mirror" |
42 |
|
43 |
-src_unpack() { |
44 |
- unpack ${A} |
45 |
- cd "$S" |
46 |
+S="${WORKDIR}/RDSCli-${PV}" |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ default |
50 |
find . -name '*.cmd' -delete || die |
51 |
} |
52 |
|
53 |
src_install() { |
54 |
- dodir /opt/${PN} |
55 |
insinto /opt/${PN}/lib |
56 |
- doins -r "${S}"/lib/* |
57 |
+ doins -r lib/. |
58 |
+ |
59 |
exeinto /opt/${PN}/bin |
60 |
- doexe "${S}"/bin/* |
61 |
- |
62 |
- dodir /etc/env.d |
63 |
- cat - > "${T}"/99${PN} <<EOF |
64 |
-AWS_RDS_HOME=/opt/${PN} |
65 |
-PATH=/opt/${PN}/bin |
66 |
-ROOTPATH=/opt/${PN}/bin |
67 |
-EOF |
68 |
+ doexe bin/* |
69 |
+ |
70 |
+ cat > "${T}"/99${PN} <<- EOF || die |
71 |
+ AWS_RDS_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 |
+ dodoc THIRDPARTYLICENSE.TXT |
79 |
} |
80 |
|
81 |
pkg_postinst() { |
82 |
ewarn "Remember to run: env-update && source /etc/profile if you plan" |
83 |
ewarn "to use these tools in a shell before logging out (or restarting" |
84 |
ewarn "your login manager)" |
85 |
+ |
86 |
elog |
87 |
elog "You need to put the following in your ~/.bashrc replacing the" |
88 |
elog "values with the full path to your AWS credentials file." |