aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mpio.rb
blob: 25f8b52a45dd28409b2034840685d0a8b4abfbba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class Mpio < Formula
  homepage 'https://github.com/frsyuki/mpio'
  url 'https://github.com/downloads/frsyuki/mpio/mpio-0.3.7.tar.gz'
  sha1 '2c75a7ad0d0e00e9463f768fa4b579626bf65096'

  fails_with :clang do
    cause <<-EOS.undent
      In file included from ./wavy_loop.h:23:
      ./wavy_kernel.h:50:10: fatal error: './ wavy_kernel_kqueue.h' file not found
      #include MP_WAVY_KERNEL_HEADER(MP_WAVY_KERNEL)
      ^
      ./wavy_kernel.h:44:2: note: expanded from macro 'MP_WAVY_KERNEL_HEADER'
    EOS
  end

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end