2009-11-25 21:29:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-11 06:13:01 +00:00
|
|
|
class Duplicity < Formula
|
2009-11-25 21:29:15 +00:00
|
|
|
homepage 'http://www.nongnu.org/duplicity/'
|
2014-02-05 14:22:27 +00:00
|
|
|
url 'http://code.launchpad.net/duplicity/0.6-series/0.6.23/+download/duplicity-0.6.23.tar.gz'
|
|
|
|
sha1 '0b8664d55c24957b3b19e903c0d69673f2bfa166'
|
2009-11-25 21:29:15 +00:00
|
|
|
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python
|
2009-11-25 21:29:15 +00:00
|
|
|
depends_on 'librsync'
|
2010-07-08 22:41:08 +00:00
|
|
|
depends_on 'gnupg'
|
2009-11-25 21:29:15 +00:00
|
|
|
|
2013-01-26 17:57:12 +00:00
|
|
|
option :universal
|
|
|
|
|
2014-02-05 14:22:27 +00:00
|
|
|
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
|
|
|
|
|
2014-01-04 13:05:14 +00:00
|
|
|
def install
|
|
|
|
ENV.universal_binary if build.universal?
|
2014-02-05 14:22:27 +00:00
|
|
|
|
|
|
|
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 }
|
|
|
|
|
2014-01-04 13:05:14 +00:00
|
|
|
system "python", "setup.py", "install", "--prefix=#{prefix}"
|
|
|
|
|
|
|
|
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
|
2013-12-14 19:45:33 +00:00
|
|
|
end
|
|
|
|
|
2014-01-04 13:05:14 +00:00
|
|
|
test do
|
|
|
|
system "duplicity", "--version"
|
2010-07-04 05:18:26 +00:00
|
|
|
end
|
2009-11-25 21:29:15 +00:00
|
|
|
end
|