From 835e93dddd3bc363ba106236ccc995b3ce3bdf4c Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Sat, 4 Feb 2012 10:54:46 -0800 Subject: Grace: Fix formula Could have sworn I amended the original commit with these changes. --- Library/Formula/grace.rb | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/grace.rb b/Library/Formula/grace.rb index 2eeea0c4d..9843f9aed 100644 --- a/Library/Formula/grace.rb +++ b/Library/Formula/grace.rb @@ -5,24 +5,18 @@ class Grace < Formula homepage 'http://plasma-gate.weizmann.ac.il/Grace/' md5 '672356466f18fe59ed21a8fb44f9851d' - depends_on 'libpng' depends_on 'pdflib-lite' depends_on 'jpeg' depends_on 'fftw' + depends_on 'lesstif' def install - if File.exists?("/usr/OpenMotif") - ENV.append 'CFLAGS', "-I/usr/OpenMotif/include" - ENV.append 'LDFLAGS',"-L/usr/OpenMotif/lib" - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", "--with-zlib", - "--x-includes=/usr/X11/include", - "--x-libraries=/usr/X11/lib", - "--with-extra-ldpath=/usr/OpenMotif/lib", - "--enable-grace-home=#{prefix}" - system "make install" - else - ohnoe "Please install openmotif from http://www.ist-inc.com/downloads/motif_download.html" - end + ENV.x11 + + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", "--with-zlib", + "--enable-grace-home=#{prefix}" + + system "make install" end end -- cgit v1.2.3