aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lilypond.rb
diff options
context:
space:
mode:
authorMax Howell2011-08-26 11:55:59 +0100
committerMax Howell2011-08-26 11:55:59 +0100
commit82d735c50ade65ce853b0d3eac73a7b50e408b54 (patch)
treeca97fade994db6ad0957c3f43b543940304812d1 /Library/Formula/lilypond.rb
parentc0710f74fc22feb5b70771416c722fa7806737bf (diff)
downloadhomebrew-82d735c50ade65ce853b0d3eac73a7b50e408b54.tar.bz2
Abort lilypond install if no Tex found
Fixes #7223.
Diffstat (limited to 'Library/Formula/lilypond.rb')
-rw-r--r--Library/Formula/lilypond.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/lilypond.rb b/Library/Formula/lilypond.rb
index 01c3c55ff..940587851 100644
--- a/Library/Formula/lilypond.rb
+++ b/Library/Formula/lilypond.rb
@@ -17,6 +17,8 @@ class Lilypond < Formula
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/"