diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-05-11 07:50:50 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-05-12 07:25:50 +0200 |
commit | 0db10b66f641020b387b12fcd7eef7c55a895b5b (patch) | |
tree | 55c8e5a7bb6135475f432b7ad97683064749741c /dev-ruby/loofah | |
parent | dev-util/lv2lint: Keyword 0.16.2 ppc64, #906173 (diff) | |
download | gentoo-0db10b66f641020b387b12fcd7eef7c55a895b5b.tar.gz gentoo-0db10b66f641020b387b12fcd7eef7c55a895b5b.tar.bz2 gentoo-0db10b66f641020b387b12fcd7eef7c55a895b5b.zip |
dev-ruby/loofah: add 2.21.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/loofah')
-rw-r--r-- | dev-ruby/loofah/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/loofah/loofah-2.21.1.ebuild | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/loofah/Manifest b/dev-ruby/loofah/Manifest index ce4ac5e8fbb4..b39be1a0e7fb 100644 --- a/dev-ruby/loofah/Manifest +++ b/dev-ruby/loofah/Manifest @@ -1,2 +1,3 @@ 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 diff --git a/dev-ruby/loofah/loofah-2.21.1.ebuild b/dev-ruby/loofah/loofah-2.21.1.ebuild new file mode 100644 index 000000000000..d523526b29b5 --- /dev/null +++ b/dev-ruby/loofah/loofah-2.21.1.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.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 +} |