1 |
commit: b4c29082d37039ce961587ed8b38768001eca873 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 12 10:46:13 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 12 10:55:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4c29082 |
7 |
|
8 |
dev-ruby/rails-html-sanitizer: add ruby27 |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
.../rails-html-sanitizer-1.3.0-r1.ebuild | 31 ++++++++++++++++++++++ |
14 |
1 file changed, 31 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.3.0-r1.ebuild b/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.3.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..ef458c52dcc |
19 |
--- /dev/null |
20 |
+++ b/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.3.0-r1.ebuild |
21 |
@@ -0,0 +1,31 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+USE_RUBY="ruby24 ruby25 ruby26 ruby27" |
27 |
+ |
28 |
+RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
29 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" |
30 |
+ |
31 |
+inherit ruby-fakegem |
32 |
+ |
33 |
+DESCRIPTION="Sanitize HTML fragments in Rails applications" |
34 |
+HOMEPAGE="https://github.com/rafaelfranca/rails-html-sanitizer" |
35 |
+ |
36 |
+LICENSE="MIT" |
37 |
+SLOT="1" |
38 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86 ~amd64-linux" |
39 |
+IUSE="" |
40 |
+ |
41 |
+ruby_add_rdepend ">=dev-ruby/loofah-2.3:0" |
42 |
+ |
43 |
+ruby_add_bdepend "test? ( dev-ruby/rails-dom-testing )" |
44 |
+ |
45 |
+all_ruby_prepare() { |
46 |
+ # Avoid tests that depend on nokogiri patches to libxml2. |
47 |
+ sed -i -e '/\(name_action\|attr\)_in_a_tag_in_safe_list_sanitizer/askip "libxml2"' test/sanitizer_test.rb || die |
48 |
+} |
49 |
+ |
50 |
+each_ruby_test() { |
51 |
+ ${RUBY} -Ilib:test:. -e 'Dir["test/*_test.rb"].each{|f| require f}' || die |
52 |
+} |