diff options
| author | Jack Nagel | 2012-03-13 16:45:08 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-03-13 16:47:49 -0500 |
| commit | 9163f0d272b604d9884ed7a67b374f6f9379962a (patch) | |
| tree | 61a99b32ac1682ca3468f10ac9bef7aa25f20de8 /Library/Formula | |
| parent | 237aed38ff7ead6584e59b01aed071cbe9700c0d (diff) | |
| download | homebrew-9163f0d272b604d9884ed7a67b374f6f9379962a.tar.bz2 | |
v8cgi: use a stable tarball
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/v8cgi.rb | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/Library/Formula/v8cgi.rb b/Library/Formula/v8cgi.rb index f35531d70..34149601a 100644 --- a/Library/Formula/v8cgi.rb +++ b/Library/Formula/v8cgi.rb @@ -1,16 +1,11 @@ require 'formula' class V8cgi < Formula - head 'http://v8cgi.googlecode.com/svn/trunk/' homepage 'http://code.google.com/p/v8cgi/' + url 'http://v8cgi.googlecode.com/files/v8cgi-0.9.2-src.tar.gz' + sha1 '790aa7d177cccc94e2cb3ba4ca06213765094f01' - def options - [ - ["--with-dom", "Enable DOM."], - ["--with-gd", "Enable GD."], - ["--with-sqlite", "Enable SQLite."] - ] - end + head 'http://v8cgi.googlecode.com/svn/trunk/' depends_on 'scons' => :build depends_on 'v8' @@ -19,33 +14,42 @@ class V8cgi < Formula depends_on 'gd' if ARGV.include? '--with-gd' depends_on 'sqlite' if ARGV.include? '--with-sqlite' + def options + [ + ["--with-dom", "Enable DOM."], + ["--with-gd", "Enable GD."], + ["--with-sqlite", "Enable SQLite."] + ] + end + def install arch = Hardware.is_64_bit? ? 'x64' : 'ia32' v8_prefix = Formula.factory('v8').prefix - conf = "#{etc}/v8cgi.conf" - - inreplace 'SConstruct', '../v8', v8_prefix - args = ["config_file=#{conf}", "v8_path=#{v8_prefix}"] + args = ["config_file=#{etc}/v8cgi.conf", "v8_path=#{v8_prefix}"] args << ((ARGV.include? '--with-dom') ? 'dom=1' : 'dom=0') args << ((ARGV.include? '--with-gd') ? 'gd=1' : 'gd=0') args << ((ARGV.include? '--with-sqlite') ? 'sqlite=1' : 'sqlite=0') - system "scons", - "-j #{ENV.make_jobs}", - "arch=#{arch}", - "library=shared", - "socket=1", - "process=1", - "cgi=1", - "mysql=0", - "gl=0", - "module=0", - *args - - bin.install 'v8cgi' - lib.install 'lib' => 'v8cgi' - etc.install "v8cgi.conf.darwin" => "v8cgi.conf" + cd 'v8cgi' do + inreplace 'SConstruct', '../v8', v8_prefix + + system "scons", + "-j #{ENV.make_jobs}", + "arch=#{arch}", + "library=shared", + "socket=1", + "process=1", + "cgi=1", + "mysql=0", + "gl=0", + "module=0", + *args + + bin.install 'v8cgi' + lib.install 'lib' => 'v8cgi' + etc.install 'v8cgi.conf.darwin' => 'v8cgi.conf' + end end end |
