xtensor 0.12.0

Install xtl, a separate header-only library xtensor now depends on.

Closes #18900.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-10-02 16:32:59 -07:00
parent 9c1b63d062
commit b4f0e95ee2

View file

@ -1,8 +1,8 @@
class Xtensor < Formula
desc "Multi-dimensional arrays with broadcasting and lazy computing"
homepage "http://quantstack.net/xtensor"
url "https://github.com/QuantStack/xtensor/archive/0.11.3.tar.gz"
sha256 "22900f7e331967db75e474382994d8b89139065a321581ade3cb26fbbc2b3c9d"
url "https://github.com/QuantStack/xtensor/archive/0.12.0.tar.gz"
sha256 "96b2f234a31d0e7d2660dc7f68bdbeaf168ae23147934a290dc98ad15320d8e8"
bottle do
cellar :any_skip_relocation
@ -14,8 +14,18 @@ class Xtensor < Formula
needs :cxx14
depends_on "cmake" => :build
resource "xtl" do
url "https://github.com/QuantStack/xtl/archive/0.2.8.tar.gz"
sha256 "05e9def47023215d4f595c24ba412df665b1f1856937d80f2cade770cb9a0b44"
end
def install
system "cmake", ".", *std_cmake_args
resource("xtl").stage do
system "cmake", ".", *std_cmake_args
system "make", "install"
end
system "cmake", ".", "-Dxtl_DIR=#{lib}/cmake/xtl", *std_cmake_args
system "make", "install"
end