aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/qhull.rb
diff options
context:
space:
mode:
authorCamillo Lugaresi2011-02-18 03:07:39 +0100
committerAdam Vandenberg2011-03-12 13:30:29 -0800
commitaad3964b5c35c5987d0acf0c397144272c751746 (patch)
tree4d261e3061ed16dc1e19211976a46fcb1b6340a0 /Library/Formula/qhull.rb
parent3b347f26e7bc63689ca196c88538be1723d8f8b0 (diff)
downloadhomebrew-aad3964b5c35c5987d0acf0c397144272c751746.tar.bz2
new formula: qhull
Qhull is a mathematical library used by Octave. This formula installs all components into the correct locations, including the libraries and headers, so that Octave can use it. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/qhull.rb')
-rw-r--r--Library/Formula/qhull.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/qhull.rb b/Library/Formula/qhull.rb
new file mode 100644
index 000000000..ac63d7ec5
--- /dev/null
+++ b/Library/Formula/qhull.rb
@@ -0,0 +1,19 @@
+require 'formula'
+
+class Qhull <Formula
+ url 'http://www.qhull.org/download/qhull-2010.1-src.tgz'
+ homepage 'http://www.qhull.org/'
+ md5 'e64138470acdeb18f752a0bc2a11ceb4'
+
+ def install
+ cd "./src"
+ ENV['MANDIR']=man
+ ENV['BINDIR']=bin
+ system "make -e -f Makefile"
+ mkdir_p man
+ mkdir_p bin
+ system "make -e -f Makefile install"
+ (include+'qhull').install Dir['*.h']
+ lib.install 'libqhull.a'
+ end
+end