diff options
author | Hans de Graaff <graaff@gentoo.org> | 2020-09-18 07:14:44 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2020-09-18 07:14:44 +0200 |
commit | c6a7eb7460ca74c9449ceb4c979a98121e68ca38 (patch) | |
tree | d77ff678bc630e5b68b5da66c277a5855a3f570d | |
parent | dev-perl/Fuse: -r bump for various toolchain love and bug fixes (diff) | |
download | gentoo-c6a7eb7460ca74c9449ceb4c979a98121e68ca38.tar.gz gentoo-c6a7eb7460ca74c9449ceb4c979a98121e68ca38.tar.bz2 gentoo-c6a7eb7460ca74c9449ceb4c979a98121e68ca38.zip |
dev-ruby/crack: add 0.4.4
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r-- | dev-ruby/crack/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/crack/crack-0.4.4.ebuild | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/crack/Manifest b/dev-ruby/crack/Manifest index c6e5f634e808..3bcf68e1f3a1 100644 --- a/dev-ruby/crack/Manifest +++ b/dev-ruby/crack/Manifest @@ -1 +1,2 @@ DIST crack-0.4.3.gem 574976 BLAKE2B 4b6f23277ec17a516d06e6e6785889996172b3ec077f022d1a52ab4b8e938b2735abbaecc71288b55654ff09a428c33eb944b627cfdc827ea1f4ddc6289461d9 SHA512 c6577bd86fe2e36b2a37693729da9fc35c5d4deb860ac1873265ccb6fb38056fd76d8c17bb4f779b39f4bc13b9db37c1768433f518c17090ccbb0872a103b386 +DIST crack-0.4.4.tar.gz 586633 BLAKE2B 26e2cda6e9447fb3c9fe02092a6e9d6a8097c7bca6a483a3af42aa8ba491b737bc0dc3ae1936ef8ffb5c5d5cbbed3fde69c9641f05b9e3eb3beab87c375f68fd SHA512 3f86c76718a3c2a65ee11b15434035396c2355a8562bdb642432a659b52c3e811e930318e0dc2df3ff06bd53ac14d0694471e425420ae3b7971f5d4f818bba87 diff --git a/dev-ruby/crack/crack-0.4.4.ebuild b/dev-ruby/crack/crack-0.4.4.ebuild new file mode 100644 index 000000000000..ed7b46961a5e --- /dev/null +++ b/dev-ruby/crack/crack-0.4.4.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_EXTRADOC="README.md History" + +RUBY_FAKEGEM_GEMSPEC="crack.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Really simple JSON and XML parsing, ripped from Merb and Rails" +HOMEPAGE="https://github.com/jnunemaker/crack" +SRC_URI="https://github.com/jnunemaker/crack/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~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 )" + +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 +} |