blob: 0f26540baa6f60bf9ee6bd05fbf65b0de101bb05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
require 'formula'
class Lilypond < Formula
url 'http://download.linuxaudio.org/lilypond/sources/v2.14/lilypond-2.14.2.tar.gz'
homepage 'http://lilypond.org/'
md5 '4053a19e03181021893981280feb9aaa'
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
abort caveats unless quiet_system "/usr/bin/which -s mpost"
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
|