Skip to content

Instantly share code, notes, and snippets.

@khristian
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khristian/dc9d8a7f202cc4ceb535 to your computer and use it in GitHub Desktop.
Save khristian/dc9d8a7f202cc4ceb535 to your computer and use it in GitHub Desktop.
PLV8
require "formula"
class Plv8 < Formula
homepage "http://code.google.com/p/plv8js/wiki/PLV8"
url "https://plv8js.googlecode.com/files/plv8-1.4.1.zip"
sha1 "ceb7579b1fae1c1fe795c03a23471fdf9c7c469e"
head 'https://code.google.com/p/plv8js/', :using => :git
depends_on 'postgresql'
depends_on 'v8'
def install
ENV.prepend 'PATH', Formula.factory['postgresql'].bin, ':'
system 'pg_config'
system "make"
system "make install"
end
def test
ENV.prepend 'PATH', Formula.factory['postgresql'].bin, ':'
system "make installcheck"
end
end
def test
ENV.prepend 'PATH', Formula.factory('postgresql').bin, ':'
system "make installcheck"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment