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'
|
2014-05-21 19:30:42 +00:00
|
|
|
url 'https://bitbucket.org/fantom/fan-1.0/downloads/fantom-1.0.66.zip'
|
|
|
|
sha1 '8389fc5111970e89b7b4cbe395e85a48872b4131'
|
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
|
2014-03-18 21:51:41 +00:00
|
|
|
patch :DATA
|
2012-03-08 07:00:26 +00:00
|
|
|
|
2011-02-23 15:07:41 +00:00
|
|
|
def install
|
|
|
|
rm_f Dir["bin/*.exe", "lib/dotnet/*"]
|
2014-03-06 20:40:26 +00:00
|
|
|
rm_rf "examples" if build.without? "examples"
|
|
|
|
rm_rf "src" if build.without? "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
|
2014-03-06 20:40:26 +00:00
|
|
|
+++ b/etc/build/config.props
|
2013-05-22 20:56:28 +00:00
|
|
|
@@ -22,8 +22,8 @@ buildVersion=1.0.65
|
|
|
|
javacParams=-target 1.5
|
2014-03-06 20:40:26 +00:00
|
|
|
|
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/
|
2014-03-06 20:40:26 +00:00
|
|
|
|
2012-03-08 07:00:26 +00:00
|
|
|
// 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
|
|
|
|
|
|
|
|
|