Skip to content

Instantly share code, notes, and snippets.

@jonforums
Created September 2, 2010 18:29
Show Gist options
  • Save jonforums/562679 to your computer and use it in GitHub Desktop.
Save jonforums/562679 to your computer and use it in GitHub Desktop.
RubyInstaller build overrides
# custom build config overrides
if ENV['OVERRIDE'] then
puts '[INFO] Overriding official build settings...'
TDM_EDGE = {
:url => :url_1,
'gcc-4.5.0-tdm-1-core.tar.lzma' => 'gcc-4.5.1-tdm-1-core.tar.lzma',
'gcc-4.5.0-tdm-1-c++.tar.lzma' => 'gcc-4.5.1-tdm-1-c++.tar.lzma'
}
MINGW_EDGE = {
:url => :url_2,
'w32api-3.14-mingw32-dev.tar.gz' => 'w32api-3.15-1-mingw32-dev.tar.lzma',
'autoconf2.5-2.64-1-mingw32-bin.tar.lzma' => 'autoconf2.5-2.67-1-mingw32-bin.tar.lzma',
'autoconf-7-1-mingw32-bin.tar.lzma' => 'autoconf-9-1-mingw32-bin.tar.lzma',
'gdb-7.1-2-mingw32-bin.tar.gz' => 'gdb-7.2-1-mingw32-bin.tar.lzma'
}
MSYS_EDGE = [
'texinfo-4.13a-2-msys-1.0.13-bin.tar.lzma',
'libmagic-5.04-1-msys-1.0.13-dll-1.tar.lzma',
'file-5.04-1-msys-1.0.13-bin.tar.lzma'
]
DevKitInstaller::DevKit.setup_scripts << 'devkitvars.ps1'
DevKitInstaller::MSYS.files[:url_1].concat(MSYS_EDGE)
DevKitInstaller::MinGWs.each do |mingw|
if mingw.version == '4.5.0'
[TDM_EDGE, MINGW_EDGE].each do |edge|
orig_files = mingw.files[edge[:url]]
edge.each_pair do |k,v|
unless k == :url
orig_files << v if orig_files.delete(k)
end
end
#puts orig_files; puts
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment