Skip to content

Instantly share code, notes, and snippets.

@singingwolfboy
Created July 15, 2019 17:43
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 singingwolfboy/291c380b44d58a8e695a3fb6fff8d094 to your computer and use it in GitHub Desktop.
Save singingwolfboy/291c380b44d58a8e695a3fb6fff8d094 to your computer and use it in GitHub Desktop.
[pg-libphonenumber](https://github.com/blm768/pg-libphonenumber) formula for [Homebrew](https://brew.sh/). Still needs a released version before it can be merged to [homebrew-core](https://github.com/Homebrew/homebrew-core).
class PgLibphonenumber < Formula
desc "libphonenumber extension for Postgres"
homepage "https://github.com/blm768/pg-libphonenumber"
url "https://github.com/blm768/pg-libphonenumber/archive/master.zip"
version "0.1.0"
sha256 "5b29e96e96eba790e856e0624724a548bba82dfd0a3dc314eafd2ac3ace92e0f"
depends_on "libphonenumber"
depends_on "postgresql"
def install
system "make", "install", "DESTDIR=#{buildpath}/stage"
lib.install Dir["stage/**/lib/*"]
share.install Dir["stage/**/share/*"]
end
test do
system "psql -c 'CREATE EXTENSION IF NOT EXISTS pg_libphonenumber;' postgres"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment