aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2019-04-22 17:33:42 +0200
committerJakub Jirutka <jakub@jirutka.cz>2019-04-22 17:47:34 +0200
commit37c9b7d1e404cdf83edf86598754ef19d3d96657 (patch)
tree1ffd1a493412a6fc4d628a5bcd49c3faa96fc8be
parent6a1598378ca47365cc4354c25ba4f243775a1de9 (diff)
downloadaports-37c9b7d1e404cdf83edf86598754ef19d3d96657.tar.gz
aports-37c9b7d1e404cdf83edf86598754ef19d3d96657.tar.bz2
aports-37c9b7d1e404cdf83edf86598754ef19d3d96657.tar.xz
community/ruby-nokogiri: upgrade to 1.10.2
-rw-r--r--community/ruby-nokogiri/APKBUILD24
-rw-r--r--community/ruby-nokogiri/remove-simplecov.patch11
2 files changed, 20 insertions, 15 deletions
diff --git a/community/ruby-nokogiri/APKBUILD b/community/ruby-nokogiri/APKBUILD
index 88e465ae2e..6ba2bda796 100644
--- a/community/ruby-nokogiri/APKBUILD
+++ b/community/ruby-nokogiri/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ruby-nokogiri
_gemname=${pkgname#ruby-}
-pkgver=1.8.5
+pkgver=1.10.2
pkgrel=0
pkgdesc="An HTML, XML, SAX, and Reader parser"
url="http://nokogiri.org/"
@@ -10,19 +10,13 @@ arch="all"
license="MIT"
depends="ruby ruby-mini_portile2"
makedepends="ruby-dev libxml2-dev libxslt-dev"
-checkdepends="ruby-minitest"
-source="https://rubygems.org/downloads/$_gemname-$pkgver.gem
+checkdepends="ruby-minitest ruby-test-unit"
+source="https://github.com/sparklemotion/$_gemname/archive/v$pkgver/$_gemname-$pkgver.tar.gz
+ remove-simplecov.patch
skip-tests-broken-on-musl.patch
"
builddir="$srcdir/$_gemname-$pkgver"
-unpack() {
- default_unpack
-
- cd "$srcdir"
- gem unpack $_gemname-$pkgver.gem
-}
-
prepare() {
default_prepare
@@ -55,11 +49,11 @@ build() {
}
check() {
- cd "$builddir"/dist/gems/$_gemname-$pkgver
+ cd "$builddir"
# Note: This is copied from Fedora package.
export LANG=ja_JP.UTF-8
- ruby -I.:lib:test:ext \
+ ruby -I.:test:dist/gems/$_gemname-$pkgver/lib:dist/gems/$_gemname-$pkgver/ext \
-e 'require "test/helper"' \
-e 'Dir.glob("test/**/test_*.rb") {|f| require f }'
}
@@ -75,9 +69,9 @@ package() {
cd "$gemdir"/gems/$_gemname-$pkgver
# Remove unnecessary files and rubbish...
- rm -r ext/ patches/ suppressions/ tasks/ test/ \
- build_all test_all Rakefile .[a-z]* *.md *.rdoc *.txt *.yml || true
+ rm -rf ext/ patches/ *.md *.yml
}
-sha512sums="4f74bc70a778a7b0655b47d25c437c496941c44b0c83cdcd4f721453b17d35a3a145831b250a8d8077f6a78a0659d5f2f685f472f0b29a8f078bcbd3ab3ba817 nokogiri-1.8.5.gem
+sha512sums="5e5dcd0a4deaa477d3b3905c9353cf7c49ac5ef221df0425842bc441aed158d4a1d3597091cd89f9f62ace580bf030ca560801692f87f3f21b4b26edeed89a51 nokogiri-1.10.2.tar.gz
+b3346647e55ded3c20775458f35f85c81222a7147c8e4040db0e09f1161e999d824570e29f4fc5bd34b9808ea047b9d2308ea32718b46143cceb777ffa2e63a6 remove-simplecov.patch
5f92d4cf87751c404a33dfbdc035dd5b54163eccdc46b4f515e6d6367a9573cf3fc4ef3c12c5b9e099b20f6c563d5a573acb1c2716890e492bfb26aa91f2cb5d skip-tests-broken-on-musl.patch"
diff --git a/community/ruby-nokogiri/remove-simplecov.patch b/community/ruby-nokogiri/remove-simplecov.patch
new file mode 100644
index 0000000000..14dea51496
--- /dev/null
+++ b/community/ruby-nokogiri/remove-simplecov.patch
@@ -0,0 +1,11 @@
+--- a/test/helper.rb
++++ b/test/helper.rb
+@@ -1,8 +1,3 @@
+-require 'simplecov'
+-SimpleCov.start do
+- add_filter "/test/"
+-end
+-
+ $VERBOSE = true
+ require 'minitest/autorun'
+ require 'minitest/pride'