jruby-slick 1.1.4a → 1.1.4b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/jruby-slick/tasks/jruby-slick.rake +4 -3
- metadata +1 -1
@@ -32,22 +32,23 @@ task :setup_natives do
|
|
32
32
|
puts "Determined you are on Linux"
|
33
33
|
end
|
34
34
|
|
35
|
+
version = '2.9.0'
|
35
36
|
puts "Downloading LWJGL"
|
36
37
|
open("lwjgl.zip", "wb") do |f|
|
37
|
-
f.print open("http://downloads.sourceforge.net/project/java-game-lib/Official%20Releases/LWJGL%202.
|
38
|
+
f.print open("http://downloads.sourceforge.net/project/java-game-lib/Official%20Releases/LWJGL%202.9.0/lwjgl-2.9.0.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fjava-game-lib%2Ffiles%2FOfficial%2520Releases%2FLWJGL%25202.9.0%2F&ts=1366913882&use_mirror=superb-dca3").read
|
38
39
|
end
|
39
40
|
|
40
41
|
puts "Finished downloading LWJGL"
|
41
42
|
|
42
43
|
Zip::ZipFile.open("lwjgl.zip") do |natives|
|
43
44
|
natives.each do |entry|
|
44
|
-
if entry.file? && /^lwjgl
|
45
|
+
if entry.file? && /^lwjgl-#{version}\/native\/#{platform[0]}/ =~ entry.name
|
45
46
|
target = "bin/#{entry.name.split('/')[-1]}"
|
46
47
|
unless File.exists? target
|
47
48
|
entry.extract target
|
48
49
|
puts "wrote file: #{target}"
|
49
50
|
end
|
50
|
-
elsif entry.file? && entry.name == "lwjgl
|
51
|
+
elsif entry.file? && entry.name == "lwjgl-#{version}/jar/lwjgl.jar" || entry.name == "lwjgl-#{version}/jar/jinput.jar"
|
51
52
|
target = "vendor/slick/#{entry.name.split('/')[-1]}"
|
52
53
|
unless File.exists? target
|
53
54
|
entry.extract target
|