homebrew-core/Formula/mpage.rb
2017-09-29 12:14:44 +02:00

26 lines
789 B
Ruby

class Mpage < Formula
desc "Many to one page printing utility"
homepage "http://www.mesa.nl/pub/mpage/README"
url "http://www.mesa.nl/pub/mpage/mpage-2.5.7.tgz"
sha256 "51ab9c4e5fdd37e03c90df6756f30c0b61a34f066cb625f8924feedc4b3ec3fe"
bottle do
sha256 "fb22af4c695ec3b6e27980a8b180bf4a7904b81ce5ff51f46f0d5ccdc5da8d07" => :high_sierra
sha256 "2d020c69ee688a3a2d82f5f2c531a9f7abaf3923f0024e3b5eb2f1466992d7c1" => :sierra
sha256 "4b899cd8a7280c7317513a51f6b3227f88c6324c39712530341b9d108d829ee5" => :el_capitan
end
def install
args = %W[
MANDIR=#{man1}
PREFIX=#{prefix}
]
system "make", *args
system "make", "install", *args
end
test do
(testpath/"input.txt").write("Input text")
system bin/"mpage", "input.txt"
end
end