aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2014-12-12 16:28:29 -0800
committerTim D. Smith2014-12-12 19:11:09 -0800
commit7b340ce1549dee2be85771de46df780d319e7865 (patch)
tree5478c6980483f0126cc1e826f950d62403429ddc /Library
parentd243310d18adafe198652c2820831149cb4e4e13 (diff)
downloadhomebrew-7b340ce1549dee2be85771de46df780d319e7865.tar.bz2
frescobaldi 2.0.16
Bump version and containerize. Closes #34940.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/frescobaldi.rb26
1 files changed, 20 insertions, 6 deletions
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