2011-07-16 05:06:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Urweb < Formula
|
|
|
|
homepage 'http://impredicative.com/ur/'
|
2012-08-15 17:05:31 +00:00
|
|
|
url 'http://impredicative.com/ur/urweb-20120807.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '81c4a8095b2c6bb0f6779dd242270750f59627cf'
|
2011-07-16 05:06:57 +00:00
|
|
|
head 'http://hg.impredicative.com/urweb', :using => :hg
|
|
|
|
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2011-07-16 05:06:57 +00:00
|
|
|
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on 'mlton'
|
2012-02-29 01:44:13 +00:00
|
|
|
|
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
|