homebrew-core/Formula/duplicity.rb
2014-01-04 13:19:21 +00:00

24 lines
592 B
Ruby

require 'formula'
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'
depends_on :python
depends_on 'librsync'
depends_on 'gnupg'
option :universal
def install
ENV.universal_binary if build.universal?
system "python", "setup.py", "install", "--prefix=#{prefix}"
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
end
test do
system "duplicity", "--version"
end
end