txt2man 1.7.1 (new formula)
* txt2man 1.7.1 (new formula) * txt2man: remove bash dep Closes #118354. Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
ca758a0641
commit
e8fc858fd3
|
@ -0,0 +1,27 @@
|
|||
class Txt2man < Formula
|
||||
desc "Converts flat ASCII text to man page format"
|
||||
homepage "https://github.com/mvertes/txt2man/"
|
||||
url "https://github.com/mvertes/txt2man/archive/refs/tags/txt2man-1.7.1.tar.gz"
|
||||
sha256 "4d9b1bfa2b7a5265b4e5cb3aebc1078323b029aa961b6836d8f96aba6a9e434d"
|
||||
license "GPL-2.0-or-later"
|
||||
|
||||
depends_on "gawk"
|
||||
|
||||
def install
|
||||
system "make", "install", "prefix=#{prefix}"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"foo.txt").write "foo"
|
||||
(testpath/"foo.1").write Utils.safe_popen_read(bin/"txt2man", "-d", "17 Dec 2022", testpath/"foo.txt")
|
||||
|
||||
expected = <<~EOS
|
||||
.\\" Text automatically generated by txt2man
|
||||
.TH untitled "17 Dec 2022" "" ""
|
||||
.RS
|
||||
foo
|
||||
EOS
|
||||
|
||||
assert_equal expected, (testpath/"foo.1").read
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue