homebrew-core/Formula/libevent.rb

69 lines
1.8 KiB
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.21-stable.tar.gz'
sha1 '3e6674772eb77de24908c6267c698146420ab699'
2014-02-22 14:49:00 +00:00
bottle do
cellar :any
sha1 "b02833c4b3bae479169e98e02640d54f0399c536" => :mavericks
sha1 "4cb2ac89054de52fa0d4e001d5df5d17f9855a71" => :mountain_lion
sha1 "eab82e104a488a3367b1cbd9cd01a885c6ed1df6" => :lion
end
2013-09-22 01:47:10 +00:00
head do
url 'git://levent.git.sourceforge.net/gitroot/levent/levent'
2009-08-30 00:07:52 +00:00
2013-11-13 17:01:29 +00:00
depends_on :autoconf
2012-07-07 18:08:22 +00:00
depends_on :automake
depends_on :libtool
end
depends_on "doxygen" => :build if build.include? 'enable-manpages'
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."
end
# Enable manpage generation
def patches
DATA if build.include? 'enable-manpages'
end
2011-03-21 21:24:22 +00:00
def install
ENV.universal_binary if build.universal?
ENV.j1
system "./autogen.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--disable-debug-mode",
"--prefix=#{prefix}"
system "make"
2009-08-30 00:07:52 +00:00
system "make install"
if build.include? 'enable-manpages'
system "make doxygen"
man3.install Dir['doxygen/man/man3/*.3']
end
2009-08-30 00:07:52 +00:00
end
end
__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)