From a88c655281420196af6a5547feab8b66cbb68235 Mon Sep 17 00:00:00 2001 From: Steven Oliver Date: Thu, 30 Sep 2010 23:15:27 -0400 Subject: Update falcon brew to 0.9.6.6 Signed-off-by: Adam Vandenberg --- Library/Formula/falcon.rb | 72 ++++++++++++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 29 deletions(-) (limited to 'Library/Formula/falcon.rb') diff --git a/Library/Formula/falcon.rb b/Library/Formula/falcon.rb index 1518efcdf..7a9064bec 100644 --- a/Library/Formula/falcon.rb +++ b/Library/Formula/falcon.rb @@ -1,40 +1,54 @@ -# This formula currently uses the bundled libedit since there are known -# problems with readline. - require 'formula' -class FalconHtmldocs 'master', :using => :git depends_on 'cmake' depends_on 'pcre' - def install - cmake_opts = "-DCMAKE_INSTALL_NAME_DIR=#{lib}" - ENV.append "EXTRA_CMAKE", cmake_opts - system "./build.sh", "-p", prefix, "-int", "-el" - system "./build.sh", "-i" - # install the htmldocs for the core and standard modules (feathers) - FalconHtmldocs.new.brew { (doc+'core-doc').install Dir['*'] } - FalconFeathersHtmldocs.new.brew { (doc+'feathers-doc').install Dir['*'] } + def options + [ + ['--manpages', "Install manpages"], + ['--editline', "Use editline instead of readline"], + ['--feathers', "Include feathers (extra libraries)"] + ] end - def caveats; <<-EOS.undent - HTML docs for the core and standard libraries (feathers) are - installed in #{doc}/core-doc and - #{doc}/feathers-doc respectively. - EOS + def install + args = ["-DCMAKE_BUILD_TYPE=Release", + "-DCMAKE_INSTALL_PREFIX=#{prefix}", + "-DFALCON_BIN_DIR=#{bin}", + "-DFALCON_LIB_DIR=#{lib}", + "-DFALCON_MAN_DIR=#{man1}", + "-DFALCON_WITH_INTERNAL_PCRE=ON", + "-DFALCON_WITH_INTERNAL_ZLIB=ON", + "-DFALCON_WITH_INTERNAL=ON" ] + + if ARGV.include? '--manpages' + args << "-DFALCON_WITH_MANPAGES=ON" + else + args << "-DFALCON_WITH_MANPAGES=OFF" + args << "-DFALCON_MAN_DIR=#{man1}" + end + + if ARGV.include? '--editline' + args << "-DFALCON_WITH_EDITLINE=ON" + else + args << "-DFALCON_WITH_EDITLINE=OFF" + end + + if ARGV.include? '--feathers' + args << "-DFALCON_WITH_FEATHERS=feathers" + else + args << "-DFALCON_WITH_FEATHERS=NO" + end + + system "cmake", *args + system "make" + system "make install" end -end +end \ No newline at end of file -- cgit v1.2.3