forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws-sdk-1.8.4.ebuild
51 lines (38 loc) · 1.18 KB
/
aws-sdk-1.8.4.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
USE_RUBY="ruby19 ruby20 ruby21"
RUBY_FAKEGEM_RECIPE_TEST="rspec"
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
RUBY_FAKEGEM_EXTRAINSTALL="ca-bundle.crt"
GITHUB_USER="aws"
GITHUB_PROJECT="${PN}-ruby"
RUBY_S="${GITHUB_PROJECT}-${PV}"
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
inherit ruby-fakegem
DESCRIPTION="Official SDK for Amazon Web Services"
HOMEPAGE="http://aws.amazon.com/sdkforruby"
SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/archive/${PV}.tar.gz -> ${GITHUB_PROJECT}-${PV}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
ruby_add_rdepend "virtual/ruby-ssl
>=dev-ruby/json-1.4
>=dev-ruby/nokogiri-1.4.4
>=dev-ruby/uuidtools-2.1"
all_ruby_prepare() {
sed -i -e 's:~>:>=:' "${RUBY_FAKEGEM_GEMSPEC}" || die
# Needs rpsec 2.12
# https://github.com/aws/aws-sdk-ruby/issues/281
sed -i -e '/material location and decrypt with block/,+15d' \
spec/aws/s3/s3_object_encrypt_spec.rb || die
}
all_ruby_install() {
all_fakegem_install
insinto /usr/share/doc/${PF}
doins -r recipebook samples
}