summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/loofah')
-rw-r--r--dev-ruby/loofah/Manifest1
-rw-r--r--dev-ruby/loofah/loofah-2.20.0.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/loofah/Manifest b/dev-ruby/loofah/Manifest
index 271dac38bb9d..ce4ac5e8fbb4 100644
--- a/dev-ruby/loofah/Manifest
+++ b/dev-ruby/loofah/Manifest
@@ -1 +1,2 @@
DIST loofah-2.19.1.tar.gz 81858 BLAKE2B e4383f9b867d9cbd04e8c8ea3cb23d89c56513690fd93eda31cb2e36659dc8ad0d8035f97d8a505cd9beb248db6f3bd3dd775b87a1995e8e6f553fbcb20970c9 SHA512 0bca5523824842bfc8b92b349bd21c0c8f8a1fb70a035e199e86920f21cd732adf58c7fd385212cad5bddf08c56b0141a692218feae2369c510c278fd824cb03
+DIST loofah-2.20.0.tar.gz 81976 BLAKE2B 8d5394ced04889afdc95472b1fbf0a67e3ef5bd0290370e144466053c58bad461eba5ed36d8435bfc8ea082b3df415a4743a576d1c8cff9eac13b55ec7222e20 SHA512 597c1d332cf48c1631b2179cad08f51a4a358aae4dcbb1132c027093e9357b23c8c5392960ef2bf3ccdff7697eaace260feaa8c9e2948a644c672998b2480dc3
diff --git a/dev-ruby/loofah/loofah-2.20.0.ebuild b/dev-ruby/loofah/loofah-2.20.0.ebuild
new file mode 100644
index 000000000000..d411c004176c
--- /dev/null
+++ b/dev-ruby/loofah/loofah-2.20.0.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="ruby27 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.5.9"
+
+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
+}