aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authornibbles 2bits2012-08-27 10:26:08 -0700
committerAdam Vandenberg2012-08-27 21:44:31 -0700
commit22527936a30bb622aaf553dbf9da176005808634 (patch)
tree7375e5197655c57da9efb886379205116aa3307e /Library/Formula
parent8aad6616d7b49913ced9beaffa8ba4ff1fd80cb3 (diff)
downloadhomebrew-22527936a30bb622aaf553dbf9da176005808634.tar.bz2
lilypond 2.16.0
Upgrade lilypond to 2.16.0. Still `fails_with :clang` Tested on 10.8 using XCode-4.4.1, system Python, and HB Python. Fixes #14460 Closes #14483. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/lilypond.rb30
1 files changed, 26 insertions, 4 deletions
diff --git a/Library/Formula/lilypond.rb b/Library/Formula/lilypond.rb
index 22f466c81..10d981b18 100644
--- a/Library/Formula/lilypond.rb
+++ b/Library/Formula/lilypond.rb
@@ -5,6 +5,10 @@ class TexInstalled < Requirement
A TeX/LaTeX installation is required to install.
You can obtain the TeX distribution for Mac OS X from:
http://www.tug.org/mactex/
+ After you install it, put its bin in your PATH and open a new Terminal tab.
+ You should also do this because MacTex installs with root ownership:
+ sudo chown -R $USER `brew --prefix`
+ That will change all the files and directories back to being owned by you.
EOS
end
def satisfied?
@@ -17,8 +21,8 @@ end
class Lilypond < Formula
homepage 'http://lilypond.org/'
- url 'http://download.linuxaudio.org/lilypond/sources/v2.14/lilypond-2.14.2.tar.gz'
- md5 '4053a19e03181021893981280feb9aaa'
+ url 'http://download.linuxaudio.org/lilypond/sources/v2.16/lilypond-2.16.0.tar.gz'
+ sha1 'b5edfdd1332a5cee94bd31c7b1e8b08909c0a068'
depends_on TexInstalled.new
depends_on 'pkg-config' => :build
@@ -29,16 +33,34 @@ class Lilypond < Formula
depends_on 'mftrace'
depends_on 'fontforge'
depends_on 'texinfo'
+ depends_on :x11
skip_clean :all
+ fails_with :clang do
+ build :all
+ cause 'Strict C99 compliance error in a pointer conversion.'
+ end
+
def install
gs = Formula.factory('ghostscript')
- system "./configure", "--prefix=#{prefix}",
+ system "./configure", "--prefix=#{prefix}", "--enable-rpath",
"--with-ncsb-dir=#{gs.share}/ghostscript/fonts/"
# Separate steps to ensure that lilypond's custom fonts are created.
- system "make"
+ system 'make all'
system "make install"
end
+
+ def test
+ mktemp do
+ (Pathname.pwd+'test.ly').write <<-EOS.undent
+ \\version "2.16.0"
+ \\header { title = "Do-Re-Mi" }
+ { c' d' e' }
+ EOS
+ lilykeg = Formula.factory('lilypond').linked_keg
+ system "#{lilykeg}/bin/lilypond test.ly && /usr/bin/qlmanage -p test.pdf"
+ end
+ end
end