2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-30 00:07:52 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libevent < Formula
|
2009-12-01 19:37:57 +00:00
|
|
|
homepage 'http://www.monkey.org/~provos/libevent/'
|
2012-04-16 18:40:23 +00:00
|
|
|
url 'https://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz'
|
|
|
|
sha1 '2a2cc87ce1945f43dfa5a5f9575fef3d14a8f57a'
|
2012-02-17 08:32:02 +00:00
|
|
|
|
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
|
|
|
|
2012-03-18 20:33:24 +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"
|
2012-02-28 15:39:22 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2012-02-28 15:39:22 +00:00
|
|
|
ENV.j1
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./autogen.sh" if ARGV.build_head?
|
2009-12-01 19:37:57 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2011-11-27 03:48:35 +00:00
|
|
|
system "make"
|
2009-08-30 00:07:52 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|