diff --git a/Formula/xtensor.rb b/Formula/xtensor.rb index 7bdcb8ba5b..88e9bda9db 100644 --- a/Formula/xtensor.rb +++ b/Formula/xtensor.rb @@ -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