File 0002-Dont-download-jruby.patch of Package logstash5

From a44d6a8bddb1370b8d230dd0e5072ae6e73043ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Mon, 30 Jan 2017 21:14:50 +0100
Subject: [PATCH 2/8] Dont download jruby

---
 rakelib/vendor.rake | 28 +---------------------------
 1 file changed, 1 insertion(+), 27 deletions(-)

diff --git a/rakelib/vendor.rake b/rakelib/vendor.rake
index 33c61e9f31d8..02693f3a7e7b 100644
--- a/rakelib/vendor.rake
+++ b/rakelib/vendor.rake
@@ -61,33 +61,7 @@ namespace "vendor" do
   end # def untar
 
   task "jruby" do |task, args|
-    name = task.name.split(":")[1]
-    info = VERSIONS[name]
-    version = info["version"]
-
-    discard_patterns = Regexp.union([
-      /^samples/,
-      /@LongLink/,
-      /lib\/ruby\/1.8/,
-      /lib\/ruby\/2.0/,
-      /lib\/ruby\/shared\/rdoc/,
-    ])
-
-    url = "http://jruby.org.s3.amazonaws.com/downloads/#{version}/jruby-bin-#{version}.tar.gz"
-    download = file_fetch(url, info["sha1"])
-
-    parent = vendor(name).gsub(/\/$/, "")
-    directory parent => "vendor" do
-      next if parent =~ discard_patterns
-      FileUtils.mkdir(parent)
-    end.invoke unless Rake::Task.task_defined?(parent)
-
-    prefix_re = /^#{Regexp.quote("jruby-#{version}/")}/
-    untar(download) do |entry|
-      out = entry.full_name.gsub(prefix_re, "")
-      next if out =~ discard_patterns
-      vendor(name, out)
-    end # untar
+    # do nothing
   end # jruby
 
   task "all" => "jruby"
-- 
2.26.0

openSUSE Build Service is sponsored by