diff --git a/Formula/g/graph-tool.rb b/Formula/g/graph-tool.rb index 82c05a65a3e98..30a9508c6bcc1 100644 --- a/Formula/g/graph-tool.rb +++ b/Formula/g/graph-tool.rb @@ -3,8 +3,8 @@ class GraphTool < Formula desc "Efficient network analysis for Python 3" homepage "https://graph-tool.skewed.de/" - url "https://downloads.skewed.de/graph-tool/graph-tool-2.79.tar.bz2" - sha256 "52a254942e75ed3070dea70e692ae101877bbef1009e43ec62fe1806a8de0154" + url "https://downloads.skewed.de/graph-tool/graph-tool-2.80.tar.bz2" + sha256 "c1a70e075dbe728fad25dc3f5a9a9597880a6d6ff68435b91d21f0b44ef8dbe6" license "LGPL-3.0-or-later" livecheck do @@ -13,26 +13,25 @@ class GraphTool < Formula end bottle do - rebuild 1 - sha256 arm64_sequoia: "4b9ebfea60e076eccd963da33a8d3f1fc77cf92a126c38ac53cd6d6195fcf1bc" - sha256 arm64_sonoma: "c1cc89698b066ba392faac276c3594a9f912ec0aa33e4ee57672b7cbb9ec3ba8" - sha256 arm64_ventura: "ac50c767078808217e6cd8ec58d090585851a7dc048db970853fabbe9443cd66" - sha256 sonoma: "7cd95c5ca3ad75b3765409764892577579f277b58619b6fa94df2b7d9755e248" - sha256 ventura: "ad558633c9fc556d3e979a9b89148b689afdcb40ff069bd115093afb58442e60" - sha256 cellar: :any_skip_relocation, x86_64_linux: "9dd968dfe02c6d0f124652348ec33f4e42f3a7f1f4cd622751b4a4bcda28974b" + sha256 arm64_sequoia: "f8312ee277316d2541abce5195a4f7afb50121a48108a63d5befd47888160175" + sha256 arm64_sonoma: "afe92a1713d4b26d830d8d37dd6d34f519c03ce98f38ff2612a9512c6897a09f" + sha256 arm64_ventura: "a1d72270290cc4545f1c324dcf36e9f82a93d327a06c6c03986288962e752006" + sha256 sonoma: "8af3886cfcb8afa48dad5c12f786284713e56007903a30aa44811db493cd09c7" + sha256 ventura: "0245644ae50faaa755440145fa7ed164db9629cd882614bb52834264c8e7573d" + sha256 cellar: :any_skip_relocation, x86_64_linux: "95965b45ede426cc12f96b0d8713a98f334ac36bd92919ff26352c77d50272d8" end + depends_on "google-sparsehash" => :build depends_on "ninja" => :build depends_on "pkgconf" => :build + depends_on "boost" depends_on "boost-python3" depends_on "cairomm@1.14" depends_on "cgal" depends_on "freetype" depends_on "gmp" - depends_on "google-sparsehash" depends_on "gtk+3" - depends_on macos: :mojave # for C++17 depends_on "numpy" depends_on "pillow" depends_on "py3cairo" @@ -46,6 +45,7 @@ class GraphTool < Formula on_macos do depends_on "cairo" + depends_on "libomp" depends_on "libsigc++@2" end @@ -134,6 +134,13 @@ def install # Linux build is not thread-safe. ENV.deparallelize unless OS.mac? + # Enable openmp + if OS.mac? + ENV.append_to_cflags "-Xpreprocessor -fopenmp" + ENV.append "LDFLAGS", "-L#{Formula["libomp"].opt_lib} -lomp" + ENV.append "CPPFLAGS", "-I#{Formula["libomp"].opt_include}" + end + args = %W[ PYTHON=#{python} --with-python-module-path=#{prefix/site_packages}