pgsync 0.7.2 (new formula)
Closes #112908. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: Dawid Dziurla <dawidd0811@gmail.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
0b3f5f1197
commit
2b3cd8c8a2
|
@ -0,0 +1,58 @@
|
|||
class Pgsync < Formula
|
||||
desc "Sync Postgres data between databases"
|
||||
homepage "https://github.com/ankane/pgsync"
|
||||
url "https://github.com/ankane/pgsync/archive/v0.7.2.tar.gz"
|
||||
sha256 "1c6adcd9f3bd145f573d80dfde06cb83e0ce3653492d9ae767493abf541c469c"
|
||||
license "MIT"
|
||||
|
||||
depends_on "libpq"
|
||||
|
||||
uses_from_macos "ruby"
|
||||
|
||||
resource "parallel" do
|
||||
url "https://rubygems.org/gems/parallel-1.22.1.gem"
|
||||
sha256 "ebdf1f0c51f182df38522f70ba770214940bef998cdb6e00f36492b29699761f"
|
||||
end
|
||||
|
||||
resource "pg" do
|
||||
url "https://rubygems.org/gems/pg-1.4.4.gem"
|
||||
sha256 "a3877f06e3548a01ffdeb1c1c8cc751db6e759c0020b133a54cbdb0e71fa4525"
|
||||
end
|
||||
|
||||
resource "slop" do
|
||||
url "https://rubygems.org/gems/slop-4.9.3.gem"
|
||||
sha256 "6e26dfdb549f45d75f5f843f4c1b6267f34b6604ca8303086946f97ff275e933"
|
||||
end
|
||||
|
||||
resource "tty-cursor" do
|
||||
url "https://rubygems.org/gems/tty-cursor-0.7.1.gem"
|
||||
sha256 "79534185e6a777888d88628b14b6a1fdf5154a603f285f80b1753e1908e0bf48"
|
||||
end
|
||||
|
||||
resource "tty-spinner" do
|
||||
url "https://rubygems.org/gems/tty-spinner-0.9.3.gem"
|
||||
sha256 "0e036f047b4ffb61f2aa45f5a770ec00b4d04130531558a94bfc5b192b570542"
|
||||
end
|
||||
|
||||
def install
|
||||
ENV["GEM_HOME"] = libexec
|
||||
ENV["PG_CONFIG"] = Formula["libpq"].opt_bin/"pg_config"
|
||||
|
||||
resources.each do |r|
|
||||
r.fetch
|
||||
system "gem", "install", r.cached_download, "--ignore-dependencies",
|
||||
"--no-document", "--install-dir", libexec
|
||||
end
|
||||
|
||||
system "gem", "build", "pgsync.gemspec"
|
||||
system "gem", "install", "--ignore-dependencies", "pgsync-#{version}.gem"
|
||||
|
||||
bin.install libexec/"bin/pgsync"
|
||||
bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV["GEM_HOME"])
|
||||
end
|
||||
|
||||
test do
|
||||
system bin/"pgsync", "--init"
|
||||
assert_predicate testpath/".pgsync.yml", :exist?
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue