From 21084b2a23bde474a42890d75819faa6cb786c3c Mon Sep 17 00:00:00 2001 From: Ric Pruss Date: Fri, 6 Jan 2012 07:57:40 +1000 Subject: Added ta-lib.rb a formula for the TA-Lib : Technical Analysis Library. Closes #9446. Signed-off-by: Mike McQuaid --- Library/Formula/ta-lib.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Library/Formula/ta-lib.rb (limited to 'Library/Formula') diff --git a/Library/Formula/ta-lib.rb b/Library/Formula/ta-lib.rb new file mode 100644 index 000000000..9b81d249a --- /dev/null +++ b/Library/Formula/ta-lib.rb @@ -0,0 +1,22 @@ +require 'formula' + +class TaLib < Formula + url 'http://sourceforge.net/projects/ta-lib/files/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz' + homepage 'http://ta-lib.org/index.html' + md5 '308e53b9644213fc29262f36b9d3d9b9' + + def install + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make install" + end + + def test + # This test will fail and we won't accept that! It's enough to just + # replace "false" with the main program this formula installs, but + # it'd be nice if you were more thorough. Test the test with + # `brew test ta-lib`. Remove this comment before submitting + # your pull request! + system "#{bin}/ta-lib" + end +end -- cgit v1.2.3