diff --git a/Formula/docutils.rb b/Formula/docutils.rb new file mode 100644 index 0000000000..098d146e3b --- /dev/null +++ b/Formula/docutils.rb @@ -0,0 +1,14 @@ +class Docutils < Formula + desc "Text processing system for reStructuredText" + homepage "http://docutils.sourceforge.net" + url "https://downloads.sourceforge.net/project/docutils/docutils/0.12/docutils-0.12.tar.gz" + sha256 "c7db717810ab6965f66c8cf0398a98c9d8df982da39b4cd7f162911eb89596fa" + + def install + system "python", *Language::Python.setup_install_args(prefix) + end + + test do + system "#{bin}/rst2man.py", "#{prefix}/HISTORY.txt" + end +end