2010-04-02 03:13:22 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Falcon < Formula
|
2011-01-17 01:32:21 +00:00
|
|
|
url 'http://falconpl.org/project_dl/_official_rel/Falcon-0.9.6.8.tgz'
|
2010-04-02 03:13:22 +00:00
|
|
|
homepage 'http://www.falconpl.org/'
|
2011-02-22 19:41:27 +00:00
|
|
|
md5 '8435f6f2fe95097ac2fbe000da97c242'
|
2010-10-01 03:15:27 +00:00
|
|
|
|
|
|
|
head 'http://git.falconpl.org/falcon.git', :branch => 'master', :using => :git
|
2010-04-02 03:13:22 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'cmake' => :build
|
2010-04-02 03:13:22 +00:00
|
|
|
depends_on 'pcre'
|
|
|
|
|
2010-10-01 03:15:27 +00:00
|
|
|
def options
|
|
|
|
[
|
|
|
|
['--editline', "Use editline instead of readline"],
|
|
|
|
['--feathers', "Include feathers (extra libraries)"]
|
|
|
|
]
|
2010-04-02 03:13:22 +00:00
|
|
|
end
|
|
|
|
|
2010-10-01 03:15:27 +00:00
|
|
|
def install
|
|
|
|
args = ["-DCMAKE_BUILD_TYPE=Release",
|
|
|
|
"-DCMAKE_INSTALL_PREFIX=#{prefix}",
|
|
|
|
"-DFALCON_BIN_DIR=#{bin}",
|
|
|
|
"-DFALCON_LIB_DIR=#{lib}",
|
|
|
|
"-DFALCON_MAN_DIR=#{man1}",
|
2012-02-05 19:45:22 +00:00
|
|
|
"-DFALCON_WITH_MANPAGES=ON",
|
2010-10-01 03:15:27 +00:00
|
|
|
"-DFALCON_WITH_INTERNAL_PCRE=ON",
|
|
|
|
"-DFALCON_WITH_INTERNAL_ZLIB=ON",
|
2012-02-05 19:45:22 +00:00
|
|
|
"-DFALCON_WITH_INTERNAL=ON"]
|
2010-10-01 03:15:27 +00:00
|
|
|
|
|
|
|
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"
|
2010-04-02 03:13:22 +00:00
|
|
|
end
|
2010-09-19 17:21:57 +00:00
|
|
|
end
|