diff options
| author | Ric Pruss | 2012-01-06 07:57:40 +1000 |
|---|---|---|
| committer | Mike McQuaid | 2012-01-05 22:32:19 +0000 |
| commit | 21084b2a23bde474a42890d75819faa6cb786c3c (patch) | |
| tree | 63caf6d1b9d509788e397f7e1cb2beb6d1996e6d /Library/Formula | |
| parent | 5ef24b60ff1cd10048e9437138346b3aeb73e910 (diff) | |
| download | homebrew-21084b2a23bde474a42890d75819faa6cb786c3c.tar.bz2 | |
Added ta-lib.rb a formula for the TA-Lib : Technical Analysis Library.
Closes #9446.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ta-lib.rb | 22 |
1 files changed, 22 insertions, 0 deletions
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 |
