diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-03-16 07:41:23 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-03-16 07:41:46 +0100 |
commit | 775a06100000b90f9aaef9e158dc1da007fea0e5 (patch) | |
tree | 5057cd9bd9ba4d671c0954c41ffe90ced3908da4 /dev-ruby | |
parent | dev-ruby/crass: add ruby31; EAPI 8 (diff) | |
download | gentoo-775a06100000b90f9aaef9e158dc1da007fea0e5.tar.gz gentoo-775a06100000b90f9aaef9e158dc1da007fea0e5.tar.bz2 gentoo-775a06100000b90f9aaef9e158dc1da007fea0e5.zip |
dev-ruby/loofah: add 2.15.0
Package-Manager: Portage-3.0.30, Repoman-3.0.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.15.0.ebuild | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/loofah/Manifest b/dev-ruby/loofah/Manifest index c5b1368d5350..ab110b25d1eb 100644 --- a/dev-ruby/loofah/Manifest +++ b/dev-ruby/loofah/Manifest @@ -1,2 +1,3 @@ DIST loofah-2.12.0.tar.gz 68919 BLAKE2B 3d4c95fc4b80948eae6e03fa2b24fe53ef0bde4e6a4d18d518c2f8f92abc570f3efbce3f421d75813b308e84c4576b433dc5279fb3f32606022b6cebcb00bc7e SHA512 f52a1ef20cd6364715a1421e356e1aec430e0ffc24776672b5ed8c9445ead5336d06bc35ddb4af03b57a30d95ca126596c1f3fd3f744791d691a349be6275e6d DIST loofah-2.14.0.tar.gz 69572 BLAKE2B 2b2609e8db6a7fc37fafcc11b376a57a237b246416b5e92302e4a054db2dc61bb5281febe3c8845a3df9804b4ebe8c74a4ca7d856a9356eeeb6ac41697a218a5 SHA512 b9911a210033b040317ff5db55c52eb0d2ddfe3d9bf31f4ad115827aef4ac0d58d0cbc58056c7fe9055a607a926cf28886006ffbf14f6275a8125072e7d57d4f +DIST loofah-2.15.0.tar.gz 69736 BLAKE2B f5d8eb0113768b0f173aab45142056967293a1174835433b4b9a555e5039ce50e0ca29e9dbc501dcd7ab331f907e7cbbc3f08f239313f07a26d8926ef386c2cf SHA512 58536545a5c8a9d191d815634be966d0efa6cd8030d1f81c34e46ca3be4a002244eb5680f4c69ba36daa0095fc7c3548d00d57db29b2ce3cf252ef826f22d5f7 diff --git a/dev-ruby/loofah/loofah-2.15.0.ebuild b/dev-ruby/loofah/loofah-2.15.0.ebuild new file mode 100644 index 000000000000..b6b5f7557b56 --- /dev/null +++ b/dev-ruby/loofah/loofah-2.15.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 +} |