aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/grass.rb
diff options
context:
space:
mode:
authorJack Nagel2014-03-17 13:34:28 -0500
committerJack Nagel2014-03-17 13:41:43 -0500
commitb642ee97d54eea0de21dea9a7fd6fca7bcaaad26 (patch)
tree800b0615511ff7d97dec92b96d8350d14f7756ec /Library/Formula/grass.rb
parent20452d2c1863cd60f749afea8d3129487e283303 (diff)
downloadhomebrew-b642ee97d54eea0de21dea9a7fd6fca7bcaaad26.tar.bz2
grass: use checksummed patches
Diffstat (limited to 'Library/Formula/grass.rb')
-rw-r--r--Library/Formula/grass.rb29
1 files changed, 17 insertions, 12 deletions
diff --git a/Library/Formula/grass.rb b/Library/Formula/grass.rb
index 14b9058c0..aceb272c9 100644
--- a/Library/Formula/grass.rb
+++ b/Library/Formula/grass.rb
@@ -2,9 +2,23 @@ require 'formula'
class Grass < Formula
homepage 'http://grass.osgeo.org/'
- head 'https://svn.osgeo.org/grass/grass/trunk'
- url 'http://grass.osgeo.org/grass64/source/grass-6.4.3.tar.gz'
- sha1 '925da985f3291c41c7a0411eaee596763f7ff26e'
+
+ stable do
+ url "http://grass.osgeo.org/grass64/source/grass-6.4.3.tar.gz"
+ sha1 "925da985f3291c41c7a0411eaee596763f7ff26e"
+
+ # Patches that files are not installed outside of the prefix.
+ patch :DATA
+ end
+
+ head do
+ url "https://svn.osgeo.org/grass/grass/trunk"
+
+ patch do
+ url "https://gist.github.com/jctull/0fe3db92a3e7c19fa6e0/raw/42e819f0a9b144de782c94f730dbc4da136e9227/grassPatchHead.diff"
+ sha1 "ffbe31682d8a7605d5548cdafd536f1c785d3a23"
+ end
+ end
option "without-gui", "Build without WxPython interface. Command line tools still available."
@@ -23,15 +37,6 @@ class Grass < Formula
depends_on "cairo"
depends_on :x11 # needs to find at least X11/include/GL/gl.h
- # Patches that files are not installed outside of the prefix.
- def patches;
- if build.head?
- "https://gist.github.com/jctull/0fe3db92a3e7c19fa6e0/raw/42e819f0a9b144de782c94f730dbc4da136e9227/grassPatchHead.diff"
- else
- DATA
- end
- end
-
fails_with :clang do
cause "Multiple build failures while compiling GRASS tools."
end