summaryrefslogtreecommitdiff
path: root/dev-ruby/crack
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/crack')
-rw-r--r--dev-ruby/crack/Manifest1
-rw-r--r--dev-ruby/crack/crack-0.4.4-r3.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/crack/Manifest b/dev-ruby/crack/Manifest
index 19b52fc5b5e3..50e4ac89764f 100644
--- a/dev-ruby/crack/Manifest
+++ b/dev-ruby/crack/Manifest
@@ -2,5 +2,6 @@ AUX crack-0.4.4-psych4.patch 1053 BLAKE2B 280da92d42ad5c4138b7f4293cbd9efafb0033
DIST crack-0.4.4.tar.gz 586633 BLAKE2B 26e2cda6e9447fb3c9fe02092a6e9d6a8097c7bca6a483a3af42aa8ba491b737bc0dc3ae1936ef8ffb5c5d5cbbed3fde69c9641f05b9e3eb3beab87c375f68fd SHA512 3f86c76718a3c2a65ee11b15434035396c2355a8562bdb642432a659b52c3e811e930318e0dc2df3ff06bd53ac14d0694471e425420ae3b7971f5d4f818bba87
EBUILD crack-0.4.4-r1.ebuild 1249 BLAKE2B b57c7a0e4a8d6c540d959f5a0ca86fec9e8295fe1cdfb494a82e1f63df3348027ca3677076e7b7d3cd4e82afd9e66f062cc4e950cda1a81be61ace746d8a6ae7 SHA512 d29fc1362fb146cbebdf87e24ead8cc581a8a14b21ef5cc033aea50f4326323dfb1ee6bb493aeb3eda0cbb2d1e7b621fdcba94001938f5177f15a182ab9d2453
EBUILD crack-0.4.4-r2.ebuild 1278 BLAKE2B 86ac1450d72aead82dbaeac8e12b8e666d19bf280db1e7a01f1e2a6f30db146191b0c03b3e65b16179253c5bdd2c8f117fb35d336d1cb5c99e2d08b60b8b344c SHA512 9eb75d02a75cfd67f4628c5059ee571e90755f17ee5922e6c3e455d5ca0cfbee8c79604365e231042faa38749ab4c10e2149ee83d45a69d8e2c27660da5b0840
+EBUILD crack-0.4.4-r3.ebuild 1461 BLAKE2B 538ffa8a9a47048e773aee8d150195fcc25854996991fbf94a815e4a44ab6c7f7a224121ffc9544a27c7bc18fbfa2f1f984a3519208b14a59bdc9b6d5fcf784c SHA512 3017c3280440f7a60a6105b5b6c6e2a7cc264c335a43ba504c72f9f1542b55936fba34203fcd81c9a4d996ac0c3dd6a1669e44fb9cd6e30550268234944e9aa4
EBUILD crack-0.4.4.ebuild 1107 BLAKE2B f6d10256b74eb122f990f3e458836edafd5099ea60173b606437743dffe46cf7156a674f172de403aafb509a41b681d05306afe5fd36a9a8fbcf4bcb65f2439c SHA512 ee73b8ef85924d2a1c0cd210f2b6ce9ff3f8c773220fa561982b29a6accf4b2e22535dc2f6905c206a1b4b554326dafd974b8a0ca8323ae49b70cba3bd6a8245
MISC metadata.xml 343 BLAKE2B e98d01493c40195b22fa423e30e512b5f4b5ef08676138f4c5c3b7d18aae166fdc5fbb11ea465370de681fc85ded672dabefe34546f2b3140379984a187399f0 SHA512 44de19ae2a745da9ef90d7300e56efc80f892f0a7173ea6967c1bd079a24d0b50fa5de6eb1565254d7db84b5875679c9e70d2f3a87a60c31c9aa33f7bb4d6616
diff --git a/dev-ruby/crack/crack-0.4.4-r3.ebuild b/dev-ruby/crack/crack-0.4.4-r3.ebuild
new file mode 100644
index 000000000000..7f44edcffee6
--- /dev/null
+++ b/dev-ruby/crack/crack-0.4.4-r3.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby27 ruby30 ruby31"
+
+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 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+PATCHES=( "${FILESDIR}/${P}-psych4.patch" )
+
+ruby_add_rdepend "dev-ruby/rexml"
+
+ruby_add_bdepend "test? ( dev-ruby/minitest )"
+
+all_ruby_prepare() {
+ sed -i -e 's/git ls-files --/find/' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Also list rexml in the gemspec. This is fixed upstream in 0.4.5 but that version is not tagged.
+ sed -i -e '17igem.add_runtime_dependency("rexml")' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+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
+}