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'
|
2013-05-22 20:56:28 +00:00
|
|
|
url 'http://fan.googlecode.com/files/fantom-1.0.65.zip'
|
|
|
|
sha1 'f88852a680b91963d8df7136fbcfe9ff54a5bb94'
|
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
|
2013-05-22 20:56:28 +00:00
|
|
|
index 368bce3..ebbff42 100755
|
2012-03-08 07:00:26 +00:00
|
|
|
--- a/etc/build/config.props
|
2013-05-22 20:56:28 +00:00
|
|
|
+++ b/etc/build/config.props
|
|
|
|
@@ -22,8 +22,8 @@ buildVersion=1.0.65
|
|
|
|
javacParams=-target 1.5
|
2012-03-08 07:00:26 +00:00
|
|
|
|
|
|
|
// Windows setup
|
2013-05-22 20:56:28 +00:00
|
|
|
-jdkHome=/C:/Program Files/Java/jdk1.6/
|
2012-03-08 07:00:26 +00:00
|
|
|
-dotnetHome=/C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/
|
2013-05-22 20:56:28 +00:00
|
|
|
+//jdkHome=/C:/Program Files/Java/jdk1.6/
|
2012-03-08 07:00:26 +00:00
|
|
|
+//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/
|
2013-05-22 20:56:28 +00:00
|
|
|
\ No newline at end of file
|
|
|
|
|
|
|
|
|