commit:     4739198108643084ddcda777bf1bcb544d1524dc
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  9 05:52:33 2015 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Oct  9 06:07:53 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47391981

dev-ruby/ammeter: add 1.1.3

Package-Manager: portage-2.2.20.1

 dev-ruby/ammeter/Manifest             |  1 +
 dev-ruby/ammeter/ammeter-1.1.3.ebuild | 66 +++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/dev-ruby/ammeter/Manifest b/dev-ruby/ammeter/Manifest
index b0cd0b4..9cf4ac1 100644
--- a/dev-ruby/ammeter/Manifest
+++ b/dev-ruby/ammeter/Manifest
@@ -1 +1,2 @@
 DIST ammeter-1.1.2.gem 18432 SHA256 
99c55552b25ad39598b7f45d24fa849853cff4abcef235d35fa6f8ffd427b1d5 SHA512 
af723c7e4111862678902dfdba734b34c9893b6cd5a8dab754c24b41baf672bafab1044a2928f61d5078e82055ccfe2c05a060b1f8e4f4da164147ffd8241f6a
 WHIRLPOOL 
21b38bf2a1781f664761e5c822ca1ab6c8346d6020b863cdbff3ed0238a618989aa66b2642207b8a3deee74fb6d521169a397ebc10a41e4b4a2d6cf06baf8c8c
+DIST ammeter-1.1.3.gem 18432 SHA256 
7161be2080f78b5c41dbeb92ae1f0db450634493795c6b962e68d611ce03086a SHA512 
57428515435dc50e6feaf64f647c64d28ea345360e8ef324d4b6c10902658bf30685902e862e4526be105291620aa191e134a80762abbc9625062c485fb45cf0
 WHIRLPOOL 
dad6a009244daaa646ff333fae92f18fe5a09d24cd77ecea15aa87253a72a329f7676e0b578fa009b05ea3a3493897daa55e09e668147bfeecc67df6f5c2bc23

diff --git a/dev-ruby/ammeter/ammeter-1.1.3.ebuild 
b/dev-ruby/ammeter/ammeter-1.1.3.ebuild
new file mode 100644
index 0000000..4ba9d88
--- /dev/null
+++ b/dev-ruby/ammeter/ammeter-1.1.3.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby19 ruby20 ruby21"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Write specs for your Rails 3+ generators"
+HOMEPAGE="https://github.com/alexrothenberg/ammeter";
+LICENSE="MIT"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+# Restrict tests since they now require the specific rspec version to be
+# provided in an environment variable.
+#RESTRICT="test"
+
+ruby_add_rdepend "
+       >=dev-ruby/activesupport-3.0:*
+       >=dev-ruby/railties-3.0:*
+       >=dev-ruby/rspec-rails-2.2:*
+"
+
+ruby_add_bdepend "
+       test? (
+               >=dev-ruby/rails-4.0
+               >=dev-ruby/uglifier-1.3
+               >=dev-ruby/rake-0.10
+               >=dev-ruby/coffee-rails-4.0
+               >=dev-ruby/sass-rails-4.0
+               >=dev-ruby/jquery-rails-3.0
+               dev-util/cucumber
+               dev-util/aruba
+               dev-ruby/sqlite3
+               dev-ruby/bundler
+       )"
+
+all_ruby_prepare() {
+       # fix the gemspec; we remove the version dependencies from there, as
+       # it requires _older_ versions of its dependencies.. it doesn't
+       # really seem to be the case though. Also remove the references to
+       # git ls-files to avoid calling it.
+       sed -i \
+               -e '/git ls-files/d' \
+               -e '/\(cucumber\|aruba\)/s:,.*$::' \
+               ${RUBY_FAKEGEM_GEMSPEC} || die
+
+       # haml-rails is not packaged
+       sed -i -e '/haml-rails/d' ${RUBY_FAKEGEM_GEMSPEC} Gemfile || die
+       rm -f spec/ammeter/rspec/generator/matchers/have_correct_syntax_spec.rb 
|| die
+}
+
+each_ruby_test() {
+       ${RUBY} -S bundle exec ${RUBY} -S rspec-3 spec || die
+}

Reply via email to