diff options
Diffstat (limited to 'dev-ruby/loofah')
-rw-r--r-- | dev-ruby/loofah/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/loofah/loofah-2.14.0.ebuild | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/loofah/Manifest b/dev-ruby/loofah/Manifest index 40925ac26ad9..e98b95132b18 100644 --- a/dev-ruby/loofah/Manifest +++ b/dev-ruby/loofah/Manifest @@ -1,3 +1,4 @@ DIST loofah-2.10.0.tar.gz 70379 BLAKE2B 1de980e181bfb0c6fc8c98713b01aaedbd5d7bc7cffb30a0b8f477ee0e475c255a8e14d9b54254d318b569ca4327e78a6b42c73f765c7bafd8a265f083cc4449 SHA512 c51e3981b4f4f2d93a1e8817c86df57c50818b0a0589e260fb4208b34c69f08b270ea399999e3354c4c15b670bbd3eaba6b3274e4f4d67a8c97fc99b28bc8ef2 DIST loofah-2.11.0.tar.gz 68865 BLAKE2B ebd89f1aaa098f93ad578cbe1c028cd8805ea9f367a562382fc4cacd3d08640c539877c86de6b02d3ae2d7e451247b709664836708ca84609b0b6403085d3703 SHA512 9c1ea70894b4cc22080d219abc0282d4ea2d9f9214c857a93bccf3a99ebbe3fb011ef90b100916891cb16def52dac7db189ad9d88015e2efa7b5bf8d533b9ac3 DIST loofah-2.12.0.tar.gz 68919 BLAKE2B 3d4c95fc4b80948eae6e03fa2b24fe53ef0bde4e6a4d18d518c2f8f92abc570f3efbce3f421d75813b308e84c4576b433dc5279fb3f32606022b6cebcb00bc7e SHA512 f52a1ef20cd6364715a1421e356e1aec430e0ffc24776672b5ed8c9445ead5336d06bc35ddb4af03b57a30d95ca126596c1f3fd3f744791d691a349be6275e6d +DIST loofah-2.14.0.tar.gz 69572 BLAKE2B 2b2609e8db6a7fc37fafcc11b376a57a237b246416b5e92302e4a054db2dc61bb5281febe3c8845a3df9804b4ebe8c74a4ca7d856a9356eeeb6ac41697a218a5 SHA512 b9911a210033b040317ff5db55c52eb0d2ddfe3d9bf31f4ad115827aef4ac0d58d0cbc58056c7fe9055a607a926cf28886006ffbf14f6275a8125072e7d57d4f diff --git a/dev-ruby/loofah/loofah-2.14.0.ebuild b/dev-ruby/loofah/loofah-2.14.0.ebuild new file mode 100644 index 000000000000..b6b5f7557b56 --- /dev/null +++ b/dev-ruby/loofah/loofah-2.14.0.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="ruby26 ruby27 ruby30" + +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 +} |