aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2014-05-07 17:11:05 -0700
committerAdam Vandenberg2014-05-07 17:11:05 -0700
commit742735bb6d47d1e9eb133cba48fc6389d0289df9 (patch)
treec8d43db6b9af4c017a592660900d9f0967aed539 /Library/Formula
parentf824350ec768b3334eef45a21ed533257de28a54 (diff)
downloadhomebrew-742735bb6d47d1e9eb133cba48fc6389d0289df9.tar.bz2
Remove asymptote
This can be installed using MacTeX with: (sudo) tlmgr install asymptote Closes #23029.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/asymptote.rb69
1 files changed, 0 insertions, 69 deletions
diff --git a/Library/Formula/asymptote.rb b/Library/Formula/asymptote.rb
deleted file mode 100644
index dd2741f75..000000000
--- a/Library/Formula/asymptote.rb
+++ /dev/null
@@ -1,69 +0,0 @@
-require 'formula'
-
-class Asymptote < Formula
- homepage 'http://asymptote.sourceforge.net/'
- url 'https://downloads.sourceforge.net/asymptote/asymptote-2.23.src.tgz'
- sha1 'c24de9766ae7195c1cda947f9d2ae07497a0af8f'
-
- depends_on :tex
- depends_on 'texinfo'
- depends_on 'readline'
- depends_on 'bdw-gc'
- depends_on 'fftw' => :optional
- depends_on 'gsl' => :optional
-
- def install
- texmfhome = share/'texmf'
- system "./configure", "--prefix=#{prefix}",
- "--enable-gc=#{HOMEBREW_PREFIX}",
- "--with-latex=#{texmfhome}/tex/latex",
- "--with-context=#{texmfhome}/tex/context/third",
- # So that `texdoc` can find manuals
- "--with-docdir=#{texmfhome}/doc"
- system "make"
- ENV.deparallelize
- system "make install"
- end
-
- test do
- ENV['TEXMFHOME'] = "#{HOMEBREW_PREFIX}/share/texmf"
- (testpath/'asy_test.tex').write <<-EOS.undent
- \\nonstopmode
-
- \\documentclass{minimal}
- \\usepackage{asymptote}
-
- \\begin{document}
- Hello, Asymptote!
-
- \\begin{asy}
- size(3cm);
- draw((0,0)--(1,0)--(1,1)--(0,1)--cycle);
- \\end{asy}
-
- \\end{document}
- EOS
-
- system "pdflatex asy_test"
- system "asy asy_test-1.asy"
- system "pdflatex asy_test"
- end
-
- def caveats; <<-EOS.undent
- This formula links the latest version of the Asymptote LaTeX and ConTeXt
- packages into:
-
- #{HOMEBREW_PREFIX}/share/texmf
-
- In order for these packages to be visible to TeX compilers, the above
- directory will need to be added to the TeX search path:
-
- sudo tlmgr conf texmf TEXMFHOME "~/Library/texmf:#{HOMEBREW_PREFIX}/share/texmf"
-
- If you wish to use xasy, you must first install the Python Imaging Library:
-
- brew install pil
-
- EOS
- end
-end