2011-02-23 15:07:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-30 09:52:31 +00:00
|
|
|
class Fantom < Formula
|
2011-02-23 15:07:41 +00:00
|
|
|
homepage 'http://fantom.org'
|
2012-08-04 20:33:22 +00:00
|
|
|
url 'http://fan.googlecode.com/files/fantom-1.0.63.zip'
|
|
|
|
sha1 '21042981b63da9e8f170c6d53d6abcede7d2ba25'
|
2011-03-30 09:52:31 +00:00
|
|
|
|
2012-08-28 05:02:27 +00:00
|
|
|
option 'with-src', 'Also install fantom source'
|
|
|
|
option 'with-examples', 'Also install fantom examples'
|
2011-02-23 15:07:41 +00:00
|
|
|
|
2012-03-08 07:00:26 +00:00
|
|
|
# Select the OS X JDK path in the config file
|
|
|
|
def patches; DATA; end
|
|
|
|
|
2011-02-23 15:07:41 +00:00
|
|
|
def install
|
|
|
|
rm_f Dir["bin/*.exe", "lib/dotnet/*"]
|
2012-08-28 05:02:27 +00:00
|
|
|
rm_rf "examples" unless build.include? 'with-examples'
|
|
|
|
rm_rf "src" unless build.include? 'with-src'
|
2011-03-30 09:52:31 +00:00
|
|
|
|
2012-03-09 03:56:55 +00:00
|
|
|
libexec.install Dir['*']
|
2012-03-01 21:31:44 +00:00
|
|
|
system "chmod 0755 #{libexec}/bin/*"
|
2012-02-12 19:07:38 +00:00
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
2011-02-23 15:07:41 +00:00
|
|
|
end
|
|
|
|
end
|
2012-03-08 07:00:26 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/etc/build/config.props b/etc/build/config.props
|
|
|
|
index c6675f1..b8423fe 100644
|
|
|
|
--- a/etc/build/config.props
|
|
|
|
+++ b/etc/build/config.props
|
|
|
|
@@ -12,8 +12,8 @@ buildVersion=1.0.62
|
|
|
|
//devHome=file:/E:/fan/
|
|
|
|
|
|
|
|
// Windows setup
|
|
|
|
-jdkHome=/C:/Program Files/Java/jdk1.6.0_21/
|
|
|
|
-dotnetHome=/C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/
|
|
|
|
+//jdkHome=/C:/Program Files/Java/jdk1.6.0_21/
|
|
|
|
+//dotnetHome=/C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/
|
|
|
|
|
|
|
|
// Mac setup
|
|
|
|
-//jdkHome=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/
|
|
|
|
\ No newline at end of file
|
|
|
|
+jdkHome=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/
|