Fixes compilation on Lion.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Gabriele Carrettoni 2011-07-21 08:18:33 -07:00 committed by Adam Vandenberg
parent bed1d63941
commit 41272de10e

View file

@ -3,13 +3,13 @@ require 'hardware'
class Go < Formula
if ARGV.include? "--use-git"
url 'https://github.com/tav/go.git', :tag => 'release.r57.2'
url 'https://github.com/tav/go.git', :tag => 'release.r58.1'
head 'https://github.com/tav/go.git'
else
url 'http://go.googlecode.com/hg/', :revision => 'release.r57.2'
url 'http://go.googlecode.com/hg/', :revision => 'release.r58.1'
head 'http://go.googlecode.com/hg/'
end
version 'r57.2'
version 'r58.1'
homepage 'http://golang.org'
skip_clean 'bin'
@ -18,12 +18,6 @@ class Go < Formula
[["--use-git", "Use git mirror instead of official hg repository"]]
end
def patches
# Fix an egrep error; already present upstream.
# Remove when r58 is tagged.
DATA unless ARGV.build_head?
end
def install
ENV.j1 # Building in parallel fails
prefix.install %w[src include test doc misc lib favicon.ico AUTHORS]