23 lines
635 B
Ruby
23 lines
635 B
Ruby
require 'formula'
|
|
|
|
class Pssh < Formula
|
|
desc "Parallel versions of OpenSSH and related tools"
|
|
homepage 'https://code.google.com/p/parallel-ssh/'
|
|
url 'https://parallel-ssh.googlecode.com/files/pssh-2.3.1.tar.gz'
|
|
sha1 '65736354baaa289cffdf374eb2ffd9aa1eda7d85'
|
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
def install
|
|
ENV["PYTHONPATH"] = lib+"python2.7/site-packages"
|
|
|
|
system "python", "setup.py", "install",
|
|
"--prefix=#{prefix}", "--install-data=#{share}"
|
|
|
|
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/pssh", "--version"
|
|
end
|
|
end
|