homebrew-core/Formula/shtool.rb
2017-09-21 08:38:32 +02:00

26 lines
1.1 KiB
Ruby

class Shtool < Formula
desc "GNU's portable shell tool"
homepage "https://www.gnu.org/software/shtool/"
url "https://ftp.gnu.org/gnu/shtool/shtool-2.0.8.tar.gz"
mirror "https://ftpmirror.gnu.org/shtool/shtool-2.0.8.tar.gz"
sha256 "1298a549416d12af239e9f4e787e6e6509210afb49d5cf28eb6ec4015046ae19"
bottle do
cellar :any_skip_relocation
sha256 "fc22505f6424dece01dcdee55907eebcb490a299763f2f217511fa14c5927711" => :high_sierra
sha256 "172a4e2c133efcc6235aa3901bbc89ea11c48cfa70833fe67801240236d1757d" => :sierra
sha256 "17dcf1289dd178b75b670d8061d54e4b2004feeb7de0d9e1ea43ffb46220e4fd" => :el_capitan
sha256 "de69e23a1e88799c78891298045bd8f79ef67ee48b7609fa065c7acdc1ddbde4" => :yosemite
sha256 "14b7ea00fce6bf6df8e684f1f4db589ad4f6bc7051a4a29f34d51fb6d287d0a9" => :mavericks
sha256 "6e46064ddebb9f3510fb8f8e3b5f48b7f931004334cffba5a3b65cc49588e3a2" => :mountain_lion
end
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
assert_equal "Hello World!", pipe_output("#{bin}/shtool echo 'Hello World!'").chomp
end
end