From 466f1b08ea33b24ff872ee4e43b1137bcd5761d1 Mon Sep 17 00:00:00 2001 From: Brett Koonce Date: Wed, 5 Feb 2014 08:22:27 -0600 Subject: [PATCH] duplicity 0.6.23 Include pip lockfile/paramiko dependencies. Closes Homebrew/homebrew#26393. Closes Homebrew/homebrew#26417. --- Formula/duplicity.rb | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Formula/duplicity.rb b/Formula/duplicity.rb index b30f994b2ece8..6e56d3fa8eee5 100644 --- a/Formula/duplicity.rb +++ b/Formula/duplicity.rb @@ -2,8 +2,8 @@ class Duplicity < Formula homepage 'http://www.nongnu.org/duplicity/' - url 'http://code.launchpad.net/duplicity/0.6-series/0.6.22/+download/duplicity-0.6.22.tar.gz' - sha1 'afa144f444148b67d7649b32b80170d917743783' + url 'http://code.launchpad.net/duplicity/0.6-series/0.6.23/+download/duplicity-0.6.23.tar.gz' + sha1 '0b8664d55c24957b3b19e903c0d69673f2bfa166' depends_on :python depends_on 'librsync' @@ -11,8 +11,24 @@ class Duplicity < Formula option :universal + resource 'lockfile' do + url 'https://pypi.python.org/packages/source/l/lockfile/lockfile-0.9.1.tar.gz' + sha1 '9870cc7e7d4b23f0b6c39cf6ba597c87871ac6de' + end + + resource 'paramiko' do + url 'https://pypi.python.org/packages/source/p/paramiko/paramiko-1.12.1.tar.gz' + sha1 '3809737533b3055b9822a86bee6bd1629144204d' + end + def install ENV.universal_binary if build.universal? + + ENV.prepend_create_path 'PYTHONPATH', libexec+'lib/python2.7/site-packages' + install_args = [ "setup.py", "install", "--prefix=#{libexec}" ] + resource('lockfile').stage { system "python", *install_args } + resource('paramiko').stage { system "python", *install_args } + system "python", "setup.py", "install", "--prefix=#{prefix}" bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])