homebrew-core/Formula/duplicity.rb
Neal Clark b21412b84c Update duplicity to 0.6.13
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-02 15:57:49 -07:00

27 lines
879 B
Ruby

require 'formula'
class Duplicity < Formula
url 'http://code.launchpad.net/duplicity/0.6-series/0.6.13/+download/duplicity-0.6.13.tar.gz'
homepage 'http://www.nongnu.org/duplicity/'
md5 'b3d627f35fc527b00121925840d5cca7'
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}"
# Symlink the executables
ln_s "#{libexec}/duplicity.py", "#{bin}/duplicity"
ln_s "#{libexec}/rdiffdir", "#{bin}/rdiffdir"
end
end