diff options
| author | yrammos | 2013-07-03 22:10:37 +0300 |
|---|---|---|
| committer | Adam Vandenberg | 2013-07-04 08:24:29 -0700 |
| commit | 3a7afbca7cd16ec5ca6ec53294e009d12763b164 (patch) | |
| tree | 9537ce5bf262d0acc3259b5e539348ee514c6c65 /Library | |
| parent | e61fdd5253ea339800acc55315919985583f8ef3 (diff) | |
| download | homebrew-3a7afbca7cd16ec5ca6ec53294e009d12763b164.tar.bz2 | |
lilypond: vendor an older texinfo
Due to an acknowledged LilyPond bug, the latest version of Texinfo (5.1)
breaks compilation with the --with-doc option. As a workaround, we now install
the older Texinfo 4.13a using a sub-formula.
Closes #20998.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/lilypond.rb | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/Library/Formula/lilypond.rb b/Library/Formula/lilypond.rb index 5eb17e140..4ef697aa9 100644 --- a/Library/Formula/lilypond.rb +++ b/Library/Formula/lilypond.rb @@ -1,5 +1,12 @@ require 'formula' +# Necessary until upstream resolves the incompatibility issue with texinfo 5 +class Texinfo4 < Formula + homepage 'http://www.gnu.org/software/texinfo/' + url 'http://ftp.gnu.org/gnu/texinfo/texinfo-4.13a.tar.gz' + sha1 'a1533cf8e03ea4fa6c443b73f4c85e4da04dead0' +end + class Lilypond < Formula homepage 'http://lilypond.org/' url 'http://download.linuxaudio.org/lilypond/sources/v2.16/lilypond-2.16.2.tar.gz' @@ -23,7 +30,8 @@ class Lilypond < Formula depends_on 'ghostscript' depends_on 'mftrace' depends_on 'fontforge' => ["with-x", "with-cairo"] - depends_on 'texinfo' + # Uncomment the following line once upstream resolve the aforementioned issue: + # depends_on 'texinfo' depends_on 'fondu' # Add dependency on keg-only Homebrew 'flex' because Apple bundles an older and incompatible # version of the library with 10.7 at least, seems slow keeping up with updates, @@ -44,6 +52,17 @@ class Lilypond < Formula end def install + # This texinfo4 business will be no longer needed, either, + # once the aforementioned issue is resolved. + texinfo4_prefix = libexec+'texinfo4' + Texinfo4.new.brew do + system "./configure", "--disable-dependency-tracking", + "--disable-install-warnings", + "--prefix=#{texinfo4_prefix}" + system "make CXX=#{ENV.cxx} install" + end + ENV.prepend_path 'PATH', "#{texinfo4_prefix}/bin" + gs = Formula.factory('ghostscript') args = ["--prefix=#{prefix}", |
