diff options
author | Hans de Graaff <graaff@gentoo.org> | 2015-12-04 07:46:49 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2015-12-04 07:50:04 +0100 |
commit | b04d2910a37792717f2a64330abee35452f0e207 (patch) | |
tree | d86156618fb7a3d065edda515f4aabc8b95589d0 /dev-ruby/crack | |
parent | dev-ruby/mixlib-shellout: add 2.2.5 (diff) | |
download | gentoo-b04d2910a37792717f2a64330abee35452f0e207.tar.gz gentoo-b04d2910a37792717f2a64330abee35452f0e207.tar.bz2 gentoo-b04d2910a37792717f2a64330abee35452f0e207.zip |
dev-ruby/crack: add 0.4.3
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-ruby/crack')
-rw-r--r-- | dev-ruby/crack/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/crack/crack-0.4.3.ebuild | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/crack/Manifest b/dev-ruby/crack/Manifest index 067b1cf8cce4..25a61d2d03c6 100644 --- a/dev-ruby/crack/Manifest +++ b/dev-ruby/crack/Manifest @@ -1 +1,2 @@ DIST crack-0.4.2.gem 37376 SHA256 ea4c34f052106f571235f627f561d28309151c09b841130bb7627c2d522589c6 SHA512 0c1adfe9cbcf6c5bdabba20819c7ed7dce0a8e360695564927bab447c3d66d786bd9267066efb08732b0fc4687d9dc3ac74c650eb8cec17575926aa9a24f7723 WHIRLPOOL 71ef6176576f897ab46ae431bafba512cacdeb5fbfdf1bcafbef24c9d4dcb8abb242b8722a75ae4db891fb8c86dd7a9e7d05a0fdcb86958ac5d0a6d4a873a49f +DIST crack-0.4.3.gem 574976 SHA256 5318ba8cd9cf7e0b5feb38948048503ba4b1fdc1b6ff30a39f0a00feb6036b29 SHA512 c6577bd86fe2e36b2a37693729da9fc35c5d4deb860ac1873265ccb6fb38056fd76d8c17bb4f779b39f4bc13b9db37c1768433f518c17090ccbb0872a103b386 WHIRLPOOL 7a27a200e0662fa8fc512164286e3342be2da4b5839b4308e50fd8307afb6f1957ca1083f03b2a64ef365a12e3ddbbdd6d1c3ec40261f8197df8bdad88b0ea0d diff --git a/dev-ruby/crack/crack-0.4.3.ebuild b/dev-ruby/crack/crack-0.4.3.ebuild new file mode 100644 index 000000000000..f6ff5a35f076 --- /dev/null +++ b/dev-ruby/crack/crack-0.4.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="ruby20 ruby21 ruby22" + +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 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-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 +} |