Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plv8 3.2.1 #89

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions Formula/plv8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ class Plv8 < Formula
desc "V8 Engine Javascript Procedural Language add-on for PostgreSQL"
homepage "https://plv8.github.io/"
url "https://github.com/plv8/plv8.git",
tag: "v3.2.0",
revision: "f23425b5115203d7b339123d5088bf82bfff51cc"
tag: "v3.2.1",
revision: "f2f3f9bf46fbbb400aa74f0ae61aeb3aa8ae82bf"
license "PostgreSQL"

bottle do
Expand All @@ -29,13 +29,10 @@ def install
"-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=#{ENV.cc} -DCMAKE_CXX_COMPILER=#{ENV.cxx}"

pg_versions.each do |v|
# Ref https://github.com/postgres/postgres/commit/b55f62abb2c2e07dfae99e19a2b3d7ca9e58dc1a
dlsuffix = (OS.linux? || "v14 v15".include?(v)) ? "so" : "dylib"

system "make", "clean", "PG_CONFIG=#{neon_postgres.pg_bin_for(v)}/pg_config"
system "make", "PG_CONFIG=#{neon_postgres.pg_bin_for(v)}/pg_config"
mkdir_p lib/neon_postgres.name/v
mv "plv8-#{version}.#{dlsuffix}", lib/neon_postgres.name/v
mv "plv8-#{version}.#{neon_postgres.dlsuffix(v)}", lib/neon_postgres.name/v

mkdir_p share/neon_postgres.name/v/"extension"
cp "plv8.control", share/neon_postgres.name/v/"extension"
Expand Down
Loading