2010-01-22 05:13:03 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Texinfo < Formula
|
2011-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/texinfo/texinfo-4.13a.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/texinfo/texinfo-4.13a.tar.gz'
|
2010-01-22 05:13:03 +00:00
|
|
|
homepage 'http://www.gnu.org/software/texinfo/'
|
|
|
|
md5 '71ba711519209b5fb583fed2b3d86fcb'
|
|
|
|
|
2011-03-16 05:01:31 +00:00
|
|
|
keg_only :provided_by_osx, <<-EOS.undent
|
|
|
|
Software that uses TeX, such as lilypond and octave, require a newer version
|
|
|
|
of these files.
|
|
|
|
EOS
|
2010-01-22 05:13:03 +00:00
|
|
|
|
|
|
|
def install
|
2010-06-10 23:00:06 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2010-01-22 05:13:03 +00:00
|
|
|
"--disable-install-warnings",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
|
|
|
|
# The install warns about needing to install texinfo.tex and some other support files.
|
|
|
|
# The texinfo.tex in tex-live 2008 is identical to texinfo's version, so we can ignore this.
|
|
|
|
|
|
|
|
# However, it complains about installing epsf.tex in TEXMF/tex/generic/dvips, so let's do that...
|
|
|
|
# This somewhat breaks the homebrew philosophy, I am sorry.
|
|
|
|
# Also, we don't depend on tex-live, but this directory only exists if it is installed.
|
|
|
|
if File.exist? "#{HOMEBREW_PREFIX}/share/texmf-dist/" then
|
|
|
|
system "cp", "doc/epsf.tex", "#{HOMEBREW_PREFIX}/share/texmf-dist/tex/generic/dvips/"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|