Merge pull request #207020 from Homebrew/bump-qpdf-11.10.0
[Homebrew/homebrew-core.git] / Formula / t / ta-lib.rb
blobfc8a8caff4130699841fc04f3ec6b9c5f3109abe
1 class TaLib < Formula
2   desc "Tools for market analysis"
3   homepage "https://ta-lib.org/"
4   url "https://github.com/ta-lib/ta-lib/releases/download/v0.6.4/ta-lib-0.6.4-src.tar.gz"
5   sha256 "aa04066d17d69c73b1baaef0883414d3d56ab3775872d82916d1cdb376a3ae86"
6   license "BSD-3-Clause"
8   bottle do
9     sha256 cellar: :any,                 arm64_sequoia: "0ef739e4436909635fc3bacd8df2362d37a9467f11631111463dd387776b6b13"
10     sha256 cellar: :any,                 arm64_sonoma:  "8d7deb75b383ebc50513ebd077c4268acdb09d602b19ed4c8878f915f8f8b1e4"
11     sha256 cellar: :any,                 arm64_ventura: "12709c4df99f1dce0315b653a1bdb962f3cc6c429bda41a13d17f4dd43079644"
12     sha256 cellar: :any,                 sonoma:        "c34c5da2df4abefcb86d3f130a7e8fe0b85fad2c83e2343d9e65e4a615c6b235"
13     sha256 cellar: :any,                 ventura:       "151e74186d18550800b5e7e714c50e99e25b1e4f536fc83521e45e4ce389fc0e"
14     sha256 cellar: :any_skip_relocation, x86_64_linux:  "868d1163296be1e3d5f10bcdf4047f0e218eb91617da562eac14fd04cd05433d"
15   end
17   on_macos do
18     depends_on "autoconf" => :build
19     depends_on "automake" => :build
20     depends_on "libtool" => :build
21   end
23   def install
24     ENV.deparallelize
25     # Call autoreconf on macOS to fix -flat_namespace usage
26     system "autoreconf", "--force", "--install", "--verbose" if OS.mac?
27     system "./configure", *std_configure_args
28     system "make", "install"
29     bin.install "src/tools/ta_regtest/.libs/ta_regtest"
30   end
32   test do
33     system bin/"ta_regtest"
34   end
35 end