summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2014-02-20 06:52:01 +0000
committerHans de Graaff <graaff@gentoo.org>2014-02-20 06:52:01 +0000
commitfe1838e91feed47a9a9233b627a2596bfd018f84 (patch)
tree564a4c5e42f1ae8d546d6f102e347c6aba10e239 /dev-ruby
parentAdd optional dependency on sys-libs/libseccomp. (diff)
downloadgentoo-2-fe1838e91feed47a9a9233b627a2596bfd018f84.tar.gz
gentoo-2-fe1838e91feed47a9a9233b627a2596bfd018f84.tar.bz2
gentoo-2-fe1838e91feed47a9a9233b627a2596bfd018f84.zip
Version bump by Peter Wilmott in the ruby overlay.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/crack/ChangeLog9
-rw-r--r--dev-ruby/crack/crack-0.4.2.ebuild34
2 files changed, 41 insertions, 2 deletions
diff --git a/dev-ruby/crack/ChangeLog b/dev-ruby/crack/ChangeLog
index a55ede4a56cd..e1ac98896867 100644
--- a/dev-ruby/crack/ChangeLog
+++ b/dev-ruby/crack/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/crack
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/crack/ChangeLog,v 1.34 2013/11/20 23:24:18 mrueg Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/crack/ChangeLog,v 1.35 2014/02/20 06:52:01 graaff Exp $
+
+*crack-0.4.2 (20 Feb 2014)
+
+ 20 Feb 2014; Hans de Graaff <graaff@gentoo.org> +crack-0.4.2.ebuild:
+ Version bump by Peter Wilmott in the ruby overlay.
*crack-0.4.1 (20 Nov 2013)
diff --git a/dev-ruby/crack/crack-0.4.2.ebuild b/dev-ruby/crack/crack-0.4.2.ebuild
new file mode 100644
index 000000000000..d1b8e297336f
--- /dev/null
+++ b/dev-ruby/crack/crack-0.4.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/crack/crack-0.4.2.ebuild,v 1.1 2014/02/20 06:52:01 graaff Exp $
+
+EAPI=5
+
+USE_RUBY="ruby18 ruby19 ruby20 jruby"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md History"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Really simple JSON and XML parsing, ripped from Merb and Rails."
+HOMEPAGE="https://github.com/jnunemaker/crack"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux ~x64-macos ~x64-solaris"
+IUSE=""
+
+ruby_add_bdepend "test? ( dev-ruby/minitest )"
+ruby_add_rdepend ">=dev-ruby/safe_yaml-1.0.0"
+
+each_ruby_prepare() {
+ # Remove tests which fail when run by portage but pass when run by hand
+ sed -i -e '/{"regex": \/foo.*\/}/d' test/json_test.rb || die
+ sed -i -e '/{"regex": \/foo.*\/i}/d' test/json_test.rb || die
+ sed -i -e '/{"regex": \/foo.*\/mix}/d' test/json_test.rb || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Itest -Ilib -e 'Dir["test/*_test.rb"].each { |f| load f }' || die
+}