summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-12-13 19:33:02 +0100
committerHans de Graaff <graaff@gentoo.org>2022-12-13 19:36:55 +0100
commitb6c7c8d8d2b9595e000bba80d088b056b6cae864 (patch)
tree6518f178e7c5b0de2c2409d4b17e36d60f105e99 /dev-ruby/loofah
parentdev-ruby/loofah: cleanup (diff)
downloadgentoo-b6c7c8d8d2b9595e000bba80d088b056b6cae864.tar.gz
gentoo-b6c7c8d8d2b9595e000bba80d088b056b6cae864.tar.bz2
gentoo-b6c7c8d8d2b9595e000bba80d088b056b6cae864.zip
dev-ruby/loofah: add 2.19.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/loofah')
-rw-r--r--dev-ruby/loofah/Manifest1
-rw-r--r--dev-ruby/loofah/loofah-2.19.1.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/loofah/Manifest b/dev-ruby/loofah/Manifest
index 3d086226642e..9680a6c9da8a 100644
--- a/dev-ruby/loofah/Manifest
+++ b/dev-ruby/loofah/Manifest
@@ -1,3 +1,4 @@
DIST loofah-2.15.0.tar.gz 69736 BLAKE2B f5d8eb0113768b0f173aab45142056967293a1174835433b4b9a555e5039ce50e0ca29e9dbc501dcd7ab331f907e7cbbc3f08f239313f07a26d8926ef386c2cf SHA512 58536545a5c8a9d191d815634be966d0efa6cd8030d1f81c34e46ca3be4a002244eb5680f4c69ba36daa0095fc7c3548d00d57db29b2ce3cf252ef826f22d5f7
DIST loofah-2.18.0.tar.gz 70441 BLAKE2B 9164ccd663d217841474ceca065ff3e267b7d50851e840284f773de6bfb7835d2d9d2a4508ea174001076d7c3bccf8e5454f746dee3ed428e486f354a281def8 SHA512 beb637ad8f43c036e428a42bc0f3d693bc0b5685e41c12ebb88072974b2c7408c2a5f8a3cffb68b019f1c7e5140b388b53fd7c86f35e57e2efdc037088828017
DIST loofah-2.19.0.tar.gz 71508 BLAKE2B 11f582b1f544cf1dbfde7556befeb70f5efdb32f503766c822b9144ca566f363c6bbe03d29d974d9b188c572c3f295767708fa7d120ab6db8ca099563014a055 SHA512 e034ceacd95989f78ef32d850bdd35ddee2fd51b1790644c8b4924b073e6237512244e9381596812d34656d6ea4b9a02b8d929c0c5b9d8f83e2a9c2758f6ac81
+DIST loofah-2.19.1.tar.gz 81858 BLAKE2B e4383f9b867d9cbd04e8c8ea3cb23d89c56513690fd93eda31cb2e36659dc8ad0d8035f97d8a505cd9beb248db6f3bd3dd775b87a1995e8e6f553fbcb20970c9 SHA512 0bca5523824842bfc8b92b349bd21c0c8f8a1fb70a035e199e86920f21cd732adf58c7fd385212cad5bddf08c56b0141a692218feae2369c510c278fd824cb03
diff --git a/dev-ruby/loofah/loofah-2.19.1.ebuild b/dev-ruby/loofah/loofah-2.19.1.ebuild
new file mode 100644
index 000000000000..16fcec1713d7
--- /dev/null
+++ b/dev-ruby/loofah/loofah-2.19.1.ebuild
@@ -0,0 +1,39 @@
+# 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="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
+}