homebrew-core/Formula/gmail-backup.rb

23 lines
773 B
Ruby

class GmailBackup < Formula
desc "Backup and restore the content of your Gmail account"
homepage "https://code.google.com/archive/p/gmail-backup-com/"
url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/gmail-backup-com/gmail-backup-20110307.tar.gz"
sha256 "caf7cb40ea580e506f90a6029a64fedaf1234093c729ca7e6e36efbd709deb93"
bottle do
sha256 cellar: :any_skip_relocation, all: "703dee3013e347c963346798e62df84450d0036b4567f598c7111fb431a8f50a"
end
def install
bin.install "gmail-backup.py" => "gmail-backup"
libexec.install Dir["*"]
ENV.prepend_path "PYTHONPATH", libexec
bin.env_script_all_files(libexec, PYTHONPATH: ENV["PYTHONPATH"])
end
test do
system bin/"gmail-backup", "--help"
end
end