diff options
| author | Tokuhiro Matsuno | 2010-11-12 18:14:57 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2010-11-12 07:48:13 -0800 |
| commit | 1b24cbe459356c771871d14eacff4a671dcc52d3 (patch) | |
| tree | a9bbb958910fb1f13e5b7256ee726690cadaf6b9 /Library/Formula | |
| parent | 00e1ae38e86ff0502755e24a869bac1fff2734ff (diff) | |
| download | homebrew-1b24cbe459356c771871d14eacff4a671dcc52d3.tar.bz2 | |
new formula: kyoto-tycoon
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/kyoto-tycoon.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/kyoto-tycoon.rb b/Library/Formula/kyoto-tycoon.rb new file mode 100644 index 000000000..9565d0e61 --- /dev/null +++ b/Library/Formula/kyoto-tycoon.rb @@ -0,0 +1,23 @@ +require 'formula' + +class KyotoTycoon <Formula + url 'http://fallabs.com/kyototycoon/pkg/kyototycoon-0.9.7.tar.gz' + homepage 'http://fallabs.com/kyototycoon/' + md5 'c6ba2b75e6f675c4fbe5d50b3f26143d' + + depends_on 'lua' unless ARGV.include? "--no-lua" + depends_on 'kyoto-cabinet' + + def options + [["--no-lua", "Disable Lua support (and don't force Lua install.)"]] + end + + def install + args = ["--prefix=#{prefix}"] + args << "--enable-lua" unless ARGV.include? "--no-lua" + + system "./configure", *args + system "make" + system "make install" + end +end |
