Skip to content

Instantly share code, notes, and snippets.

@mikestankavich
Forked from audreyt/plv8.rb
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save mikestankavich/79e2d401849171f964a4 to your computer and use it in GitHub Desktop.

Select an option

Save mikestankavich/79e2d401849171f964a4 to your computer and use it in GitHub Desktop.
require 'formula'
class Plv8 < Formula
homepage 'http://code.google.com/p/plv8js/wiki/PLV8'
version '1.4.1'
url 'https://plv8js.googlecode.com/files/plv8-1.4.1.zip'
sha1 'ceb7579b1fae1c1fe795c03a23471fdf9c7c469e'
head 'https://code.google.com/p/plv8js/', :using => :git
depends_on 'v8' # and postgres
depends_on :postgresql
def install
ENV.prepend 'PATH', Formula.factory('postgresql').bin, ':'
system 'pg_config' # ensure postgres installed
system "make"
system "make install"
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