From 8b4ace9c50842c5b83401ea7b179dcab940387e1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 23 Sep 2020 10:22:15 +0100 Subject: gentoo resync : 23.09.2020 --- dev-ruby/crack/Manifest | 2 ++ dev-ruby/crack/crack-0.4.4.ebuild | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 dev-ruby/crack/crack-0.4.4.ebuild (limited to 'dev-ruby/crack') diff --git a/dev-ruby/crack/Manifest b/dev-ruby/crack/Manifest index 7e79bf8aa31f..2ff81a01fcfc 100644 --- a/dev-ruby/crack/Manifest +++ b/dev-ruby/crack/Manifest @@ -1,3 +1,5 @@ DIST crack-0.4.3.gem 574976 BLAKE2B 4b6f23277ec17a516d06e6e6785889996172b3ec077f022d1a52ab4b8e938b2735abbaecc71288b55654ff09a428c33eb944b627cfdc827ea1f4ddc6289461d9 SHA512 c6577bd86fe2e36b2a37693729da9fc35c5d4deb860ac1873265ccb6fb38056fd76d8c17bb4f779b39f4bc13b9db37c1768433f518c17090ccbb0872a103b386 +DIST crack-0.4.4.tar.gz 586633 BLAKE2B 26e2cda6e9447fb3c9fe02092a6e9d6a8097c7bca6a483a3af42aa8ba491b737bc0dc3ae1936ef8ffb5c5d5cbbed3fde69c9641f05b9e3eb3beab87c375f68fd SHA512 3f86c76718a3c2a65ee11b15434035396c2355a8562bdb642432a659b52c3e811e930318e0dc2df3ff06bd53ac14d0694471e425420ae3b7971f5d4f818bba87 EBUILD crack-0.4.3-r2.ebuild 1061 BLAKE2B e5aec6b5b4029a85473b0123fd4d6d53e5ba4baf933ce9e3ac7226f29b2b4e875721edeb49dce642006e05209c64203111138fdbec21c3feeaef73ad5befe339 SHA512 faa1f612a706a9d83c8506f5f2667f079c19e2a22c980835004fac333322ff06077d67aa494bbc63acb0d57c8944a0dac21694f3e54c5f94ef20ed6ae6206c34 +EBUILD crack-0.4.4.ebuild 1097 BLAKE2B fc66cbb21c73c7601bc0b06f51395732ff4bd4972c4205538616612385f168361c9378b06bc05d17b6301caf4bd46f21bb68c45499ae87475661e86c62f1cffc SHA512 b6cd60463585a193f165f977439f241fe99f007ec2239c48467a999940213112f4e4e324db6311536f56f4412368f11f0b68cafa324ceb61b0e01f71d0a00fb1 MISC metadata.xml 342 BLAKE2B bf1bf4fa826a68ba0c2344619bd3a18ea9f3944f41ee9edda5b0cdebb46d8790a39dd6ef738f996a3c15672a1fe7242c55132eefaf719f21725d9b4372eb4f07 SHA512 2f890aec4b5c1bf8a31bd079d8e0b8e17242e262b7ba2619e5f791da25e2e7510a52086b4103ed257726d0a47e999dd22d0b3c60f8dc77c515f5fc61b122f2a8 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 +} -- cgit v1.2.3