summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-ruby/multi_json
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-ruby/multi_json')
-rw-r--r--dev-ruby/multi_json/Manifest5
-rw-r--r--dev-ruby/multi_json/files/multi_json-0.0.4-gentoo.patch24
-rw-r--r--dev-ruby/multi_json/files/multi_json-1.0.3-gentoo.patch75
-rw-r--r--dev-ruby/multi_json/metadata.xml8
-rw-r--r--dev-ruby/multi_json/multi_json-1.10.1.ebuild61
-rw-r--r--dev-ruby/multi_json/multi_json-1.11.0.ebuild62
-rw-r--r--dev-ruby/multi_json/multi_json-1.11.1.ebuild62
-rw-r--r--dev-ruby/multi_json/multi_json-1.11.2.ebuild62
-rw-r--r--dev-ruby/multi_json/multi_json-1.9.3.ebuild62
9 files changed, 421 insertions, 0 deletions
diff --git a/dev-ruby/multi_json/Manifest b/dev-ruby/multi_json/Manifest
new file mode 100644
index 000000000000..1882aad6f0f4
--- /dev/null
+++ b/dev-ruby/multi_json/Manifest
@@ -0,0 +1,5 @@
+DIST multi_json-1.10.1.gem 30720 SHA256 2c98979877e87df0b338ebf5c86091b390f53d62c11a8232bd51ca007e0b82d2 SHA512 50cc7a0b856b3313e7b9d5237f598eb8fa048072924fbe470d44276ae5e82e1abc6adc6ad1182116f1a16692e919960643b28bd6d4de6d0251b65a51a86940d0 WHIRLPOOL 935abd203fbdd80d9d2e89944ed85f3155263751d56e50847f7e37697e183fea49e5048b37e11705b455f260bd3cfb7e8795c980c89bdc252bc30a89f216aa4d
+DIST multi_json-1.11.0.tar.gz 24606 SHA256 78d80aa456ad8e771e3362b24d7c985c61d96055bb582610ce0da0612ecd5e8d SHA512 1b1afda6f1b6c1a7b20f5975ecdac0c57ad60c8bb51d80b6a1c7dbad9a6288065b296fb41c7072ffef23e8d4835da720cc844612cb757a795ff5a124a82efb27 WHIRLPOOL 29e65e7724f24f1980fc6c2fe6fa2edaa7b12f1d51037ec50d3e2c0f60ea51cdbc896223df048f75867604399c083b986fec8131e280977144e2541c9104301a
+DIST multi_json-1.11.1.tar.gz 24648 SHA256 9c0312d9190bf8e0ebea3d753a08af0a1bbc8cdebc4d403c68470626e94eb534 SHA512 7e0234c5836f04f73d84f80ebde42ecf64e8ab2aae90d028f87d32abfaf1fbb81456dd29361d9a69efe67450a274bfa0d92788bd82883c49dac226184aa0d306 WHIRLPOOL ef8f8cd2fcbd6d9a38b4ab411fde81ccedb77d9d6103184cdfbc0404f5f39c1207ff2e555d503b46bf973957ffe39ce547aabcfe84f8fd43ddb805630c217416
+DIST multi_json-1.11.2.tar.gz 24748 SHA256 656e92aa19d5e0fc08c1f30f30e328479631407d1dd893c058cac88dd0777313 SHA512 bb4b1835cd5d4355003dfc1085cbb71913766d6e8210dab93d8aed5e6612a29f60420efd550f566c63da5358e1ce2daf04049c1d635caf07244f117cff0f3794 WHIRLPOOL 8216b793687c0d1ec30eaaefce5320e6124468adb3bbd905455ecf0ae66e962d662f492f91854f00077e15d9ae9b15e43a58f10d79acc6469fc668462bcce59f
+DIST multi_json-1.9.3.gem 30720 SHA256 631390d4b6c3d3753a3df0c28339c8e7840704083dfdcefb1323a22ab97b2281 SHA512 7f06747e760a63b6421dfda480522924f12bd00ad63f95414f6624173b9b9b255b139f9dc33d2d2a8d19b232f99a005033e00e3a0b223be992f73d142a55b8b5 WHIRLPOOL a96f1c1e53865e153bc83079fc70b69af6c941c4995f4215317ca53567532d1406adb174683fc8c5229fdc3563f5e8d3c2c662d77cf9d9d55367aab2df5b34f0
diff --git a/dev-ruby/multi_json/files/multi_json-0.0.4-gentoo.patch b/dev-ruby/multi_json/files/multi_json-0.0.4-gentoo.patch
new file mode 100644
index 000000000000..8736809a97f9
--- /dev/null
+++ b/dev-ruby/multi_json/files/multi_json-0.0.4-gentoo.patch
@@ -0,0 +1,24 @@
+diff --git a/spec/multi_json_spec.rb b/spec/multi_json_spec.rb
+index 2df3350..9d2a376 100644
+--- a/spec/multi_json_spec.rb
++++ b/spec/multi_json_spec.rb
+@@ -13,13 +13,17 @@ end
+ describe "MultiJson" do
+ context 'engines' do
+ it 'should default to the best available gem' do
++ begin
+ require 'yajl'
+ MultiJson.engine.name.should == 'MultiJson::Engines::Yajl'
++ rescue LoadError
++ pending "YAJL (or a dependency) not available."
++ end
+ end
+
+ it 'should be settable via a symbol' do
+- MultiJson.engine = :yajl
+- MultiJson.engine.name.should == 'MultiJson::Engines::Yajl'
++ MultiJson.engine = :json_pure
++ MultiJson.engine.name.should == 'MultiJson::Engines::JsonPure'
+ end
+
+ it 'should be settable via a class' do
diff --git a/dev-ruby/multi_json/files/multi_json-1.0.3-gentoo.patch b/dev-ruby/multi_json/files/multi_json-1.0.3-gentoo.patch
new file mode 100644
index 000000000000..2e031e0c01a4
--- /dev/null
+++ b/dev-ruby/multi_json/files/multi_json-1.0.3-gentoo.patch
@@ -0,0 +1,75 @@
+A small part of
+
+commit d83002691a34a32b6d6d181817af7f8e68524638
+Author: Erik Michaels-Ober <sferik@gmail.com>
+Date: Sat May 14 09:26:31 2011 -0700
+
+ Cleanup
+
+diff --git a/spec/multi_json_spec.rb b/spec/multi_json_spec.rb
+index 9be78f4..55238c9 100644
+--- b/spec/multi_json_spec.rb
++++ a/spec/multi_json_spec.rb
+@@ -1,9 +1,9 @@
+-require 'helper'
++require 'spec_helper'
+ require 'stringio'
+-
++
+ class MockDecoder
+ def self.decode(string, options = {})
+- {'abc' => 'def'}
++ { 'abc' => 'def' }
+ end
+
+ def self.encode(string)
+@@ -26,10 +26,16 @@
+ end
+ end
+ end
+-
++
+ it 'defaults to the best available gem' do
+- require 'yajl'
+- MultiJson.engine.name.should == 'MultiJson::Engines::Yajl'
++ # the yajl-ruby gem does not work on jruby, so the best engine is the JsonGem engine
++ if jruby?
++ require 'json'
++ MultiJson.engine.name.should == 'MultiJson::Engines::JsonGem'
++ else
++ require 'yajl'
++ MultiJson.engine.name.should == 'MultiJson::Engines::Yajl'
++ end
+ end
+
+ it 'is settable via a symbol' do
+@@ -89,7 +95,7 @@
+ encoded_json = MultiJson.encode(:a => 1, :b => {:c => 2})
+ MultiJson.decode(encoded_json).should == { "a" => 1, "b" => { "c" => 2 } }
+ end
+-
++
+ it "properly decodes valid JSON in StringIOs" do
+ json = StringIO.new('{"abc":"def"}')
+ MultiJson.decode(json).should == { 'abc' => 'def' }
+diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
+deleted file mode 100644
+index a9b66e6..0000000
+--- /dev/null
++++ a/spec/spec_helper.rb
+@@ -0,0 +1,15 @@
++begin
++ require 'bundler'
++rescue LoadError
++ puts "although not required, it's recommended that you use bundler during development"
++end
++
++require 'rspec'
++require 'rspec/autorun'
++
++$VERBOSE = true
++require 'multi_json'
++
++def jruby?
++ defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
++end
diff --git a/dev-ruby/multi_json/metadata.xml b/dev-ruby/multi_json/metadata.xml
new file mode 100644
index 000000000000..f3d76da5811d
--- /dev/null
+++ b/dev-ruby/multi_json/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ruby</herd>
+ <upstream>
+ <remote-id type="github">intridea/multi_json</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/multi_json/multi_json-1.10.1.ebuild b/dev-ruby/multi_json/multi_json-1.10.1.ebuild
new file mode 100644
index 000000000000..0bc90d2fa80f
--- /dev/null
+++ b/dev-ruby/multi_json/multi_json-1.10.1.ebuild
@@ -0,0 +1,61 @@
+# 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_TASK_DOC="yard"
+
+RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="multi_json.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A gem to provide swappable JSON backends"
+HOMEPAGE="http://github.com/intridea/multi_json"
+LICENSE="MIT"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+IUSE=""
+
+ruby_add_rdepend "|| ( >=dev-ruby/json-1.4 >=dev-ruby/yajl-ruby-1.0 =dev-ruby/activesupport-3* )"
+
+ruby_add_bdepend "doc? ( dev-ruby/rspec:2 dev-ruby/yard )"
+
+ruby_add_bdepend "test? ( dev-ruby/json
+ dev-ruby/yajl-ruby )"
+
+all_ruby_prepare() {
+ sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb || die "Unable to remove bundler."
+
+ # Remove unimportant rspec options not supported by rspec 2.6.
+ rm .rspec || die
+
+ # Remove specs specific to oj since we don't package oj yet.
+ sed -i -e '/defaults to the best available gem/,/^ end/ s:^:#:' \
+ -e '/Oj does not create symbols on parse/,/^ end/ s:^:#:' \
+ -e '/with Oj.default_settings/,/^ end/ s:^:#:' \
+ -e '/using one-shot parser/,/^ end/ s:^:#:' \
+ spec/multi_json_spec.rb
+
+ # Avoid simplecov which only works with ruby 1.9
+ sed -i -e '/simplecov/d' -e '/SimpleCov.formatter/,/SimpleCov.start/ d' spec/spec_helper.rb || die
+
+ # Remove unpackaged and for our purposes unneeded coveralls
+ sed -i -e '/coveralls/d' spec/spec_helper.rb || die
+
+ # Avoid testing unpackaged adapters
+ rm spec/{gson,jr_jackson,oj}_adapter_spec.rb || die
+}
+
+each_ruby_test() {
+ for t in spec/*_spec.rb; do
+ ${RUBY} -S rspec ${t} || die
+ done
+}
diff --git a/dev-ruby/multi_json/multi_json-1.11.0.ebuild b/dev-ruby/multi_json/multi_json-1.11.0.ebuild
new file mode 100644
index 000000000000..488e9e9d34fc
--- /dev/null
+++ b/dev-ruby/multi_json/multi_json-1.11.0.ebuild
@@ -0,0 +1,62 @@
+# 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_RECIPE_TEST="rspec"
+RUBY_FAKEGEM_TASK_DOC="yard"
+
+RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="multi_json.gemspec"
+
+inherit ruby-fakegem
+
+SRC_URI="https://github.com/intridea/multi_json/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+DESCRIPTION="A gem to provide swappable JSON backends"
+HOMEPAGE="http://github.com/intridea/multi_json"
+LICENSE="MIT"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+IUSE=""
+
+ruby_add_rdepend "|| ( >=dev-ruby/json-1.4 >=dev-ruby/yajl-ruby-1.0 =dev-ruby/activesupport-3* )"
+
+ruby_add_bdepend "doc? ( dev-ruby/rspec:2 dev-ruby/yard )"
+
+ruby_add_bdepend "test? ( dev-ruby/json
+ dev-ruby/yajl-ruby )"
+
+all_ruby_prepare() {
+ sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb || die "Unable to remove bundler."
+
+ # Remove unimportant rspec options not supported by rspec 2.6.
+ rm .rspec || die
+
+ # Remove specs specific to oj since we don't package oj yet.
+ sed -i -e '/defaults to the best available gem/,/^ end/ s:^:#:' \
+ -e '/Oj does not create symbols on parse/,/^ end/ s:^:#:' \
+ -e '/with Oj.default_settings/,/^ end/ s:^:#:' \
+ -e '/using one-shot parser/,/^ end/ s:^:#:' \
+ spec/multi_json_spec.rb
+
+ # Avoid simplecov which only works with ruby 1.9
+ sed -i -e '/simplecov/d' -e '/SimpleCov.formatter/,/SimpleCov.start/ d' spec/spec_helper.rb || die
+
+ # Remove unpackaged and for our purposes unneeded coveralls
+ sed -i -e '/coveralls/d' spec/spec_helper.rb || die
+
+ # Avoid testing unpackaged adapters
+ rm spec/{gson,jr_jackson,oj}_adapter_spec.rb || die
+}
+
+each_ruby_test() {
+ for t in spec/*_spec.rb; do
+ ${RUBY} -S rspec ${t} || die
+ done
+}
diff --git a/dev-ruby/multi_json/multi_json-1.11.1.ebuild b/dev-ruby/multi_json/multi_json-1.11.1.ebuild
new file mode 100644
index 000000000000..719afb642365
--- /dev/null
+++ b/dev-ruby/multi_json/multi_json-1.11.1.ebuild
@@ -0,0 +1,62 @@
+# 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="rspec3"
+RUBY_FAKEGEM_TASK_DOC="yard"
+
+RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="multi_json.gemspec"
+
+inherit ruby-fakegem
+
+SRC_URI="https://github.com/intridea/multi_json/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+DESCRIPTION="A gem to provide swappable JSON backends"
+HOMEPAGE="https://github.com/intridea/multi_json"
+LICENSE="MIT"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+IUSE=""
+
+ruby_add_rdepend "|| ( >=dev-ruby/json-1.4 >=dev-ruby/yajl-ruby-1.0 =dev-ruby/activesupport-3* )"
+
+ruby_add_bdepend "doc? ( dev-ruby/rspec:3 dev-ruby/yard )"
+
+ruby_add_bdepend "test? ( dev-ruby/json
+ dev-ruby/yajl-ruby )"
+
+all_ruby_prepare() {
+ sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb || die "Unable to remove bundler."
+
+ # Remove unimportant rspec options not supported by rspec 2.6.
+ rm .rspec || die
+
+ # Remove specs specific to oj since we don't package oj yet.
+ sed -i -e '/defaults to the best available gem/,/^ end/ s:^:#:' \
+ -e '/Oj does not create symbols on parse/,/^ end/ s:^:#:' \
+ -e '/with Oj.default_settings/,/^ end/ s:^:#:' \
+ -e '/using one-shot parser/,/^ end/ s:^:#:' \
+ spec/multi_json_spec.rb
+
+ # Avoid simplecov which only works with ruby 1.9
+ sed -i -e '/simplecov/d' -e '/SimpleCov.formatter/,/SimpleCov.start/ d' spec/spec_helper.rb || die
+
+ # Remove unpackaged and for our purposes unneeded coveralls
+ sed -i -e '/coveralls/d' spec/spec_helper.rb || die
+
+ # Avoid testing unpackaged adapters
+ rm spec/{gson,jr_jackson,oj}_adapter_spec.rb || die
+}
+
+each_ruby_test() {
+ for t in spec/*_spec.rb; do
+ ${RUBY} -S rspec-3 ${t} || die
+ done
+}
diff --git a/dev-ruby/multi_json/multi_json-1.11.2.ebuild b/dev-ruby/multi_json/multi_json-1.11.2.ebuild
new file mode 100644
index 000000000000..719afb642365
--- /dev/null
+++ b/dev-ruby/multi_json/multi_json-1.11.2.ebuild
@@ -0,0 +1,62 @@
+# 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="rspec3"
+RUBY_FAKEGEM_TASK_DOC="yard"
+
+RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="multi_json.gemspec"
+
+inherit ruby-fakegem
+
+SRC_URI="https://github.com/intridea/multi_json/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+DESCRIPTION="A gem to provide swappable JSON backends"
+HOMEPAGE="https://github.com/intridea/multi_json"
+LICENSE="MIT"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+IUSE=""
+
+ruby_add_rdepend "|| ( >=dev-ruby/json-1.4 >=dev-ruby/yajl-ruby-1.0 =dev-ruby/activesupport-3* )"
+
+ruby_add_bdepend "doc? ( dev-ruby/rspec:3 dev-ruby/yard )"
+
+ruby_add_bdepend "test? ( dev-ruby/json
+ dev-ruby/yajl-ruby )"
+
+all_ruby_prepare() {
+ sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb || die "Unable to remove bundler."
+
+ # Remove unimportant rspec options not supported by rspec 2.6.
+ rm .rspec || die
+
+ # Remove specs specific to oj since we don't package oj yet.
+ sed -i -e '/defaults to the best available gem/,/^ end/ s:^:#:' \
+ -e '/Oj does not create symbols on parse/,/^ end/ s:^:#:' \
+ -e '/with Oj.default_settings/,/^ end/ s:^:#:' \
+ -e '/using one-shot parser/,/^ end/ s:^:#:' \
+ spec/multi_json_spec.rb
+
+ # Avoid simplecov which only works with ruby 1.9
+ sed -i -e '/simplecov/d' -e '/SimpleCov.formatter/,/SimpleCov.start/ d' spec/spec_helper.rb || die
+
+ # Remove unpackaged and for our purposes unneeded coveralls
+ sed -i -e '/coveralls/d' spec/spec_helper.rb || die
+
+ # Avoid testing unpackaged adapters
+ rm spec/{gson,jr_jackson,oj}_adapter_spec.rb || die
+}
+
+each_ruby_test() {
+ for t in spec/*_spec.rb; do
+ ${RUBY} -S rspec-3 ${t} || die
+ done
+}
diff --git a/dev-ruby/multi_json/multi_json-1.9.3.ebuild b/dev-ruby/multi_json/multi_json-1.9.3.ebuild
new file mode 100644
index 000000000000..d40c3d062f59
--- /dev/null
+++ b/dev-ruby/multi_json/multi_json-1.9.3.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby19 ruby20"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec"
+RUBY_FAKEGEM_TASK_DOC="yard"
+
+RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="multi_json.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A gem to provide swappable JSON backends"
+HOMEPAGE="http://github.com/intridea/multi_json"
+LICENSE="MIT"
+
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+IUSE=""
+
+ruby_add_rdepend "|| ( >=dev-ruby/json-1.4 >=dev-ruby/yajl-ruby-0.7 =dev-ruby/activesupport-3* )"
+
+ruby_add_bdepend "doc? ( dev-ruby/rspec:2 dev-ruby/yard )"
+
+ruby_add_bdepend "test? ( dev-ruby/json
+ dev-ruby/yajl-ruby )"
+
+all_ruby_prepare() {
+ sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb || die "Unable to remove bundler."
+ rm Gemfile || die "Unable to remove bundler Gemfile."
+
+ # Remove unimportant rspec options not supported by rspec 2.6.
+ rm .rspec || die
+
+ # Remove specs specific to oj since we don't package oj yet.
+ sed -i -e '/defaults to the best available gem/,/^ end/ s:^:#:' \
+ -e '/Oj does not create symbols on parse/,/^ end/ s:^:#:' \
+ -e '/with Oj.default_settings/,/^ end/ s:^:#:' \
+ -e '/using one-shot parser/,/^ end/ s:^:#:' \
+ spec/multi_json_spec.rb
+
+ # Avoid simplecov which only works with ruby 1.9
+ sed -i -e '/simplecov/d' -e '/SimpleCov.formatter/,/SimpleCov.start/ d' spec/spec_helper.rb || die
+
+ # Remove unpackaged and for our purposes unneeded coveralls
+ sed -i -e '/coveralls/d' spec/spec_helper.rb || die
+
+ # Avoid testing unpackaged adapters
+ rm spec/{gson,jr_jackson,oj}_adapter_spec.rb || die
+}
+
+each_ruby_test() {
+ for t in spec/*_spec.rb; do
+ ${RUBY} -S rspec ${t} || die
+ done
+}