Created
July 15, 2019 17:43
-
-
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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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