aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mlton.rb
diff options
context:
space:
mode:
authorCory2010-08-25 15:28:32 -0400
committerAdam Vandenberg2011-03-22 10:37:19 -0700
commitef3d23bd1e6eeccfec408aefb060b521ac95cbe8 (patch)
treec6d59422a8bac86e285c7edab3c3a2ca6d3e4f6b /Library/Formula/mlton.rb
parent2fcc7af6784d9d9fc23b96da57b595e392134505 (diff)
downloadhomebrew-ef3d23bd1e6eeccfec408aefb060b521ac95cbe8.tar.bz2
mlton: binary install
A formula to install the binary build of MLton for Darwin amd64. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/mlton.rb')
-rw-r--r--Library/Formula/mlton.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/mlton.rb b/Library/Formula/mlton.rb
new file mode 100644
index 000000000..82b0bbecf
--- /dev/null
+++ b/Library/Formula/mlton.rb
@@ -0,0 +1,25 @@
+require 'formula'
+
+# Installs the binary build of MLton.
+# Since MLton is written in ML, building from source
+# would require an existing ML compiler/interpreter for bootstrapping.
+
+class Mlton < Formula
+ # the dynamic macports version works fine with Homebrew's gmp
+ url 'http://mlton.org/pages/Download/attachments/mlton-20100608-1.amd64-darwin.gmp-macports.tgz'
+ homepage 'http://mxcl.github.com/homebrew/'
+ md5 'e9007318bb77c246258a53690b1d3449'
+
+ depends_on 'gmp'
+
+ skip_clean :all
+
+ def install
+ Dir.chdir "local" do
+ # Remove OS X droppings
+ rm Dir["man/man1/._*"]
+ mv "man", "share"
+ prefix.install Dir['*']
+ end
+ end
+end