From 86beec0762769b719eb74bd76a68daa8ad9da01d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 2 Sep 2012 01:06:45 -0700 Subject: mathgl: fix SHA1, test and X11 dependency. --- Library/Formula/mathgl.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/mathgl.rb b/Library/Formula/mathgl.rb index 25633952c..809b1bda9 100644 --- a/Library/Formula/mathgl.rb +++ b/Library/Formula/mathgl.rb @@ -6,7 +6,7 @@ class Mathgl < Formula sha1 '16b9ab58e654c5b91374f8a35eafc33630d7f5c0' depends_on 'gsl' - depends_on :x11 + depends_on :libpng def install ENV['LIBS'] = '-lz' @@ -20,4 +20,10 @@ class Mathgl < Formula system "make" system "make install" end + + def test + mktemp do + system "#{bin}/mgl_example" + end + end end -- cgit v1.2.3