2009-11-25 21:29:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-11 06:13:01 +00:00
|
|
|
class Duplicity < Formula
|
2009-11-25 21:29:15 +00:00
|
|
|
homepage 'http://www.nongnu.org/duplicity/'
|
2013-02-20 00:19:17 +00:00
|
|
|
url 'http://code.launchpad.net/duplicity/0.6-series/0.6.21/+download/duplicity-0.6.21.tar.gz'
|
|
|
|
sha1 '8594666f5312a7b367ab80b979d70a5c45f1145b'
|
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
|
|
|
|
2013-01-26 17:57:12 +00:00
|
|
|
option :universal
|
|
|
|
|
2009-11-25 21:29:15 +00:00
|
|
|
def install
|
2013-01-26 17:57:12 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2011-03-11 06:13:01 +00:00
|
|
|
# Install mostly into libexec
|
|
|
|
system "python", "setup.py", "install",
|
|
|
|
"--prefix=#{prefix}",
|
2012-12-06 23:29:56 +00:00
|
|
|
"--install-lib=#{libexec}",
|
2011-03-29 23:35:25 +00:00
|
|
|
"--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
|
2012-02-15 05:36:58 +00:00
|
|
|
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
|
2009-11-25 21:29:15 +00:00
|
|
|
end
|