diff options
| author | Martin Lau | 2011-03-30 20:52:31 +1100 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-30 08:27:29 -0700 |
| commit | 688f45b240ed688f4530ea18de55b5c4a3b910c2 (patch) | |
| tree | 595098187b36e07c3ce4dc0bf3ef98bacf0d6f8b /Library/Formula | |
| parent | 0526e0cbcafd66ccdd9101100d68772e71b13e1a (diff) | |
| download | homebrew-688f45b240ed688f4530ea18de55b5c4a3b910c2.tar.bz2 | |
fantom 1.0.58
* Fixed issue with files under fantom/.../libexec/bin/ having incorrect
permissions (644 vs 755)
* Added options for '--with-src' and '--with-examples' to bring 'em back
if desired (ie for IDE tooling support)
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/fantom.rb | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Library/Formula/fantom.rb b/Library/Formula/fantom.rb index 94d984d7b..fee1d6c1f 100644 --- a/Library/Formula/fantom.rb +++ b/Library/Formula/fantom.rb @@ -1,17 +1,26 @@ require 'formula' -class Fantom <Formula - url 'http://fan.googlecode.com/files/fantom-1.0.57.zip' +class Fantom < Formula + url 'http://fan.googlecode.com/files/fantom-1.0.58.zip' homepage 'http://fantom.org' - md5 '5f5b7fbaae4e2cf76ded359c57530af2' + md5 '2a74bbb7f398bfed4eed1fa2d147f384' + + def options + [['--with-src', 'Also install fantom source'], + ['--with-examples', 'Also install fantom examples']] + end def install rm_f Dir["bin/*.exe", "lib/dotnet/*"] - rm_rf Dir["examples", "src"] + rm_rf Dir["examples"] unless ARGV.include? '--with-examples' + rm_rf Dir["src"] unless ARGV.include? '--with-src' + libexec.install Dir['*'] + bin.mkpath Dir["#{libexec}/bin/*"].each do |f| next unless File.extname(f).empty? + chmod 0755, f ln_s f, bin+File.basename(f) end end |
