aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/duplicity.rb
blob: a5abe01fac4b1d4ada2518a72b8f4f5d3e3a3656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class Duplicity < Formula
  homepage 'http://www.nongnu.org/duplicity/'
  url 'http://code.launchpad.net/duplicity/0.6-series/0.6.21/+download/duplicity-0.6.21.tar.gz'
  sha1 '8594666f5312a7b367ab80b979d70a5c45f1145b'

  depends_on :python
  depends_on 'librsync'
  depends_on 'gnupg'

  option :universal

  def install
    python do
      ENV.universal_binary if build.universal?
      # Install mostly into libexec
      system python, "setup.py", "install", "--prefix=#{prefix}"
    end
  end
end