diff options
| author | Adam Vandenberg | 2013-02-11 22:20:34 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-05-25 16:11:52 -0700 |
| commit | b1e2f005faf780e645bddf8ddb8fabab42175bc0 (patch) | |
| tree | 2f91ac5e6e947fa287a9c6e4bc79f74a5b8c0749 /Library/Formula | |
| parent | 54e6140a18fcf24d446715b8bf38a70eb09ea322 (diff) | |
| download | homebrew-b1e2f005faf780e645bddf8ddb8fabab42175bc0.tar.bz2 | |
asymptote 2.23
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/asymptote.rb | 41 |
1 files changed, 13 insertions, 28 deletions
diff --git a/Library/Formula/asymptote.rb b/Library/Formula/asymptote.rb index fe59988fd..a1d61fba0 100644 --- a/Library/Formula/asymptote.rb +++ b/Library/Formula/asymptote.rb @@ -2,19 +2,18 @@ require 'formula' class Asymptote < Formula homepage 'http://asymptote.sourceforge.net/' - url 'http://downloads.sourceforge.net/asymptote/asymptote-2.15.src.tgz' - sha1 'e0fb336c195fb21a39e3d0f3acd4881ce5e170a7' + url 'http://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' - - # see: https://sourceforge.net/tracker/?func=detail&aid=3486838&group_id=120000&atid=685683 - inreplace 'configure', '--no-var-tracking', '' if ENV.compiler == :clang - system "./configure", "--prefix=#{prefix}", "--enable-gc=#{HOMEBREW_PREFIX}", "--with-latex=#{texmfhome}/tex/latex", @@ -51,33 +50,19 @@ class Asymptote < Formula end def caveats; <<-EOS.undent - 1) 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" - - - 2) If you want to have Asymptote compiled with support for fftw or gsl - (fast fourier transforms or the GNU Scientific Library) they must be - manually installed first: + This formula links the latest version of the Asymptote LaTeX and ConTeXt + packages into: - brew install fftw - brew install gsl + #{HOMEBREW_PREFIX}/share/texmf - They are not compiled by default because they take a long time to compile - and they are not required by most users. (And they're not included in the - TeX Live build of Asymptote.) + 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" - 3) If you wish to use xasy, you must first install the Python Imaging - Library (PIL): + If you wish to use xasy, you must first install the Python Imaging Library: - easy_install http://effbot.org/downloads/Imaging-1.1.7.tar.gz + easy_install http://effbot.org/downloads/Imaging-1.1.7.tar.gz EOS end end |
