2017-07-21 14:19:43 +00:00
|
|
|
class Metis < Formula
|
|
|
|
desc "Programs that partition graphs and order matrices"
|
|
|
|
homepage "http://glaros.dtc.umn.edu/gkhome/views/metis"
|
|
|
|
url "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz"
|
|
|
|
sha256 "76faebe03f6c963127dbb73c13eab58c9a3faeae48779f049066a21c087c5db2"
|
|
|
|
|
2017-07-21 14:24:49 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2017-09-16 12:13:24 +00:00
|
|
|
sha256 "88b6965d941a87044150238387971c4bb94ed2ffca327affccaf311d666a2b4b" => :high_sierra
|
2017-07-21 14:24:49 +00:00
|
|
|
sha256 "9c8deed80ece8c24e7ebccbce8410557b27afe711d3f59fccb7d781254d0cc34" => :sierra
|
|
|
|
sha256 "54f75262475744bc6ad3ba66ac801e03c18bbac00a9bcf0ca9d05853f2022498" => :el_capitan
|
|
|
|
sha256 "b33c2fc2c8a1cdb9f48faf41201bdc6384090b8dbd6ed3eecd05264eb6431c0b" => :yosemite
|
|
|
|
end
|
|
|
|
|
2017-07-21 14:19:43 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "config", "prefix=#{prefix}", "shared=1"
|
|
|
|
system "make", "install"
|
|
|
|
|
|
|
|
pkgshare.install "graphs"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
["4elt", "copter2", "mdual"].each do |g|
|
|
|
|
cp pkgshare/"graphs/#{g}.graph", testpath
|
|
|
|
system "#{bin}/graphchk", "#{g}.graph"
|
|
|
|
system "#{bin}/gpmetis", "#{g}.graph", "2"
|
|
|
|
system "#{bin}/ndmetis", "#{g}.graph"
|
|
|
|
end
|
|
|
|
cp [pkgshare/"graphs/test.mgraph", pkgshare/"graphs/metis.mesh"], testpath
|
|
|
|
system "#{bin}/gpmetis", "test.mgraph", "2"
|
|
|
|
system "#{bin}/mpmetis", "metis.mesh", "2"
|
|
|
|
end
|
|
|
|
end
|