aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2014-11-10 18:50:01 -0800
committerTim D. Smith2014-11-10 20:12:37 -0800
commit090412decdbdf7818b136caf9cc6a21538d6b431 (patch)
treea80c3a012c771222896b54e839c4995219726312 /Library
parente006375fad7df05c28c53ef9aad41af335ff2dde (diff)
downloadhomebrew-090412decdbdf7818b136caf9cc6a21538d6b431.tar.bz2
jrnl 1.9.7
Closes #34088. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/jrnl.rb20
1 files changed, 8 insertions, 12 deletions
diff --git a/Library/Formula/jrnl.rb b/Library/Formula/jrnl.rb
index ab98a88ed..0e8cc4bd7 100644
--- a/Library/Formula/jrnl.rb
+++ b/Library/Formula/jrnl.rb
@@ -2,9 +2,8 @@ require "formula"
class Jrnl < Formula
homepage "http://maebert.github.io/jrnl/"
- url "https://github.com/maebert/jrnl/archive/1.9.6.tar.gz"
- sha1 "925571cd9ba85803a291d0a0816dbf79882e45dd"
- revision 2
+ url "https://github.com/maebert/jrnl/archive/1.9.7.tar.gz"
+ sha1 "65914c66762ded186201a526b19e702dd35b0939"
bottle do
cellar :any
@@ -52,22 +51,19 @@ class Jrnl < Formula
def install
- ENV.prepend_create_path "PYTHONPATH", "#{libexec}/lib/python2.7/site-packages"
+ ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
%w[six pycrypto keyring parsedatetime python-dateutil pytz tzlocal].each do |r|
- resource(r).stage do
- system "python", "setup.py", "install", "--prefix=#{libexec}"
- end
+ resource(r).stage { Language::Python.setup_install "python", libexec/"vendor" }
end
- ENV.prepend_create_path "PYTHONPATH", "#{lib}/python2.7/site-packages"
- system "python", "setup.py", "install", "--prefix=#{prefix}",
- "--single-version-externally-managed", "--record=installed.txt"
+ ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
+ Language::Python.setup_install "python", libexec
- bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
+ bin.install Dir["#{libexec}/bin/*"]
+ bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
test do
system "#{bin}/jrnl", "-v"
- assert_equal 0, $?.exitstatus
end
end