forked from ender672/rubyinstaller
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify fork of the new rubyinstaller repository to build shoes
- Loading branch information
Showing
17 changed files
with
728 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
require 'rake' | ||
require 'rake/clean' | ||
|
||
namespace(:dependencies) do | ||
namespace(:glib) do | ||
package = RubyInstaller::Glib | ||
directory package.target | ||
CLEAN.include(package.target) | ||
|
||
# Put files for the :download task | ||
package.files.each do |f| | ||
file_source = "#{package.url}/#{f}" | ||
file_target = "downloads/#{f}" | ||
download file_target => file_source | ||
|
||
# depend on downloads directory | ||
file file_target => "downloads" | ||
|
||
# download task need these files as pre-requisites | ||
task :download => file_target | ||
end | ||
|
||
# Prepare the :sandbox, it requires the :download task | ||
task :extract => [:extract_utils, :download, package.target] do | ||
# grab the files from the download task | ||
files = Rake::Task['dependencies:glib:download'].prerequisites | ||
|
||
files.each { |f| | ||
extract(File.join(RubyInstaller::ROOT, f), package.target) | ||
} | ||
end | ||
end | ||
end | ||
|
||
task :download => ['dependencies:glib:download'] | ||
task :extract => ['dependencies:glib:extract'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
require 'rake' | ||
require 'rake/clean' | ||
|
||
namespace(:dependencies) do | ||
namespace(:libjpeg) do | ||
package = RubyInstaller::LibJpeg | ||
directory package.target | ||
CLEAN.include(package.target) | ||
|
||
# Put files for the :download task | ||
package.files.each do |f| | ||
file_source = "#{package.url}/#{f}" | ||
file_target = "downloads/#{f}" | ||
download file_target => file_source | ||
|
||
# depend on downloads directory | ||
file file_target => "downloads" | ||
|
||
# download task need these files as pre-requisites | ||
task :download => file_target | ||
end | ||
|
||
# Prepare the :sandbox, it requires the :download task | ||
task :extract => [:extract_utils, :download, package.target] do | ||
# grab the files from the download task | ||
files = Rake::Task['dependencies:libjpeg:download'].prerequisites | ||
|
||
files.each { |f| | ||
extract(File.join(RubyInstaller::ROOT, f), package.target) | ||
} | ||
end | ||
end | ||
end | ||
|
||
task :download => ['dependencies:libjpeg:download'] | ||
task :extract => ['dependencies:libjpeg:extract'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
require 'rake' | ||
require 'rake/clean' | ||
|
||
namespace(:dependencies) do | ||
namespace(:libpng) do | ||
package = RubyInstaller::LibPng | ||
directory package.target | ||
CLEAN.include(package.target) | ||
|
||
# Put files for the :download task | ||
package.files.each do |f| | ||
file_source = "#{package.url}/#{f}" | ||
file_target = "downloads/#{f}" | ||
download file_target => file_source | ||
|
||
# depend on downloads directory | ||
file file_target => "downloads" | ||
|
||
# download task need these files as pre-requisites | ||
task :download => file_target | ||
end | ||
|
||
# Prepare the :sandbox, it requires the :download task | ||
task :extract => [:extract_utils, :download, package.target] do | ||
# grab the files from the download task | ||
files = Rake::Task['dependencies:libpng:download'].prerequisites | ||
|
||
files.each { |f| | ||
extract(File.join(RubyInstaller::ROOT, f), package.target) | ||
} | ||
end | ||
end | ||
end | ||
|
||
task :download => ['dependencies:libpng:download'] | ||
task :extract => ['dependencies:libpng:extract'] |
Oops, something went wrong.