2013-09-12 20:34:44 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Frescobaldi < Formula
|
|
|
|
homepage "http://frescobaldi.org/"
|
2014-03-08 23:54:18 +00:00
|
|
|
url "https://github.com/wbsoft/frescobaldi/releases/download/v2.0.15/frescobaldi-2.0.15.tar.gz"
|
|
|
|
sha1 "e110ca2be338ca4fb9a0369c6f733dbdf731a027"
|
2013-09-12 20:34:44 +00:00
|
|
|
|
|
|
|
option "without-launcher", "Don't build Mac .app launcher"
|
|
|
|
option "without-lilypond", "Don't install Lilypond"
|
|
|
|
|
2014-06-17 13:10:31 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
2013-09-12 20:34:44 +00:00
|
|
|
depends_on "portmidi" => :recommended
|
|
|
|
depends_on "lilypond" => :recommended
|
|
|
|
|
|
|
|
# python-poppler-qt4 dependencies
|
|
|
|
depends_on "poppler" => "with-qt4"
|
|
|
|
depends_on "pyqt"
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
|
|
|
|
resource "python-poppler-qt4" do
|
2014-03-08 23:54:18 +00:00
|
|
|
url "https://github.com/wbsoft/python-poppler-qt4/archive/v0.18.1.tar.gz"
|
|
|
|
sha1 "584345ae2fae2e1d667222cafa404a241cf95a1f"
|
2013-09-12 20:34:44 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2014-01-24 04:32:47 +00:00
|
|
|
resource("python-poppler-qt4").stage do
|
|
|
|
system "python", "setup.py", "build"
|
|
|
|
system "python", "setup.py", "install"
|
2013-09-12 20:34:44 +00:00
|
|
|
end
|
2014-01-24 04:32:47 +00:00
|
|
|
system "python", "setup.py", "install", "--prefix=#{prefix}"
|
2013-09-12 20:34:44 +00:00
|
|
|
if build.with? "launcher"
|
2014-03-08 23:54:18 +00:00
|
|
|
system "python", "macosx/mac-app.py", "--force", "--version", version, "--script", bin/"frescobaldi"
|
|
|
|
prefix.install "dist/Frescobaldi.app"
|
2013-09-12 20:34:44 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|