hwloc: migrate from homebrew/science

master
FX Coudert 2017-08-09 23:14:11 +02:00
parent 90a666edbc
commit 77c2bbb4bb
2 changed files with 35 additions and 1 deletions

35
Formula/hwloc.rb Normal file
View File

@ -0,0 +1,35 @@
class Hwloc < Formula
desc "Portable abstraction of the hierarchical topology of modern architectures"
homepage "https://www.open-mpi.org/projects/hwloc/"
url "https://www.open-mpi.org/software/hwloc/v1.11/downloads/hwloc-1.11.7.tar.bz2"
sha256 "ab6910e248eed8c85d08b529917a6aae706b32b346e886ba830895e36a809729"
head do
url "https://github.com/open-mpi/hwloc.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "pkg-config" => :build
depends_on "cairo" => :optional
def install
system "./autogen.sh" if build.head?
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--enable-shared",
"--enable-static",
"--prefix=#{prefix}",
"--without-x"
system "make", "install"
pkgshare.install "tests"
end
test do
system ENV.cc, pkgshare/"tests/hwloc_groups.c", "-I#{include}",
"-L#{lib}", "-lhwloc", "-o", "test"
system "./test"
end
end

View File

@ -29,7 +29,6 @@
"helios": "spotify/public",
"hexchat": "caskroom/cask",
"horndis": "caskroom/cask",
"hwloc": "homebrew/science",
"inkscape": "caskroom/cask",
"ipopt": "homebrew/science",
"itsol": "homebrew/science",