2010-01-22 05:13:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Lilypond <Formula
|
2010-10-16 21:10:23 +00:00
|
|
|
url 'http://download.linuxaudio.org/lilypond/sources/v2.13/lilypond-2.13.36.tar.gz'
|
2010-01-22 05:13:42 +00:00
|
|
|
homepage 'http://lilypond.org/'
|
2010-10-16 21:10:23 +00:00
|
|
|
md5 'd19f2cdc2b07b3a156676074cbbd0dfe'
|
2010-01-22 05:13:42 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-01-22 05:13:42 +00:00
|
|
|
# The guile version must be < 1.9
|
|
|
|
depends_on 'guile'
|
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'ghostscript'
|
|
|
|
depends_on 'pango'
|
|
|
|
depends_on 'mftrace'
|
|
|
|
depends_on 'fontforge'
|
|
|
|
depends_on 'texinfo'
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
skip_clean :all
|
2010-01-22 05:13:42 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--with-ncsb-dir=#{Formula.factory('ghostscript').share}/ghostscript/fonts/"
|
|
|
|
|
|
|
|
# Separate steps to ensure that lilypond's custom fonts are created.
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
"Lilypond requires a version of TeX, such as TeX Live or MacTeX, prior to installing."
|
|
|
|
end
|
|
|
|
end
|