From 3a7afbca7cd16ec5ca6ec53294e009d12763b164 Mon Sep 17 00:00:00 2001 From: yrammos Date: Wed, 3 Jul 2013 22:10:37 +0300 Subject: 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 --- Library/Formula/lilypond.rb | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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}", -- cgit v1.2.3