2012-02-26 02:54:46 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Oscats < Formula
|
|
|
|
homepage 'http://code.google.com/p/oscats/'
|
2014-03-05 07:22:08 +00:00
|
|
|
url 'https://oscats.googlecode.com/files/oscats-0.6.tar.gz'
|
2012-02-26 02:54:46 +00:00
|
|
|
sha1 'f57fa06ee0d842ed4c547dd7ab599fd5090d7550'
|
|
|
|
|
2013-02-10 06:28:15 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python => :optional
|
2012-02-26 02:54:46 +00:00
|
|
|
depends_on 'gsl'
|
|
|
|
depends_on 'glib'
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on 'pygobject' if build.with? 'python'
|
2012-02-26 02:54:46 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
|
2013-01-21 09:33:56 +00:00
|
|
|
args << "--enable-python-bindings" if build.with? 'python'
|
2012-02-26 02:54:46 +00:00
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|