diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-06-03 10:42:05 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-06-03 10:49:31 +0200 |
commit | a740cb3fc30207b09a7160e0696bb4cfcc235702 (patch) | |
tree | 6c2fcdb3d4e7febbb9f085954009a45c534e5546 /dev-ruby | |
parent | dev-ruby/rails-html-sanitizer: update HOMEPAGE (diff) | |
download | gentoo-a740cb3fc30207b09a7160e0696bb4cfcc235702.tar.gz gentoo-a740cb3fc30207b09a7160e0696bb4cfcc235702.tar.bz2 gentoo-a740cb3fc30207b09a7160e0696bb4cfcc235702.zip |
dev-ruby/loofah: add 2.21.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/loofah/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/loofah/loofah-2.21.3.ebuild | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/loofah/Manifest b/dev-ruby/loofah/Manifest index 3ac14657cd4d..a673b5ce6c5b 100644 --- a/dev-ruby/loofah/Manifest +++ b/dev-ruby/loofah/Manifest @@ -2,3 +2,4 @@ DIST loofah-2.19.1.tar.gz 81858 BLAKE2B e4383f9b867d9cbd04e8c8ea3cb23d89c5651369 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 +DIST loofah-2.21.3.tar.gz 84775 BLAKE2B 89286feb0c1345d0ba5ff61f8dad4461a43afa3624cdf33787e3371f32154bc4814914f9725b48d70f5ce89f654cbbb656ff319b2aeadbbb74f9f60db386c5eb SHA512 7462bd703135bbf67dca6864169013a787cb9c16c3dc41e17ac70f8d182b9b1d2e763f719b9a52c02a6609d65f9497fe6e4b92481e95175060978009cb0aa362 diff --git a/dev-ruby/loofah/loofah-2.21.3.ebuild b/dev-ruby/loofah/loofah-2.21.3.ebuild new file mode 100644 index 000000000000..ddcdca4c72d0 --- /dev/null +++ b/dev-ruby/loofah/loofah-2.21.3.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 +} |