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-12-15 15:42:44 +00:00
|
|
|
url 'https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz'
|
|
|
|
sha1 '3e6674772eb77de24908c6267c698146420ab699'
|
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-08-13 15:47:06 +00:00
|
|
|
if build.head?
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2012-02-28 15:39:22 +00:00
|
|
|
end
|
|
|
|
|
2012-08-13 15:47:06 +00:00
|
|
|
depends_on "doxygen" => :build if build.include? 'enable-manpages'
|
2012-05-25 15:20:02 +00:00
|
|
|
|
2012-08-13 15:47:06 +00:00
|
|
|
option :universal
|
|
|
|
option 'enable-manpages', 'Install the libevent manpages (requires doxygen)'
|
|
|
|
|
|
|
|
fails_with :llvm do
|
|
|
|
build 2326
|
|
|
|
cause "Undefined symbol '_current_base' reported during linking."
|
2012-05-25 15:20:02 +00:00
|
|
|
end
|
|
|
|
|
2012-08-13 15:47:06 +00:00
|
|
|
# Enable manpage generation
|
|
|
|
def patches
|
|
|
|
DATA if build.include? 'enable-manpages'
|
2012-05-25 15:20:02 +00:00
|
|
|
end
|
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2012-08-13 15:47:06 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-02-28 15:39:22 +00:00
|
|
|
ENV.j1
|
2012-08-13 15:47:06 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2012-09-05 16:39:52 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-debug-mode",
|
|
|
|
"--prefix=#{prefix}"
|
2011-11-27 03:48:35 +00:00
|
|
|
system "make"
|
2009-08-30 00:07:52 +00:00
|
|
|
system "make install"
|
2012-05-25 15:20:02 +00:00
|
|
|
|
2012-08-13 15:47:06 +00:00
|
|
|
if build.include? 'enable-manpages'
|
2012-05-25 15:20:02 +00:00
|
|
|
system "make doxygen"
|
|
|
|
man3.install Dir['doxygen/man/man3/*.3']
|
|
|
|
end
|
2009-08-30 00:07:52 +00:00
|
|
|
end
|
|
|
|
end
|
2012-05-25 15:20:02 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/Doxyfile b/Doxyfile
|
|
|
|
index 5d3865e..1442c19 100644
|
|
|
|
--- a/Doxyfile
|
|
|
|
+++ b/Doxyfile
|
|
|
|
@@ -175,7 +175,7 @@ LATEX_HIDE_INDICES = NO
|
|
|
|
# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
|
|
|
|
# generate man pages
|
|
|
|
|
|
|
|
-GENERATE_MAN = NO
|
|
|
|
+GENERATE_MAN = YES
|
|
|
|
|
|
|
|
# The MAN_EXTENSION tag determines the extension that is added to
|
|
|
|
# the generated man pages (default is the subroutine's section .3)
|