summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2011-12-01 14:31:19 +0000
committerHans de Graaff <graaff@gentoo.org>2011-12-01 14:31:19 +0000
commit1039439120efb10bf88c062d740e78a2c3b98fad (patch)
treee0de8200a05862d36cdf6051fb01e2e184c9667d /dev-ruby/multi_json
parentVersion bump dev-python/markdown, add testing. (diff)
downloadgentoo-2-1039439120efb10bf88c062d740e78a2c3b98fad.tar.gz
gentoo-2-1039439120efb10bf88c062d740e78a2c3b98fad.tar.bz2
gentoo-2-1039439120efb10bf88c062d740e78a2c3b98fad.zip
Version bump.
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/multi_json')
-rw-r--r--dev-ruby/multi_json/ChangeLog7
-rw-r--r--dev-ruby/multi_json/multi_json-1.0.4.ebuild45
2 files changed, 51 insertions, 1 deletions
diff --git a/dev-ruby/multi_json/ChangeLog b/dev-ruby/multi_json/ChangeLog
index 363fdccc020d..6ea93787283b 100644
--- a/dev-ruby/multi_json/ChangeLog
+++ b/dev-ruby/multi_json/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/multi_json
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/multi_json/ChangeLog,v 1.7 2011/11/05 17:43:44 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/multi_json/ChangeLog,v 1.8 2011/12/01 14:31:19 graaff Exp $
+
+*multi_json-1.0.4 (01 Dec 2011)
+
+ 01 Dec 2011; Hans de Graaff <graaff@gentoo.org> +multi_json-1.0.4.ebuild:
+ Version bump.
05 Nov 2011; Hans de Graaff <graaff@gentoo.org> multi_json-1.0.3.ebuild:
dev-ruby/yajl-ruby is mandatory when testing for all targets except jruby.
diff --git a/dev-ruby/multi_json/multi_json-1.0.4.ebuild b/dev-ruby/multi_json/multi_json-1.0.4.ebuild
new file mode 100644
index 000000000000..2dd6ebaacc6b
--- /dev/null
+++ b/dev-ruby/multi_json/multi_json-1.0.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/multi_json/multi_json-1.0.4.ebuild,v 1.1 2011/12/01 14:31:19 graaff Exp $
+
+EAPI=2
+
+USE_RUBY="ruby18 ruby19 ree18 jruby"
+
+RUBY_FAKEGEM_TASK_TEST="spec"
+RUBY_FAKEGEM_TASK_DOC="doc:rdoc"
+
+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="~amd64 ~x86"
+SLOT="0"
+IUSE=""
+
+ruby_add_rdepend "|| ( >=dev-ruby/json-1.4 >=dev-ruby/yajl-ruby-0.7 =dev-ruby/activesupport-3* )"
+
+ruby_add_bdepend "test? ( dev-ruby/rspec:2 dev-ruby/json )"
+
+USE_RUBY=ruby18 ruby_add_bdepend "test? ( dev-ruby/yajl-ruby )"
+USE_RUBY=ruby19 ruby_add_bdepend "test? ( dev-ruby/yajl-ruby )"
+USE_RUBY=ree18 ruby_add_bdepend "test? ( dev-ruby/yajl-ruby )"
+
+all_ruby_prepare() {
+ sed -i -e '/[Bb]undler/d' Rakefile spec/helper.rb || die "Unable to remove bundler."
+ rm Gemfile || die "Unable to remove bundler Gemfile."
+
+ # Remove simplecov support since we only care about the test results
+ # and this avoids another dependency.
+ sed -i -e '/[Ss]imple[Cc]ov/d' spec/helper.rb || die
+
+ # Provide version otherwise provided by bundler.
+ sed -i -e "s/#{MultiJson::VERSION}/${PV}/" Rakefile || die
+}