2014-05-21 06:43:02 +00:00
|
|
|
require "formula"
|
2009-11-25 21:29:15 +00:00
|
|
|
|
2011-03-11 06:13:01 +00:00
|
|
|
class Duplicity < Formula
|
2014-05-21 06:43:02 +00:00
|
|
|
homepage "http://www.nongnu.org/duplicity/"
|
|
|
|
url "http://code.launchpad.net/duplicity/0.6-series/0.6.24/+download/duplicity-0.6.24.tar.gz"
|
|
|
|
sha1 "1d0bab80cb9465080179307d969e292c7145c714"
|
2009-11-25 21:29:15 +00:00
|
|
|
|
2014-08-05 08:48:50 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "dda9a29d50ff2a600dcf09d464508c2f73dcadc3" => :mavericks
|
|
|
|
sha1 "bb80b982fe70b9ef9376808ae232c4e2a010bf56" => :mountain_lion
|
|
|
|
sha1 "e0834d616e404ce6fb6605b8a9524d329b8bce6a" => :lion
|
|
|
|
end
|
|
|
|
|
2014-04-30 22:37:44 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
2014-05-21 06:43:02 +00:00
|
|
|
depends_on "librsync"
|
|
|
|
depends_on "gnupg"
|
2009-11-25 21:29:15 +00:00
|
|
|
|
2013-01-26 17:57:12 +00:00
|
|
|
option :universal
|
|
|
|
|
2014-05-21 06:43:02 +00:00
|
|
|
resource "lockfile" do
|
|
|
|
url "https://pypi.python.org/packages/source/l/lockfile/lockfile-0.9.1.tar.gz"
|
|
|
|
sha1 "9870cc7e7d4b23f0b6c39cf6ba597c87871ac6de"
|
2014-02-05 14:22:27 +00:00
|
|
|
end
|
|
|
|
|
2014-05-21 06:43:02 +00:00
|
|
|
resource "paramiko" do
|
|
|
|
url "https://pypi.python.org/packages/source/p/paramiko/paramiko-1.14.0.tar.gz"
|
|
|
|
sha1 "54a34873b09c3dd3ea7090caa914908b3e0f1822"
|
2014-02-05 14:22:27 +00:00
|
|
|
end
|
|
|
|
|
2014-08-04 19:37:01 +00:00
|
|
|
resource "boto" do
|
|
|
|
url "https://pypi.python.org/packages/source/b/boto/boto-2.32.0.tar.gz"
|
|
|
|
sha1 "3600168823a0c37051daf24c5147e1a9ae73d28d"
|
|
|
|
end
|
|
|
|
|
2014-01-04 13:05:14 +00:00
|
|
|
def install
|
2014-04-30 22:37:44 +00:00
|
|
|
ENV["PYTHONPATH"] = lib+"python2.7/site-packages"
|
|
|
|
|
2014-01-04 13:05:14 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2014-02-05 14:22:27 +00:00
|
|
|
|
2014-05-21 06:43:02 +00:00
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages"
|
2014-02-05 14:22:27 +00:00
|
|
|
install_args = [ "setup.py", "install", "--prefix=#{libexec}" ]
|
2014-05-21 06:43:02 +00:00
|
|
|
resource("lockfile").stage { system "python", *install_args }
|
|
|
|
resource("paramiko").stage { system "python", *install_args }
|
2014-08-04 19:37:01 +00:00
|
|
|
resource("boto").stage { system "python", *install_args }
|
2014-02-05 14:22:27 +00:00
|
|
|
|
2014-01-04 13:05:14 +00:00
|
|
|
system "python", "setup.py", "install", "--prefix=#{prefix}"
|
|
|
|
|
2014-05-21 06:43:02 +00:00
|
|
|
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
|
2014-05-20 04:27:10 +00:00
|
|
|
system bin/"duplicity", "--version"
|
2010-07-04 05:18:26 +00:00
|
|
|
end
|
2009-11-25 21:29:15 +00:00
|
|
|
end
|