homebrew-core/Formula/duplicity.rb
2012-02-12 20:08:57 -08:00

27 lines
863 B
Ruby

require 'formula'
class Duplicity < Formula
homepage 'http://www.nongnu.org/duplicity/'
url 'http://launchpad.net/duplicity/0.6-series/0.6.17/+download/duplicity-0.6.17.tar.gz'
md5 '36423ab4e3b9aa90c5c44d9fa93fba0f'
depends_on 'librsync'
depends_on 'gnupg'
def install
ENV.universal_binary
# Install mostly into libexec
system "python", "setup.py", "install",
"--prefix=#{prefix}",
"--install-purelib=#{libexec}",
"--install-platlib=#{libexec}",
"--install-scripts=#{bin}"
# Shift files around to avoid needing a PYTHONPATH
system "mv", "#{bin}/duplicity", "#{bin}/duplicity.py"
system "mv", "#{bin}/*", "#{libexec}"
bin.install_symlink "#{libexec}/duplicity.py" => "duplicity"
bin.install_symlink "#{libexec}/rdiffdir"
end
end