Last active
August 29, 2015 14:23
-
-
Save Congee/7228397ce2eb3ce5fca0 to your computer and use it in GitHub Desktop.
latexmk on Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Latexmk < Formula | |
desc "Latexmk completely automates the process of generating a LaTeX document." | |
homepage "http://users.phys.psu.edu/~collins/software/latexmk-jcc/" | |
url "http://users.phys.psu.edu/%7Ecollins/software/latexmk-jcc/latexmk-443a.zip" | |
sha256 "e410d295c0a47327b953ece5b582c294359bdf89138ef990d5621b020ff2bbe5" | |
depends_on :tex | |
depends_on "ghostscript" => :optional | |
def install | |
bin.install "latexmk.pl" => "latexmk" | |
man1.install "latexmk.1" | |
end | |
test do | |
(testpath/"test.tex").write <<-'EOS'.undent | |
\documentclass{article} | |
\begin{document} | |
Hello World! | |
\end{document} | |
EOS | |
system bin/"latex-mk", "test.tex" | |
assert File.exist?("test.dvi") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment