29 lines
878 B
Ruby
29 lines
878 B
Ruby
class Docutils < Formula
|
|
desc "Text processing system for reStructuredText"
|
|
homepage "https://docutils.sourceforge.io"
|
|
url "https://downloads.sourceforge.net/project/docutils/docutils/0.19/docutils-0.19.tar.gz"
|
|
sha256 "33995a6753c30b7f577febfc2c50411fec6aac7f7ffeb7c4cfe5991072dcf9e6"
|
|
license all_of: [:public_domain, "BSD-2-Clause", "GPL-3.0-or-later", "Python-2.0"]
|
|
|
|
bottle do
|
|
rebuild 2
|
|
sha256 cellar: :any_skip_relocation, all: "137618cfdeedcb9cdb104c8ac7ba4e17d1f08dafc0ebabdddfe6f18dde061793"
|
|
end
|
|
|
|
depends_on "python@3.11"
|
|
|
|
def install
|
|
python3 = "python3.11"
|
|
system python3, *Language::Python.setup_install_args(prefix, python3)
|
|
|
|
bin.glob("*.py") do |f|
|
|
bin.install_symlink f => f.basename(".py")
|
|
end
|
|
end
|
|
|
|
test do
|
|
system bin/"rst2man.py", prefix/"HISTORY.txt"
|
|
system bin/"rst2man", prefix/"HISTORY.txt"
|
|
end
|
|
end
|