2010-01-22 05:13:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-03-01 04:36:21 +00:00
|
|
|
class TexInstalled < Requirement
|
|
|
|
def message; <<-EOS.undent
|
|
|
|
A TeX/LaTeX installation is required to install.
|
|
|
|
You can obtain the TeX distribution for Mac OS X from:
|
|
|
|
http://www.tug.org/mactex/
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
def satisfied?
|
|
|
|
which 'mpost'
|
|
|
|
end
|
|
|
|
def fatal?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Lilypond < Formula
|
2010-01-22 05:13:42 +00:00
|
|
|
homepage 'http://lilypond.org/'
|
2012-03-01 04:36:21 +00:00
|
|
|
url 'http://download.linuxaudio.org/lilypond/sources/v2.14/lilypond-2.14.2.tar.gz'
|
2011-08-26 22:24:45 +00:00
|
|
|
md5 '4053a19e03181021893981280feb9aaa'
|
2010-01-22 05:13:42 +00:00
|
|
|
|
2012-03-01 04:36:21 +00:00
|
|
|
depends_on TexInstalled.new
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-01-22 05:13:42 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'pango'
|
2011-03-06 00:20:53 +00:00
|
|
|
depends_on 'guile'
|
|
|
|
depends_on 'ghostscript'
|
2010-01-22 05:13:42 +00:00
|
|
|
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
|
2011-03-06 00:20:53 +00:00
|
|
|
gs = Formula.factory('ghostscript')
|
2010-01-22 05:13:42 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2011-03-06 00:20:53 +00:00
|
|
|
"--with-ncsb-dir=#{gs.share}/ghostscript/fonts/"
|
2010-01-22 05:13:42 +00:00
|
|
|
|
|
|
|
# Separate steps to ensure that lilypond's custom fonts are created.
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|