homebrew-core/Formula/ta-lib.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

28 lines
869 B
Ruby

class TaLib < Formula
desc "Tools for market analysis"
homepage "http://ta-lib.org/index.html"
url "https://downloads.sourceforge.net/project/ta-lib/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz"
sha256 "9ff41efcb1c011a4b4b6dfc91610b06e39b1d7973ed5d4dee55029a0ac4dc651"
bottle do
cellar :any
revision 1
sha1 "54316570c4a461b76b542cd23d862af2142e9157" => :yosemite
sha1 "8c930f8da95a9ebc47eacfe5dee8738701f31878" => :mavericks
sha1 "8d880bc6c5688afada7c144710827765b1c1a3d4" => :mountain_lion
end
option :universal
def install
ENV.universal_binary if build.universal?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
bin.install "src/tools/ta_regtest/.libs/ta_regtest"
end
test do
system "#{bin}/ta_regtest"
end
end