diff options
| author | Adam Vandenberg | 2012-08-27 22:01:46 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-27 22:01:46 -0700 |
| commit | 9df1e742d85ef7a7f64c914228e47e257cd2ff59 (patch) | |
| tree | efd2c22749e14be64bf0a469adb65b52291879d6 /Library | |
| parent | 9a3a6ddfaaf8bba86de2a6a87111e102b028e328 (diff) | |
| download | homebrew-9df1e742d85ef7a7f64c914228e47e257cd2ff59.tar.bz2 | |
falcon: use new dsl
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/falcon.rb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Library/Formula/falcon.rb b/Library/Formula/falcon.rb index 6962fcd23..d96c85698 100644 --- a/Library/Formula/falcon.rb +++ b/Library/Formula/falcon.rb @@ -7,19 +7,15 @@ class Falcon < Formula head 'http://git.falconpl.org/falcon.git' + option 'editline', "Use editline instead of readline" + option 'feathers', "Include feathers (extra libraries)" + depends_on 'cmake' => :build depends_on 'pcre' conflicts_with 'sdl', :because => "Falcon optionally depends on SDL and then the build breaks. Fix it!" - def options - [ - ['--editline', "Use editline instead of readline"], - ['--feathers', "Include feathers (extra libraries)"] - ] - end - def install args = std_cmake_args + %W{ -DCMAKE_INSTALL_PREFIX=#{prefix} @@ -29,13 +25,13 @@ class Falcon < Formula -DFALCON_WITH_INTERNAL_PCRE=OFF -DFALCON_WITH_MANPAGES=ON} - if ARGV.include? '--editline' + if build.include? 'editline' args << "-DFALCON_WITH_EDITLINE=ON" else args << "-DFALCON_WITH_EDITLINE=OFF" end - if ARGV.include? '--feathers' + if build.include? 'feathers' args << "-DFALCON_WITH_FEATHERS=feathers" else args << "-DFALCON_WITH_FEATHERS=NO" |
