homebrew-core/Formula/duplicity.rb

28 lines
848 B
Ruby
Raw Normal View History

require 'formula'
class Duplicity < Formula
homepage 'http://www.nongnu.org/duplicity/'
2012-05-31 18:01:20 +00:00
url 'http://code.launchpad.net/duplicity/0.6-series/0.6.19/+download/duplicity-0.6.19.tar.gz'
sha1 '07d72680d6b4850101a436f679793521a51f41ac'
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}"
2010-07-04 05:18:26 +00:00
# Shift files around to avoid needing a PYTHONPATH
mv bin+'duplicity', bin+'duplicity.py'
mv Dir[bin+'*'], libexec
2012-02-12 19:38:49 +00:00
bin.install_symlink "#{libexec}/duplicity.py" => "duplicity"
bin.install_symlink "#{libexec}/rdiffdir"
2010-07-04 05:18:26 +00:00
end
end