summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-06-10 22:41:41 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-06-10 22:41:41 +0000
commite4ca89ae08e4d4ef2ffde568089f44c1ff1492d5 (patch)
treeb9ce08d14dbcfed191f96acfd37b5b070c951a7c /dev-ruby/amazon-ec2/amazon-ec2-0.9.15.ebuild
parentVersion bump. (diff)
downloadgentoo-2-e4ca89ae08e4d4ef2ffde568089f44c1ff1492d5.tar.gz
gentoo-2-e4ca89ae08e4d4ef2ffde568089f44c1ff1492d5.tar.bz2
gentoo-2-e4ca89ae08e4d4ef2ffde568089f44c1ff1492d5.zip
Version bump.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/amazon-ec2/amazon-ec2-0.9.15.ebuild')
-rw-r--r--dev-ruby/amazon-ec2/amazon-ec2-0.9.15.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/amazon-ec2/amazon-ec2-0.9.15.ebuild b/dev-ruby/amazon-ec2/amazon-ec2-0.9.15.ebuild
new file mode 100644
index 000000000000..9be11cf40f82
--- /dev/null
+++ b/dev-ruby/amazon-ec2/amazon-ec2-0.9.15.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/amazon-ec2/amazon-ec2-0.9.15.ebuild,v 1.1 2010/06/10 22:41:41 flameeyes Exp $
+
+EAPI=2
+
+USE_RUBY="ruby18 ruby19 jruby"
+
+RUBY_FAKEGEM_TASK_DOC="yard"
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.rdoc README_dev.rdoc ChangeLog"
+
+RUBY_FAKEGEM_BINWRAP="ec2sh"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Library for accessing the Amazon Web Services EC2 and related"
+HOMEPAGE="http://github.com/grempe/amazon-ec2"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# We only need yard for Ruby 1.8, as we use it for documentation
+# generation.
+USE_RUBY=ruby18 \
+ ruby_add_bdepend "doc? ( dev-ruby/yard )"
+
+ruby_add_bdepend "
+ test? (
+ virtual/ruby-test-unit
+ >=dev-ruby/test-spec-0.10.0
+ >=dev-ruby/mocha-0.9.8
+ )"
+ruby_add_rdepend '>=dev-ruby/xml-simple-1.0.12'
+
+each_ruby_prepare() {
+ case ${RUBY} in
+ *ruby19)
+ ;;
+ *)
+ # Remove the reference to test-unit gem, since it's only
+ # available on Ruby 1.9.
+ sed -i -e '/^gem/s:^:#:' test/test_helper.rb || die
+ ;;
+ esac
+}