From 7b340ce1549dee2be85771de46df780d319e7865 Mon Sep 17 00:00:00 2001 From: Tim D. Smith Date: Fri, 12 Dec 2014 16:28:29 -0800 Subject: frescobaldi 2.0.16 Bump version and containerize. Closes #34940. --- Library/Formula/frescobaldi.rb | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'Library') diff --git a/Library/Formula/frescobaldi.rb b/Library/Formula/frescobaldi.rb index 4a46a9189..477d6ef06 100644 --- a/Library/Formula/frescobaldi.rb +++ b/Library/Formula/frescobaldi.rb @@ -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 -- cgit v1.2.3