Skip to content

Commit

Permalink
hwloc: migrate from homebrew/science
Browse files Browse the repository at this point in the history
  • Loading branch information
fxcoudert committed Aug 10, 2017
1 parent 90a666e commit 77c2bbb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
35 changes: 35 additions & 0 deletions Formula/hwloc.rb
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion tap_migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 77c2bbb

Please sign in to comment.