Files
atom/tools/gyp-formula.rb
Corey Johnson 49d270d4ec Taking the the gyp formula out of the formula directory
I'm a shallow directory fan, when we have more than one formula I'd be done with adding it back.
2012-10-12 09:25:51 -07:00

22 lines
601 B
Ruby

# Adapted from https://github.com/mxcl/homebrew/pull/11776/files
require 'formula'
class GypFormula < Formula
homepage 'http://code.google.com/p/gyp/'
url 'http://gyp.googlecode.com/svn/trunk', :revision => 1518
version 'trunk-1518'
head 'http://gyp.googlecode.com/svn/trunk'
def install
system "python", "setup.py", "install",
"--prefix=#{prefix}", "--install-purelib=#{libexec}",
"--install-platlib=#{libexec}", "--install-scripts=#{bin}"
mv bin + 'gyp', bin + 'gyp.py'
mv Dir[bin + '*'], libexec
bin.install_symlink "#{libexec}/gyp.py" => "gyp"
end
end