summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-11-26 06:12:30 +0100
committerHans de Graaff <graaff@gentoo.org>2020-11-26 06:12:30 +0100
commitb4899d6c36b70f6324bfc7c989c827079ab5c630 (patch)
tree770ce8fa0f21379030f0aa9321a8abec46b47059 /dev-ruby/loofah
parentdev-ruby/loofah: cleanup (diff)
downloadgentoo-b4899d6c36b70f6324bfc7c989c827079ab5c630.tar.gz
gentoo-b4899d6c36b70f6324bfc7c989c827079ab5c630.tar.bz2
gentoo-b4899d6c36b70f6324bfc7c989c827079ab5c630.zip
dev-ruby/loofah: add 2.8.0
Package-Manager: Portage-3.0.9, Repoman-3.0.2 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.8.0.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/loofah/Manifest b/dev-ruby/loofah/Manifest
index af86e0b4622f..920b270370e2 100644
--- a/dev-ruby/loofah/Manifest
+++ b/dev-ruby/loofah/Manifest
@@ -1,2 +1,3 @@
DIST loofah-2.6.0.tar.gz 68970 BLAKE2B 507e907e9c744734594dbb0aefdfb76f57f57ccb9fde6c52b15b56289d6cbeb8c1a7bc0fff0259d22204c45f55b06a360cb56e8c8731736a0d70ef079e006cbb SHA512 6c3948844b5f66f14a86049fa0527967a120df9a51661bab88449f0a60093493b5b948901b7227995747d253d915ca0176f708b126000036ca3396b794cd49db
DIST loofah-2.7.0.tar.gz 69272 BLAKE2B 1578cba4b4b12fb35a1095060af8d764ec55d3745a44cf756f1de5bf43bc0bde37276372e7aa53a3a26c2c83a8c3da417140d3addb102cc0429f7d47b8c01806 SHA512 698f7976e6048615643d8875aa4dc09c4bd261234bdc9908589edc08be9073a83f84f04fff7e32b518712d63cefe2611895543733967a8b8de12e6cecdb902c9
+DIST loofah-2.8.0.tar.gz 68844 BLAKE2B 52b5b5c7a70939069d84d0f66c4262e456d2ed81ab4ef2541eceb9068ccdddbb1c7b470ca7504700f6f66d4aa4507b9edfd4720c1302f6026008c10100c1fecb SHA512 a9d7c21be733e1aab8353ab7bfb3db14d47e8da2c3f20eba11d0041b782e4f2cb82865bbd5a2a9321aae7ea04089f6a5fd1bd3119cbfe8a00c2ea71a40cae53b
diff --git a/dev-ruby/loofah/loofah-2.8.0.ebuild b/dev-ruby/loofah/loofah-2.8.0.ebuild
new file mode 100644
index 000000000000..000b13cda4d8
--- /dev/null
+++ b/dev-ruby/loofah/loofah-2.8.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27"
+
+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 ~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
+}