diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-06-02 17:18:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-06-02 17:18:14 +0100 |
commit | 7b9f15840068dfaeea5684f8a1af1fe460dfa14c (patch) | |
tree | 112eea4497761c0227537330b58f9c7e0af3f9d8 /dev-ruby/crack | |
parent | 0bff53119f08d677db6c1a991bd30741682a8a08 (diff) |
gentoo resync : 02.06.2018
Diffstat (limited to 'dev-ruby/crack')
-rw-r--r-- | dev-ruby/crack/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/crack/crack-0.4.3-r2.ebuild | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-ruby/crack/Manifest b/dev-ruby/crack/Manifest index 0a3da38ce9bd..44f350cd0d66 100644 --- a/dev-ruby/crack/Manifest +++ b/dev-ruby/crack/Manifest @@ -1,3 +1,4 @@ DIST crack-0.4.3.gem 574976 BLAKE2B 4b6f23277ec17a516d06e6e6785889996172b3ec077f022d1a52ab4b8e938b2735abbaecc71288b55654ff09a428c33eb944b627cfdc827ea1f4ddc6289461d9 SHA512 c6577bd86fe2e36b2a37693729da9fc35c5d4deb860ac1873265ccb6fb38056fd76d8c17bb4f779b39f4bc13b9db37c1768433f518c17090ccbb0872a103b386 EBUILD crack-0.4.3-r1.ebuild 1054 BLAKE2B 28710a8781da4b875a31b89ce768bdec4f78f1f9cb80e72a788f5e16b112cc152978f51f16732a9a3f4137518c43b313fb4884682c2acbde623d569a402eea2f SHA512 8c9781e42bd4e2a12ce317569af0401c48d38ec1dadd96c0b993ed6e71a144aa7f11d2fc57e052e4114c0e84c404e21e56eb3274a5e62bb1cebfb484fd98927c +EBUILD crack-0.4.3-r2.ebuild 1052 BLAKE2B 063df896801f3bb6b32606c2dd9c1273a2beb6d441504e3c325a4e40152db7739b4156011fff3799670fc1f46ac1032e6c9453fa235bae52fe6dd38a08cd23fa SHA512 3ba79293f5656621fee9bb6148db823bade37b599c551d725d3f6af120cd73865729b20003559958d9adf8f2a6df6afb8373b35941f4b985e7823cae1975f5d7 MISC metadata.xml 342 BLAKE2B bf1bf4fa826a68ba0c2344619bd3a18ea9f3944f41ee9edda5b0cdebb46d8790a39dd6ef738f996a3c15672a1fe7242c55132eefaf719f21725d9b4372eb4f07 SHA512 2f890aec4b5c1bf8a31bd079d8e0b8e17242e262b7ba2619e5f791da25e2e7510a52086b4103ed257726d0a47e999dd22d0b3c60f8dc77c515f5fc61b122f2a8 diff --git a/dev-ruby/crack/crack-0.4.3-r2.ebuild b/dev-ruby/crack/crack-0.4.3-r2.ebuild new file mode 100644 index 000000000000..e74082f18a48 --- /dev/null +++ b/dev-ruby/crack/crack-0.4.3-r2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby23 ruby24 ruby25" + +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 ~arm ~arm64 ~hppa ~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.4-r4" + +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 +} |