2012-01-05 21:57:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class TaLib < Formula
|
|
|
|
homepage 'http://ta-lib.org/index.html'
|
2013-06-20 23:08:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/ta-lib/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'b326b91e79ca1e569e95aad91e87a38640dd5f1b'
|
2012-01-05 21:57:40 +00:00
|
|
|
|
2013-04-11 15:48:51 +00:00
|
|
|
option :universal
|
|
|
|
|
2012-01-05 21:57:40 +00:00
|
|
|
def install
|
2013-04-11 15:48:51 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-01-05 21:57:40 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
2012-02-10 05:49:13 +00:00
|
|
|
bin.install 'src/tools/ta_regtest/.libs/ta_regtest'
|
2012-01-05 21:57:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-01-07 20:50:18 +00:00
|
|
|
system "#{bin}/ta_regtest"
|
2012-01-05 21:57:40 +00:00
|
|
|
end
|
|
|
|
end
|