homebrew-core/Formula/libevent.rb

28 lines
717 B
Ruby
Raw Normal View History

require 'formula'
2009-08-30 00:07:52 +00:00
2011-03-10 05:11:03 +00:00
class Libevent < Formula
homepage 'http://www.monkey.org/~provos/libevent/'
url 'https://github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz'
sha1 'cea3af2d4bd688784f270ac2ecae8ea6aaaa463f'
2010-03-16 20:02:34 +00:00
head 'git://levent.git.sourceforge.net/gitroot/levent/levent'
2009-08-30 00:07:52 +00:00
fails_with :llvm do
build 2326
cause "Undefined symbol '_current_base' reported during linking."
end
2010-09-27 20:08:08 +00:00
2012-02-28 17:09:58 +00:00
if ARGV.build_head? and MacOS.xcode_version >= "4.3"
depends_on "automake" => :build
depends_on "libtool" => :build
end
2011-03-21 21:24:22 +00:00
def install
ENV.j1
system "./autogen.sh" if ARGV.build_head?
system "./configure", "--prefix=#{prefix}"
system "make"
2009-08-30 00:07:52 +00:00
system "make install"
end
end