1 |
commit: 65b139f4f5393ea19b637caceb0578e70a7b3e0b |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 12 16:26:42 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 12 16:26:56 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65b139f4 |
7 |
|
8 |
Revert "dev-ruby/loofah: cleanup" |
9 |
|
10 |
This reverts commit abeea1055596cfa1f1a4da74e80b8a40e3e10c7a. |
11 |
|
12 |
This cleanup removed the last keyworded ebuild of dev-ruby/loofah for arm |
13 |
which is is still required for arm-keyworded dev-ruby/rails-html-sanitizer. |
14 |
|
15 |
Cleanup has to be postponed until [Bug 631974] is resolved. |
16 |
|
17 |
Bug: https://bugs.gentoo.org/631974 |
18 |
|
19 |
dev-ruby/loofah/Manifest | 1 + |
20 |
dev-ruby/loofah/loofah-2.0.3.ebuild | 30 ++++++++++++++++++++++++++++++ |
21 |
2 files changed, 31 insertions(+) |
22 |
|
23 |
diff --git a/dev-ruby/loofah/Manifest b/dev-ruby/loofah/Manifest |
24 |
index 8cdcf2e3234..79c0ec958a2 100644 |
25 |
--- a/dev-ruby/loofah/Manifest |
26 |
+++ b/dev-ruby/loofah/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
+DIST loofah-2.0.3.gem 60416 BLAKE2B 04e37464ac9e2b61fcc838763b6360fe80a8aeec26cc365803e6121bb4a628f17e79bc2426d0b351935dffc18829ab9d37239786fb3192c328f5a8026365cc41 SHA512 1f08bcfa09bf075b4d84707099cce6bdaa986cd6c79f63fc60c8bee4812c5a31cee1021cd314fc2033842d7b01ffe63f5f6acbf271a0db2ee631cd326520d700 |
29 |
DIST loofah-2.1.1.gem 61440 BLAKE2B adefeb040e0ad6302de3cfdd169cf33c22eb409be519f2acd610d210254295a935a8fc1223200003c27275756c8a3c604fb3c5589e3abc7c5207b457dcc6c349 SHA512 16499113ba3b435ba2cd3a583ed958db7f02604a56d87125341d5c143602ed9755272598faef9995be57f2b408c4696675f69cf5fb15d472c958e16f46c35d58 |
30 |
|
31 |
diff --git a/dev-ruby/loofah/loofah-2.0.3.ebuild b/dev-ruby/loofah/loofah-2.0.3.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..1aeea870ac7 |
34 |
--- /dev/null |
35 |
+++ b/dev-ruby/loofah/loofah-2.0.3.ebuild |
36 |
@@ -0,0 +1,30 @@ |
37 |
+# Copyright 1999-2017 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=5 |
41 |
+USE_RUBY="ruby21 ruby22 ruby23 ruby24" |
42 |
+ |
43 |
+RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
44 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.rdoc" |
45 |
+ |
46 |
+inherit ruby-fakegem |
47 |
+ |
48 |
+DESCRIPTION="Library for manipulating and transforming HTML/XML documents and fragments." |
49 |
+HOMEPAGE="https://github.com/flavorjones/loofah" |
50 |
+ |
51 |
+LICENSE="MIT" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux" |
54 |
+IUSE="" |
55 |
+ |
56 |
+ruby_add_rdepend ">=dev-ruby/nokogiri-1.5.9" |
57 |
+ |
58 |
+ruby_add_bdepend "test? ( >=dev-ruby/rr-1.1.0 >=dev-ruby/hoe-2.3.0 )" |
59 |
+ |
60 |
+all_ruby_prepare() { |
61 |
+ # Avoid test failing on different whitespace. |
62 |
+ sed -i -e '/test_fragment_whitewash_on_microsofty_markup/askip "gentoo"' test/integration/test_ad_hoc.rb || die |
63 |
+ |
64 |
+ # Fix test for new libxml2 results (fixed upstream) |
65 |
+ sed -i -e '348i "xhtml": "<<script>alert(\\\"XSS\\\");//<</script>",' test/assets/testdata_sanitizer_tests1.dat || die |
66 |
+} |