aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/ruby-pygments/APKBUILD6
-rw-r--r--community/ruby-pygments/fix-rakefile.patch12
2 files changed, 16 insertions, 2 deletions
diff --git a/community/ruby-pygments/APKBUILD b/community/ruby-pygments/APKBUILD
index 09381020b3..d482d1b955 100644
--- a/community/ruby-pygments/APKBUILD
+++ b/community/ruby-pygments/APKBUILD
@@ -12,7 +12,8 @@ depends="python2 py2-pygments ruby ruby-json ruby-multi_json"
checkdepends="ruby-test-unit"
makedepends="ruby-bundler ruby-rake"
source="$pkgname-$pkgver.tar.gz::https://github.com/tmm1/$_gemname/archive/v$pkgver.tar.gz
- use-system-pygments-only.patch"
+ use-system-pygments-only.patch
+ fix-rakefile.patch"
builddir="$srcdir/$_gemname-$pkgver"
prepare() {
@@ -52,4 +53,5 @@ package() {
}
sha512sums="370cd762cfcd14884f14bdf7e9c891507da155eb37eb0004ce31c9ea1030110d8e32642cf1a2c1eb254629a27f7f38f9a2a6c41133f13655024d2741bff6c5f4 ruby-pygments-1.2.1.tar.gz
-a8e5d64d8209dacb5090378e8507095359b38ef55ac6896f5bd95fa9676691beb278d6d19eb47cbc51fac843b326b8e21fbf1dd9ed39e123ed0943293b0a82ca use-system-pygments-only.patch"
+a8e5d64d8209dacb5090378e8507095359b38ef55ac6896f5bd95fa9676691beb278d6d19eb47cbc51fac843b326b8e21fbf1dd9ed39e123ed0943293b0a82ca use-system-pygments-only.patch
+18174eb21397dca7213d55c1d0af5eebba25c974aa60ff7142aa045f591b23099cc4e221be87bca1c96ea61f97a45fb9714166ea858ab36b6cc04643bf88577e fix-rakefile.patch"
diff --git a/community/ruby-pygments/fix-rakefile.patch b/community/ruby-pygments/fix-rakefile.patch
new file mode 100644
index 0000000000..ca28885516
--- /dev/null
+++ b/community/ruby-pygments/fix-rakefile.patch
@@ -0,0 +1,12 @@
+Ruby 2.5+ doesn't support option -rubygems anymore.
+
+--- a/Rakefile
++++ b/Rakefile
+@@ -18,7 +18,6 @@
+ require 'rake/testtask'
+ Rake::TestTask.new 'test' do |t|
+ t.test_files = FileList['test/test_*.rb']
+- t.ruby_opts = ['-rubygems']
+ end
+
+ # ==========================================================