homebrew-core/Formula/help2man.rb

29 lines
978 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Help2man < Formula
desc "Automatically generate simple man pages"
homepage "https://www.gnu.org/software/help2man/"
url "http://ftpmirror.gnu.org/help2man/help2man-1.47.1.tar.xz"
mirror "https://ftp.gnu.org/gnu/help2man/help2man-1.47.1.tar.xz"
sha256 "c59b26f60cb06e45b00e729dea721e7a17220e2c17d800eb428271a750382b06"
2010-02-07 20:18:02 +00:00
2014-06-09 16:05:56 +00:00
bottle do
2014-10-01 19:47:15 +00:00
cellar :any
2015-06-28 06:58:43 +00:00
sha256 "40c09efa98f1d4a76aef58206a6e161b21f2d34e86959f1272f785a68c3f7734" => :yosemite
sha256 "c0fd556bfa0a791590d4233c1856e492605a9078735789927dd1c2ec0653e6c2" => :mavericks
sha256 "bc3d57b4a32e616fbc8d7da3610441a710a7eb6f855b839de0e7a1b91e1cb712" => :mountain_lion
2014-06-09 16:05:56 +00:00
end
2010-02-07 20:18:02 +00:00
def install
# install is not parallel safe
# see https://github.com/Homebrew/homebrew/issues/12609
ENV.j1
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
cmd = "#{bin}/help2man #{bin}/help2man"
assert_match(/"help2man #{version}"/, shell_output(cmd))
2010-02-07 20:18:02 +00:00
end
end