aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mpssh.rb
blob: 21b9d914f9b2ad3f43bdf5f1663b4e489f0c2a3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class Mpssh < Formula
  homepage "https://github.com/ndenev/mpssh"
  url "https://github.com/ndenev/mpssh/archive/1.3.3.tar.gz"
  sha1 "ba11dfe7607cac3d47f1c86db236a2e440700ce7"
  head "https://github.com/ndenev/mpssh.git"

  bottle do
    cellar :any
    sha1 "3f673d4d3e00110be048b3a18c876ec8e9ccab2f" => :yosemite
    sha1 "5ad290e9a62712e43a2b624c2d9e73b1b2d445e7" => :mavericks
    sha1 "86902eb4b59dbf70f41fc8a7c9dabc3b30e5e140" => :mountain_lion
  end

  stable do
    patch do
      # don't install binaries as root (upstream PR merged in HEAD)
      url "https://github.com/bfontaine/mpssh/commit/3cbb868b6fdf8dff9ab86868510c0455ad1ec1b3.diff"
      sha1 "745b6d07bc479a2d4d64d71904342d76c52fa8ab"
    end
  end

  def install
    system "make", "install", "CC=#{ENV.cc}", "BIN=#{bin}"
    man1.install "mpssh.1"
  end

  test do
    system "#{bin}/mpssh"
  end
end