Skip to content

Instantly share code, notes, and snippets.

@luislavena
Created February 7, 2009 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luislavena/60037 to your computer and use it in GitHub Desktop.
Save luislavena/60037 to your computer and use it in GitHub Desktop.
New RubyInstaller Recipe syntax
#
# GCC Recipe
#
# Download Windows GNU GCC to be used as compiler
OneClick::Package.new('gcc', '3.4.5') do
download 'http://downloads.sourceforge.net/mingw/mingwrt-3.15.2-mingw32-dll.tar.gz'
download 'http://downloads.sourceforge.net/mingw/mingwrt-3.15.2-mingw32-dev.tar.gz'
download 'http://downloads.sourceforge.net/mingw/w32api-3.13-mingw32-dev.tar.gz'
download 'http://downloads.sourceforge.net/mingw/binutils-2.19.1-mingw32-bin.tar.gz'
download 'http://downloads.sourceforge.net/mingw/gcc-core-3.4.5-20060117-3.tar.gz'
download 'http://downloads.sourceforge.net/mingw/gcc-g++-3.4.5-20060117-3.tar.gz'
depends_on 'bootstrap'
# FIXME: Just a placeholder to see if package got installed right.
after :extract do |pkg|
sh File.join(pkg.source_dir, 'bin', 'gcc.exe'), '--version'
end
end
# gcc3 uses the version defined above
task 'gcc3' => ['gcc:3.4.5']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment