Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libnetworkit, networkit 8.0 #67184

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Formula/libnetworkit.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Libnetworkit < Formula
desc "NetworKit is an OS-toolkit for large-scale network analysis"
homepage "https://networkit.github.io"
url "https://github.com/networkit/networkit/archive/7.1.tar.gz"
sha256 "60026c3be581ae9d5c919c861605082fcb9c8205758b3ddfcde2408153ae166e"
url "https://github.com/networkit/networkit/archive/8.0.tar.gz"
sha256 "cdf9571043edbe76c447622ed33efe9cba2880f887ca231d98f6d3c22027e20e"
license "MIT"

bottle do
Expand Down
18 changes: 13 additions & 5 deletions Formula/networkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ class Networkit < Formula

desc "Performance toolkit for large-scale network analysis"
homepage "https://networkit.github.io"
url "https://github.com/networkit/networkit.git",
tag: "7.1",
revision: "4c6dcc4367b51005a34221242048609c357ffbd6"
url "https://github.com/networkit/networkit/archive/8.0.tar.gz"
sha256 "cdf9571043edbe76c447622ed33efe9cba2880f887ca231d98f6d3c22027e20e"
license "MIT"
revision 1

bottle do
sha256 "23f70cc4fa3dc267391415b12f871ef39e27cca750e2e3a638b9075075ef4314" => :arm64_big_sur
Expand All @@ -18,11 +16,20 @@ class Networkit < Formula

depends_on "cmake" => :build
depends_on "cython" => :build
depends_on "tlx" => :build

depends_on "libnetworkit"
depends_on "numpy"
depends_on "python@3.9"
depends_on "scipy"

# setup.py: add --external-tlx option
# https://github.com/networkit/networkit/pull/666
patch do
url "https://github.com/networkit/networkit/commit/dbe93306402e6ffee78bf45df5efc9cf2ac991a7.patch?full_index=1"
sha256 "7b50df48972f5490ede25e101d04e7ec4b1c4f8ededfdaee94c17fedf917d572"
end

def install
xy = Language::Python.major_minor_version Formula["python@3.9"].opt_bin/"python3"
rpath_addons = Formula["libnetworkit"].opt_lib
Expand All @@ -31,7 +38,8 @@ def install
ENV.append_path "PYTHONPATH", Formula["cython"].opt_libexec/"lib/python#{xy}/site-packages"
system Formula["python@3.9"].opt_bin/"python3", "setup.py", "build_ext",
"--networkit-external-core",
"--rpath=@loader_path;#{rpath_addons}"
"--external-tlx=#{Formula["tlx"].opt_prefix}",
"--rpath=@loader_path;#{rpath_addons}"
system Formula["python@3.9"].opt_bin/"python3", "setup.py", "install",
"--single-version-externally-managed",
"--record=installed.txt",
Expand Down