2011-03-10 05:11:03 +00:00
|
|
|
class Help2man < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Automatically generate simple man pages"
|
2015-01-31 09:12:52 +00:00
|
|
|
homepage "https://www.gnu.org/software/help2man/"
|
2015-06-28 03:00:37 +00:00
|
|
|
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
|
2012-06-10 20:50:43 +00:00
|
|
|
# install is not parallel safe
|
2013-12-14 18:13:11 +00:00
|
|
|
# see https://github.com/Homebrew/homebrew/issues/12609
|
2012-06-10 20:50:43 +00:00
|
|
|
ENV.j1
|
2012-06-06 21:42:57 +00:00
|
|
|
|
2010-08-21 18:28:03 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-01-31 09:12:52 +00:00
|
|
|
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
|