2011-07-16 05:06:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Urweb < Formula
|
|
|
|
homepage 'http://impredicative.com/ur/'
|
2012-01-10 17:13:13 +00:00
|
|
|
url 'http://impredicative.com/ur/urweb-20120110.tgz'
|
|
|
|
md5 'c71b1f1d16e1118fa50443b79704f9e9'
|
2011-07-16 05:06:57 +00:00
|
|
|
head 'http://hg.impredicative.com/urweb', :using => :hg
|
|
|
|
|
|
|
|
depends_on 'mlton'
|
|
|
|
|
2012-02-29 01:44:13 +00:00
|
|
|
if MacOS.xcode_version >= "4.3"
|
|
|
|
# remove the autoreconf if possible, no comment provided about why it is there
|
|
|
|
# so we have no basis to make a decision at this point.
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2011-07-16 05:06:57 +00:00
|
|
|
def install
|
2012-05-15 21:36:45 +00:00
|
|
|
system "aclocal"
|
|
|
|
system "autoreconf -i --force"
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2011-07-16 05:06:57 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Programs generated by the Ur/Web compiler can use SQLite,
|
|
|
|
PostgreSQL, or MySQL for the data store. You probably want to
|
|
|
|
install either PostgreSQL or MySQL if you're going to deploy
|
|
|
|
real apps or test them heavily.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|