diff options
| author | Geoff Nixon | 2015-02-21 02:13:45 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-24 09:53:36 +0100 |
| commit | 7d519430911a1bea712a50348c4a06eb50fa7e7b (patch) | |
| tree | d1e6ee9adf242b3a8765a22db56f6e4720cc5045 | |
| parent | 7a490099c52539dea928730cec2c989b31e822f2 (diff) | |
| download | homebrew-7d519430911a1bea712a50348c4a06eb50fa7e7b.tar.bz2 | |
lilypond: use superenv and clang.
Closes #37021.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/lilypond.rb | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/Library/Formula/lilypond.rb b/Library/Formula/lilypond.rb index 9af44550c..6b2cdac2c 100644 --- a/Library/Formula/lilypond.rb +++ b/Library/Formula/lilypond.rb @@ -1,5 +1,3 @@ -require "formula" - class Lilypond < Formula homepage "http://lilypond.org/" url "http://download.linuxaudio.org/lilypond/sources/v2.18/lilypond-2.18.2.tar.gz" @@ -17,8 +15,6 @@ class Lilypond < Formula sha1 "548d6927aeda332b117f8fc5e4e82c39a05704f9" end - env :std - option "with-doc", "Build documentation in addition to binaries (may require several hours)." # Dependencies for LilyPond @@ -56,21 +52,17 @@ class Lilypond < Formula depends_on "texi2html" end - fails_with :clang do - cause "Strict C99 compliance error in a pointer conversion." - end - def install # The contents of the following block are taken from the guile18 formula # in homebrew/versions. resource("guile18").stage do - system "./configure", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--with-libreadline-prefix=#{Formula["readline"].opt_prefix}" - system "make", "install" - # A really messed up workaround required on OS X --mkhl - lib.cd { Dir["*.dylib"].each {|p| ln_sf p, File.basename(p, ".dylib")+".so" }} - ENV.prepend_path "PATH", "#{bin}" + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--with-libreadline-prefix=#{Formula["readline"].opt_prefix}" + system "make", "install" + # A really messed up workaround required on OS X --mkhl + lib.cd { Dir["*.dylib"].each { |p| ln_sf p, File.basename(p, ".dylib")+".so" } } + ENV.prepend_path "PATH", "#{bin}" end gs = Formula["ghostscript"] @@ -83,13 +75,13 @@ class Lilypond < Formula system "./configure", *args # Separate steps to ensure that lilypond's custom fonts are created. - system "make all" + system "make", "all" system "make", "install" # Build documentation if requested. if build.with? "doc" - system "make doc" - system "make install-doc" + system "make", "doc" + system "make", "install-doc" end end |
