homebrew-core/Formula/lilypond.rb
Sven Axelsson f2e6c884dd Lilypond 2.14.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-05 18:41:39 -07:00

34 lines
907 B
Ruby

require 'formula'
class Lilypond < Formula
url 'http://download.linuxaudio.org/lilypond/sources/v2.14/lilypond-2.14.0.tar.gz'
homepage 'http://lilypond.org/'
md5 '6c08f7246ce79934ec8a41ae7bea05d9'
depends_on 'pkg-config' => :build
depends_on 'gettext'
depends_on 'pango'
depends_on 'guile'
depends_on 'ghostscript'
depends_on 'mftrace'
depends_on 'fontforge'
depends_on 'texinfo'
skip_clean :all
def install
gs = Formula.factory('ghostscript')
system "./configure", "--prefix=#{prefix}",
"--with-ncsb-dir=#{gs.share}/ghostscript/fonts/"
# Separate steps to ensure that lilypond's custom fonts are created.
system "make"
system "make install"
end
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