frescobaldi 2.18.1
Closes Homebrew/homebrew#40106. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
0276b620a9
commit
b1ff458e30
1 changed files with 21 additions and 34 deletions
|
@ -1,39 +1,35 @@
|
|||
require "formula"
|
||||
|
||||
class Frescobaldi < Formula
|
||||
homepage "http://frescobaldi.org/"
|
||||
url "https://github.com/wbsoft/frescobaldi/releases/download/v2.18/frescobaldi-2.18.tar.gz"
|
||||
sha256 "6531a6425a0b0a471fb0845098e9c890e59d6379636ed79b4512a48599327d4b"
|
||||
url "https://github.com/wbsoft/frescobaldi/releases/download/v2.18.1/frescobaldi-2.18.1.tar.gz"
|
||||
sha256 "475bbb9aeed8009fdb7b0c53e4da78ce7a204b548d0af6d909b699c99e61d4c1"
|
||||
|
||||
option "without-launcher", "Don't build Mac .app launcher"
|
||||
option "without-lilypond", "Don't install Lilypond"
|
||||
option "with-lilypond", "Install Lilypond from Homebrew/tex"
|
||||
|
||||
depends_on :python if MacOS.version <= :snow_leopard
|
||||
depends_on "portmidi" => :optional
|
||||
depends_on "lilypond" => :optional
|
||||
depends_on "homebrew/tex/lilypond" => :optional
|
||||
|
||||
# python-poppler-qt4 dependencies
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "poppler" => "with-qt"
|
||||
depends_on "pyqt"
|
||||
depends_on "pkg-config" => :build
|
||||
|
||||
resource "python-poppler-qt4" do
|
||||
url "https://github.com/wbsoft/python-poppler-qt4/archive/v0.18.1.tar.gz"
|
||||
sha1 "584345ae2fae2e1d667222cafa404a241cf95a1f"
|
||||
sha256 "c6903c4b6ab71730ae2a1da9fb95830a83da82185b5ef6b8184b16c0cae908ba"
|
||||
end
|
||||
|
||||
resource "python-ly" do
|
||||
url "https://pypi.python.org/packages/source/p/python-ly/python-ly-0.9.1.tar.gz"
|
||||
sha1 "0c9eaab04484c99eeab645a66c19ab499afb2c1d"
|
||||
url "https://pypi.python.org/packages/source/p/python-ly/python-ly-0.9.2.tar.gz"
|
||||
sha256 "a231b8f8977966afff70a840fb5baa1d3d263d5a9565ca9a5b28c398307952af"
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
||||
resource("python-poppler-qt4").stage do
|
||||
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
||||
end
|
||||
resource("python-ly").stage do
|
||||
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
||||
%w[python-poppler-qt4 python-ly].each do |r|
|
||||
resource(r).stage do
|
||||
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
||||
end
|
||||
end
|
||||
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
|
||||
|
@ -42,29 +38,20 @@ class Frescobaldi < Formula
|
|||
|
||||
bin.install Dir[libexec/"bin/*"]
|
||||
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
||||
|
||||
if build.with? "launcher"
|
||||
system "python", "macosx/mac-app.py", "--force", "--version", version, "--script", libexec/"bin/frescobaldi"
|
||||
inreplace "dist/Frescobaldi.app/Contents/Resources/__boot__.py",
|
||||
"_path_inject(['#{libexec}/bin'])",
|
||||
"_path_inject(['#{libexec}/bin', '#{libexec}/lib/python2.7/site-packages', '#{libexec}/vendor/lib/python2.7/site-packages'])"
|
||||
prefix.install "dist/Frescobaldi.app"
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
system bin/"frescobaldi", "--version"
|
||||
end
|
||||
|
||||
def caveats
|
||||
s = <<-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
|
||||
return s
|
||||
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
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue