/[gentoo-x86]/app-admin/ec2-ami-tools/ec2-ami-tools-1.4.0.2.ebuild
Gentoo

Contents of /app-admin/ec2-ami-tools/ec2-ami-tools-1.4.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Dec 14 13:50:24 2011 UTC (2 years, 8 months ago) by lxnay
Branch: MAIN
version bump

(Portage version: 2.2.0_alpha78/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=2
6
7 inherit versionator
8
9 DESCRIPTION="These command-line tools serve as the client interface to the Amazon EC2 web service."
10 HOMEPAGE="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=368&categoryID=88"
11 SRC_URI="http://s3.amazonaws.com/ec2-downloads/${P}.zip"
12
13 LICENSE="Amazon"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17 DEPEND="app-arch/unzip"
18 RDEPEND="dev-lang/ruby:1.8[ssl]
19 net-misc/rsync
20 net-misc/curl"
21
22 S="${WORKDIR}/${P}"
23
24 src_prepare() {
25 find . -name '*.cmd' -delete || die
26
27 # simplify the scripts to always run ruby18, since that seems to
28 # be what upstream has been using, and we support alternative
29 # implementations as well.
30 sed -i -e '$s:^ruby:exec ruby18:' bin/* || die
31 }
32
33 src_install() {
34 insinto /opt/${PN}
35 doins -r lib bin etc || die
36
37 chmod 0755 "${D}/opt/${PN}/bin/"*
38
39 dodir /etc/env.d
40 cat - > "${T}"/99${PN} <<EOF
41 EC2_AMITOOL_HOME=/opt/${PN}
42 PATH=/opt/${PN}/bin
43 ROOTPATH=/opt/${PN}/bin
44 EOF
45 doenvd "${T}"/99${PN}
46 }
47
48 pkg_postinst() {
49 ewarn "Remember to run: env-update && source /etc/profile if you plan"
50 ewarn "to use these tools in a shell before logging out (or restarting"
51 ewarn "your login manager)"
52 }

  ViewVC Help
Powered by ViewVC 1.1.20