frescobaldi 2.0.16

Bump version and containerize.

Closes Homebrew/homebrew#34940.
This commit is contained in:
Tim D. Smith 2014-12-12 16:28:29 -08:00
parent 962b2cc853
commit 29cffc78f3

View file

@ -2,8 +2,8 @@ require "formula"
class Frescobaldi < Formula
homepage "http://frescobaldi.org/"
url "https://github.com/wbsoft/frescobaldi/releases/download/v2.0.15/frescobaldi-2.0.15.tar.gz"
sha1 "e110ca2be338ca4fb9a0369c6f733dbdf731a027"
url "https://github.com/wbsoft/frescobaldi/releases/download/v2.0.16/frescobaldi-2.0.16.tar.gz"
sha1 "6b7e72def3f93aa9521d7a1cdb72399f1a5765c5"
option "without-launcher", "Don't build Mac .app launcher"
option "without-lilypond", "Don't install Lilypond"
@ -23,14 +23,28 @@ class Frescobaldi < Formula
end
def install
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
resource("python-poppler-qt4").stage do
system "python", "setup.py", "build"
system "python", "setup.py", "install"
system "python", *Language::Python.setup_install_args(libexec/"vendor")
end
system "python", "setup.py", "install", "--prefix=#{prefix}"
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"])
if build.with? "launcher"
system "python", "macosx/mac-app.py", "--force", "--version", version, "--script", bin/"frescobaldi"
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
end