2011-02-18 02:07:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-21 20:03:38 +00:00
|
|
|
class Qhull < Formula
|
2011-02-18 02:07:39 +00:00
|
|
|
url 'http://www.qhull.org/download/qhull-2010.1-src.tgz'
|
|
|
|
homepage 'http://www.qhull.org/'
|
|
|
|
md5 'e64138470acdeb18f752a0bc2a11ceb4'
|
|
|
|
|
|
|
|
def install
|
|
|
|
cd "./src"
|
2011-03-21 20:03:38 +00:00
|
|
|
ENV['MANDIR'] = man
|
|
|
|
ENV['BINDIR'] = bin
|
2011-02-18 02:07:39 +00:00
|
|
|
system "make -e -f Makefile"
|
2011-03-21 20:03:38 +00:00
|
|
|
man.mkpath
|
|
|
|
bin.mkpath
|
2011-02-18 02:07:39 +00:00
|
|
|
system "make -e -f Makefile install"
|
|
|
|
(include+'qhull').install Dir['*.h']
|
|
|
|
lib.install 'libqhull.a'
|
|
|
|
end
|
|
|
|
end
|