2013-09-12 20:34:44 +00:00
|
|
|
class Frescobaldi < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "LilyPond sheet music text editor"
|
2013-09-12 20:34:44 +00:00
|
|
|
homepage "http://frescobaldi.org/"
|
2015-05-26 18:01:24 +00:00
|
|
|
url "https://github.com/wbsoft/frescobaldi/releases/download/v2.18.1/frescobaldi-2.18.1.tar.gz"
|
|
|
|
sha256 "475bbb9aeed8009fdb7b0c53e4da78ce7a204b548d0af6d909b699c99e61d4c1"
|
2013-09-12 20:34:44 +00:00
|
|
|
|
2015-05-27 10:33:41 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "2b11cbd21fef365684ec0be8543a557fbc943ce9832b5c2b7b5204a081de74aa" => :yosemite
|
|
|
|
sha256 "c592d71f41e66f3f5115c8eac982344fa903eff02a7e3a011852a5ee3e39d968" => :mavericks
|
|
|
|
sha256 "cc6e9b3a940690ae225a157f4a0d95aec4db46f0ccf78442a99ae941f7a358a0" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-05-26 18:01:24 +00:00
|
|
|
option "with-lilypond", "Install Lilypond from Homebrew/tex"
|
2013-09-12 20:34:44 +00:00
|
|
|
|
2014-06-17 13:10:31 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
2015-04-27 16:07:34 +00:00
|
|
|
depends_on "portmidi" => :optional
|
2015-05-26 18:01:24 +00:00
|
|
|
depends_on "homebrew/tex/lilypond" => :optional
|
2013-09-12 20:34:44 +00:00
|
|
|
|
|
|
|
# python-poppler-qt4 dependencies
|
2015-05-26 18:01:24 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-11-14 20:35:08 +00:00
|
|
|
depends_on "poppler" => "with-qt"
|
2013-09-12 20:34:44 +00:00
|
|
|
depends_on "pyqt"
|
|
|
|
|
|
|
|
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"
|
2015-05-26 18:01:24 +00:00
|
|
|
sha256 "c6903c4b6ab71730ae2a1da9fb95830a83da82185b5ef6b8184b16c0cae908ba"
|
2013-09-12 20:34:44 +00:00
|
|
|
end
|
|
|
|
|
2015-04-27 16:07:34 +00:00
|
|
|
resource "python-ly" do
|
2015-05-26 18:01:24 +00:00
|
|
|
url "https://pypi.python.org/packages/source/p/python-ly/python-ly-0.9.2.tar.gz"
|
|
|
|
sha256 "a231b8f8977966afff70a840fb5baa1d3d263d5a9565ca9a5b28c398307952af"
|
2015-04-27 16:07:34 +00:00
|
|
|
end
|
|
|
|
|
2013-09-12 20:34:44 +00:00
|
|
|
def install
|
2014-12-13 00:28:29 +00:00
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
2015-05-26 18:01:24 +00:00
|
|
|
%w[python-poppler-qt4 python-ly].each do |r|
|
|
|
|
resource(r).stage do
|
|
|
|
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
|
|
|
end
|
2015-04-27 16:07:34 +00:00
|
|
|
end
|
2014-12-13 00:28:29 +00:00
|
|
|
|
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
|
|
|
|
rm "setup.cfg"
|
|
|
|
system "python", *Language::Python.setup_install_args(libexec)
|
|
|
|
|
|
|
|
bin.install Dir[libexec/"bin/*"]
|
|
|
|
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
2013-09-12 20:34:44 +00:00
|
|
|
end
|
2014-12-13 00:28:29 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"frescobaldi", "--version"
|
|
|
|
end
|
2015-04-27 16:07:34 +00:00
|
|
|
|
2015-05-26 18:01:24 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
By default, a splash screen is shown on startup; this causes the main
|
|
|
|
window not to show until the application icon on the dock is clicked
|
|
|
|
(Cmd-Tab application switching does not appear to work).
|
|
|
|
|
|
|
|
You may want to disable the splash screen in the preferences to
|
|
|
|
solve this issue. See:
|
|
|
|
https://github.com/wbsoft/frescobaldi/issues/428
|
|
|
|
EOS
|
2015-04-27 16:07:34 +00:00
|
|
|
end
|
2013-09-12 20:34:44 +00:00
|
|
|
end
|