homebrew-core/Formula/lilypond.rb

35 lines
908 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Lilypond < Formula
2011-03-06 00:20:53 +00:00
url 'http://download.linuxaudio.org/lilypond/sources/v2.13/lilypond-2.13.52.tar.gz'
homepage 'http://lilypond.org/'
2011-03-06 00:20:53 +00:00
md5 '662e18ca5a01d3357eda17efb4ae95ce'
depends_on 'pkg-config' => :build
depends_on 'gettext'
depends_on 'pango'
2011-03-06 00:20:53 +00:00
depends_on 'guile'
depends_on 'ghostscript'
depends_on 'mftrace'
depends_on 'fontforge'
depends_on 'texinfo'
skip_clean :all
def install
2011-03-06 00:20:53 +00:00
gs = Formula.factory('ghostscript')
system "./configure", "--prefix=#{prefix}",
2011-03-06 00:20:53 +00:00
"--with-ncsb-dir=#{gs.share}/ghostscript/fonts/"
# Separate steps to ensure that lilypond's custom fonts are created.
system "make"
system "make install"
end
2011-03-06 00:20:53 +00:00
def caveats; <<-EOS.undent
Lilypond requires a version of TeX, such as TeX Live or MacTeX, prior to installing.
Available at: http://www.tug.org/mactex/
EOS
end
end