27 lines
986 B
Ruby
27 lines
986 B
Ruby
class Help2man < Formula
|
|
desc "Automatically generate simple man pages"
|
|
homepage "https://www.gnu.org/software/help2man/"
|
|
url "https://ftp.gnu.org/gnu/help2man/help2man-1.47.6.tar.xz"
|
|
mirror "https://ftpmirror.gnu.org/help2man/help2man-1.47.6.tar.xz"
|
|
sha256 "d91b0295b72a638e4a564f643e4e6d1928779131f628c00f356c13bf336de46f"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "8c2d747894baec4af17523abb21390651d931b2743dd90f043e434ae35d6f55c" => :high_sierra
|
|
sha256 "8c2d747894baec4af17523abb21390651d931b2743dd90f043e434ae35d6f55c" => :sierra
|
|
sha256 "8c2d747894baec4af17523abb21390651d931b2743dd90f043e434ae35d6f55c" => :el_capitan
|
|
end
|
|
|
|
def install
|
|
# install is not parallel safe
|
|
# see https://github.com/Homebrew/homebrew/issues/12609
|
|
ENV.deparallelize
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match "help2man #{version}", shell_output("#{bin}/help2man #{bin}/help2man")
|
|
end
|
|
end
|