1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 USE_RUBY="ruby24 ruby25 ruby26"
7 RUBY_FAKEGEM_RECIPE_DOC="rdoc"
8 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
12 DESCRIPTION="Sanitize HTML fragments in Rails applications"
13 HOMEPAGE="https://github.com/rafaelfranca/rails-html-sanitizer"
17 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux"
20 ruby_add_rdepend ">=dev-ruby/loofah-2.3:0"
22 ruby_add_bdepend "test? ( dev-ruby/rails-dom-testing )"
25 # Avoid tests that depend on nokogiri patches to libxml2.
26 sed -i -e '/\(name_action\|attr\)_in_a_tag_in_safe_list_sanitizer/askip "libxml2"' test/sanitizer_test.rb || die
30 ${RUBY} -Ilib:test:. -e 'Dir["test/*_test.rb"].each{|f| require f}' || die