Commit f49ce14f authored by Jakub Jirutka's avatar Jakub Jirutka 🇺🇦
Browse files

community/ruby-nokogiri: fix tests and enable check

parent 824bb08c
......@@ -12,9 +12,10 @@ depends="ruby ruby-mini_portile2"
makedepends="ruby-dev libxml2-dev libxslt-dev"
checkdepends="ruby-minitest"
source="https://rubygems.org/downloads/$_gemname-$pkgver.gem
fix-extconf.patch"
fix-extconf.patch
skip-tests-broken-on-musl.patch
"
builddir="$srcdir/$_gemname-$pkgver"
options="!check" # FIXME: some tests fails due to encoding issues
unpack() {
default_unpack
......@@ -80,4 +81,5 @@ package() {
}
sha512sums="4825cc19667393c41a0c5a662474556991da3955fb17e67a363f979da8fadf0680eb4f89a7c87b71f6deba9db64e67bd463d5562d58604ea71a168abb8215eed nokogiri-1.8.3.gem
514cc33109357457dfd7739991f3d270fe62a26313a5dfed0f539e89e4ed8de7dd08744540c7becc93ad12e6d096f2c4b4c3fb15f47b827a65352b895ab62a89 fix-extconf.patch"
514cc33109357457dfd7739991f3d270fe62a26313a5dfed0f539e89e4ed8de7dd08744540c7becc93ad12e6d096f2c4b4c3fb15f47b827a65352b895ab62a89 fix-extconf.patch
5f92d4cf87751c404a33dfbdc035dd5b54163eccdc46b4f515e6d6367a9573cf3fc4ef3c12c5b9e099b20f6c563d5a573acb1c2716890e492bfb26aa91f2cb5d skip-tests-broken-on-musl.patch"
--- a/test/html/test_document_encoding.rb
+++ b/test/html/test_document_encoding.rb
@@ -19,6 +19,7 @@
end
def test_encoding_without_charset
+ skip 'Not supported on musl'
doc = Nokogiri::HTML File.open(SHIFT_JIS_NO_CHARSET, 'r:cp932:cp932').read
hello = "こんにちは"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment