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

class Libev < Formula
  homepage 'http://software.schmorp.de/pkg/libev.html'
  url 'http://dist.schmorp.de/libev/Attic/libev-4.15.tar.gz'
  sha1 '88655b1e2c0b328c9f90a6df7e72361a97fa8dc3'

  bottle do
    cellar :any
    revision 1
    sha1 "ed65bae24001a65df1be2e2aea664af1a07b1fed" => :yosemite
    sha1 "76a348a71741db6ab9dd7420a7ede73b150bb0c9" => :mavericks
  end

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

    # Remove compatibility header to prevent conflict with libevent
    (include/"event.h").unlink
  end
end