summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2015-10-18 07:58:57 +0200
committerHans de Graaff <graaff@gentoo.org>2015-10-18 07:58:57 +0200
commit6057fd5dc9dc7c2bf2a90757f821754be599c693 (patch)
treefca023fe96b2b11b8de6a322601fb68853d10051 /dev-ruby/ruby-beautify
parentdev-ruby/selenium-webdriver: add 2.48.1 (diff)
downloadgentoo-6057fd5dc9dc7c2bf2a90757f821754be599c693.tar.gz
gentoo-6057fd5dc9dc7c2bf2a90757f821754be599c693.tar.bz2
gentoo-6057fd5dc9dc7c2bf2a90757f821754be599c693.zip
dev-ruby/ruby-beautify: add 0.97.3
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-ruby/ruby-beautify')
-rw-r--r--dev-ruby/ruby-beautify/Manifest1
-rw-r--r--dev-ruby/ruby-beautify/ruby-beautify-0.97.3.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/ruby-beautify/Manifest b/dev-ruby/ruby-beautify/Manifest
index e97384698eb0..903a2bcb3c56 100644
--- a/dev-ruby/ruby-beautify/Manifest
+++ b/dev-ruby/ruby-beautify/Manifest
@@ -1 +1,2 @@
DIST ruby-beautify-0.93.2.gem 9216 SHA256 6b2ca9d69495b66d35569a3fe895485063b9f506d0002b970ec88bc778ffd366 SHA512 ff2d97020d1a4c394e26387cd92b6e4b04066f539cd28ed2c3b122606a2e2aea18939373c1d23e229e4ae17bb670b8dbe109d9b45c86e3a5c59614babd212cac WHIRLPOOL ed2867b02001acbfb15465aaff737cddf79672cf4d1cefac8d5734b73aa50c4b3043796d19f887192f9c95383e80583435d9a818ee8b50f06673ee6f74815aaa
+DIST ruby-beautify-0.97.3.gem 14848 SHA256 aa7d0fb34a5d878a686d0b950fa572addb4d3ea1bb7dac4b00a1fbd3d8815e58 SHA512 aac43448330852b692f8ca1d51777db9b966fffaff9e61decbadb9646e2727cbe458427fa9503aee2fbf597ed72ebb89a0b4e2585471bf4c52bb4b5a1ef41962 WHIRLPOOL 073a6362c9f90f32dc5c12a4da204dcf4472fa1cf41b4b0b4830eb344cda0edf48d352fc2a138b9c3c846e1fe6306086aa41db4ade4461600f6971b185cf41f0
diff --git a/dev-ruby/ruby-beautify/ruby-beautify-0.97.3.ebuild b/dev-ruby/ruby-beautify/ruby-beautify-0.97.3.ebuild
new file mode 100644
index 000000000000..a8b6c3c20b0f
--- /dev/null
+++ b/dev-ruby/ruby-beautify/ruby-beautify-0.97.3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby19 ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec"
+
+RUBY_FAKEGEM_EXTRADOC="README.md WHATSNEW.md"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="a cli tool (and module) to beautify ruby code"
+HOMEPAGE="https://github.com/erniebrodeur/ruby-beautify"
+LICENSE="MIT"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86"
+SLOT="0"
+IUSE=""
+
+all_ruby_prepare() {
+ sed -i -e '/codeclimate/I s:^:#:' spec/spec_helper.rb || die
+}
+
+each_ruby_prepare() {
+ # Needed for specs
+ mkdir tmp || die
+
+ # Use correct ruby interpreter to test and avoid bundler. Handle
+ # directory changes.
+ sed -i -e 's|bundle exec|'${RUBY}' -Ilib:../lib -S|' spec/bin/ruby-beautify_spec.rb || die
+}