summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-05-12 07:24:49 +0200
committerHans de Graaff <graaff@gentoo.org>2023-05-12 07:25:51 +0200
commit8261564e9b96d70e56ea37770c616769081a8215 (patch)
tree60103323871bcd79812885de4cfecb78c3c28299 /dev-ruby
parentdev-ruby/loofah: add 2.21.1 (diff)
downloadgentoo-8261564e9b96d70e56ea37770c616769081a8215.tar.gz
gentoo-8261564e9b96d70e56ea37770c616769081a8215.tar.bz2
gentoo-8261564e9b96d70e56ea37770c616769081a8215.zip
dev-ruby/loofah: add 2.21.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/loofah/Manifest1
-rw-r--r--dev-ruby/loofah/loofah-2.21.2.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/loofah/Manifest b/dev-ruby/loofah/Manifest
index b39be1a0e7fb..3ac14657cd4d 100644
--- a/dev-ruby/loofah/Manifest
+++ b/dev-ruby/loofah/Manifest
@@ -1,3 +1,4 @@
DIST loofah-2.19.1.tar.gz 81858 BLAKE2B e4383f9b867d9cbd04e8c8ea3cb23d89c56513690fd93eda31cb2e36659dc8ad0d8035f97d8a505cd9beb248db6f3bd3dd775b87a1995e8e6f553fbcb20970c9 SHA512 0bca5523824842bfc8b92b349bd21c0c8f8a1fb70a035e199e86920f21cd732adf58c7fd385212cad5bddf08c56b0141a692218feae2369c510c278fd824cb03
DIST loofah-2.20.0.tar.gz 81976 BLAKE2B 8d5394ced04889afdc95472b1fbf0a67e3ef5bd0290370e144466053c58bad461eba5ed36d8435bfc8ea082b3df415a4743a576d1c8cff9eac13b55ec7222e20 SHA512 597c1d332cf48c1631b2179cad08f51a4a358aae4dcbb1132c027093e9357b23c8c5392960ef2bf3ccdff7697eaace260feaa8c9e2948a644c672998b2480dc3
DIST loofah-2.21.1.tar.gz 84611 BLAKE2B 3c75080e1a3e1dda65cf72cdf181a20d21aabf81202413f30d31e9d8dde9cf8d937f3a40ec4adf0c072e04b6fd76dac859019d6f3b9df1455ded04cda3a52664 SHA512 699e506e3be38041ba70cc1ae0dbecdae4da766861375854c67152df33c3ae8a5e0fed2ece5cde538fb389461cc0fd52cf9730965411c95f267c2a63420405e7
+DIST loofah-2.21.2.tar.gz 84729 BLAKE2B f98211bca35a923d583cae7024b09221f846e1eaaff4e96cea1e647937abe3bb4d019f3259e4332761aedbf64dd5a46e244dd1124442d9eb05842b1e5b15fd42 SHA512 c634811218609a4833ac343b8ea97b5de56d1de0b8ac65afe036e59ec0cd8562c99a39518fb16bb0e99936adc3d24d3d2c1cb4e80abc8926757a68541d24bf75
diff --git a/dev-ruby/loofah/loofah-2.21.2.ebuild b/dev-ruby/loofah/loofah-2.21.2.ebuild
new file mode 100644
index 000000000000..ddcdca4c72d0
--- /dev/null
+++ b/dev-ruby/loofah/loofah-2.21.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby30 ruby31 ruby32"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="loofah.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Library for manipulating and transforming HTML/XML documents and fragments."
+HOMEPAGE="https://github.com/flavorjones/loofah"
+SRC_URI="https://github.com/flavorjones/loofah/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux"
+IUSE=""
+
+ruby_add_rdepend "=dev-ruby/crass-1.0* >=dev-ruby/crass-1.0.2 >=dev-ruby/nokogiri-1.12.0"
+
+ruby_add_bdepend "test? ( >=dev-ruby/rr-1.1.0 )"
+
+all_ruby_prepare() {
+ # Fix version in gemspec
+ sed -i -e '/s\.version/ s/".*"/"'${PV}'"/' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Avoid unneeded development dependencies
+ sed -i -e '/concourse/I s:^:#:' Rakefile || die
+
+ # Avoid test failing on different whitespace.
+ sed -i -e '/test_fragment_whitewash_on_microsofty_markup/askip "gentoo"' test/integration/test_ad_hoc.rb || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die
+}