From 019c984740debdc2da495134ce643573c869ee65 Mon Sep 17 00:00:00 2001 From: Peter Kristensen Date: Mon, 17 Sep 2012 15:32:42 +0200 Subject: [PATCH] Updates mathgl to version 2 --- Library/Formula/mathgl.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Library/Formula/mathgl.rb b/Library/Formula/mathgl.rb index 809b1bda9bea..ce48b9ffe25f 100644 --- a/Library/Formula/mathgl.rb +++ b/Library/Formula/mathgl.rb @@ -2,9 +2,10 @@ class Mathgl < Formula homepage 'http://mathgl.sourceforge.net/' - url 'http://downloads.sourceforge.net/mathgl/mathgl-1.11.2.tar.gz' - sha1 '16b9ab58e654c5b91374f8a35eafc33630d7f5c0' + url 'http://downloads.sourceforge.net/mathgl/mathgl-2.0.3.tar.gz' + sha1 'c032cf53de3f6d3d5e45f6ff9e26889617770f02' + depends_on 'cmake' => :build depends_on 'gsl' depends_on :libpng @@ -12,12 +13,12 @@ def install ENV['LIBS'] = '-lz' # Fixed upstream: this line can be removed when v2 is released - inreplace ["mgl/mgl_export.cpp", "mgl/mgl_data_png.cpp"] do |s| - s.gsub! /#include /, "#include \n#include " - end +# inreplace ["mgl/mgl_export.cpp", "mgl/mgl_data_png.cpp"] do |s| +# s.gsub! /#include /, "#include \n#include " +# end - system "./configure", "--prefix=#{prefix}" - system "make" + #system "./configure", "--prefix=#{prefix}" + system "cmake", ".", *std_cmake_args system "make install" end