diff options
| author | Marnen Laibow-Koser | 2013-09-12 16:34:44 -0400 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-15 09:01:22 +0000 |
| commit | 47a81b276afc38880414e7b900570733fe9d074a (patch) | |
| tree | 6a2d110926f01eca4769613798dae66d19a5808d /Library/Formula/frescobaldi.rb | |
| parent | b79ac441b88f3c30bd7c871c259b23e48f28d949 (diff) | |
| download | homebrew-47a81b276afc38880414e7b900570733fe9d074a.tar.bz2 | |
frescobaldi 2.0.10 (new formula)
GUI for Lilypond music typesetter
Closes #22618.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/frescobaldi.rb')
| -rw-r--r-- | Library/Formula/frescobaldi.rb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Library/Formula/frescobaldi.rb b/Library/Formula/frescobaldi.rb new file mode 100644 index 000000000..f7de88a7b --- /dev/null +++ b/Library/Formula/frescobaldi.rb @@ -0,0 +1,50 @@ +require "formula" + +class Frescobaldi < Formula + homepage "http://frescobaldi.org/" + url "https://lilykde.googlecode.com/files/frescobaldi-2.0.10.tar.gz" + sha1 "17928c20fe3cda934cbff88872a1904a5b8994a3" + + option "without-launcher", "Don't build Mac .app launcher" + option "without-lilypond", "Don't install Lilypond" + + depends_on :python2 + depends_on "portmidi" => :recommended + depends_on "lilypond" => :recommended + depends_on "platypus" => :build if build.with? "launcher" + + # python-poppler-qt4 dependencies + depends_on "poppler" => "with-qt4" + depends_on "pyqt" + depends_on "pkg-config" => :build + + resource "python-poppler-qt4" do + url "https://python-poppler-qt4.googlecode.com/files/python-poppler-qt4-0.16.3.tar.gz" + sha1 "fe6aa650a1a917caeedd407ae0c428a5de9eefb8" + end + + def install + python do + resource("python-poppler-qt4").stage do + system "python", "setup.py", "build" + system "python", "setup.py", "install" + end + system "python", "setup.py", "install", "--prefix=#{prefix}" + end + if build.with? "launcher" + system "platypus", "-aFrescobaldi", "-oNone", + bin/"frescobaldi", bin/"Frescobaldi.app" + end + end + + def caveats + if build.with? "launcher" + <<-EOS.undent + To install the Mac OS X launcher application run: + brew linkapps (to install in ~/Applications) + or: + ln -s #{bin}/Frescobaldi.app /Applications + EOS + end + end +end |
