2009-11-25 21:29:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-11 06:13:01 +00:00
|
|
|
class Duplicity < Formula
|
2011-06-29 23:30:41 +00:00
|
|
|
url 'http://launchpad.net/duplicity/0.6-series/0.6.14/+download/duplicity-0.6.14.tar.gz'
|
2009-11-25 21:29:15 +00:00
|
|
|
homepage 'http://www.nongnu.org/duplicity/'
|
2011-06-29 23:30:41 +00:00
|
|
|
md5 '09747eb1430a3f16888a661e5acbf28d'
|
2009-11-25 21:29:15 +00:00
|
|
|
|
|
|
|
depends_on 'librsync'
|
2010-07-08 22:41:08 +00:00
|
|
|
depends_on 'gnupg'
|
2009-11-25 21:29:15 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.universal_binary
|
2011-03-11 06:13:01 +00:00
|
|
|
# Install mostly into libexec
|
|
|
|
system "python", "setup.py", "install",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--install-purelib=#{libexec}",
|
2011-03-29 23:35:25 +00:00
|
|
|
"--install-platlib=#{libexec}",
|
|
|
|
"--install-scripts=#{bin}"
|
2010-07-04 05:18:26 +00:00
|
|
|
|
2011-03-11 06:13:01 +00:00
|
|
|
# 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"
|
2010-07-04 05:18:26 +00:00
|
|
|
end
|
2009-11-25 21:29:15 +00:00
|
|
|
end
|