Skip to content

Instantly share code, notes, and snippets.

@chrispoole643
Created June 24, 2011 13:11
Show Gist options
  • Save chrispoole643/1044734 to your computer and use it in GitHub Desktop.
Save chrispoole643/1044734 to your computer and use it in GitHub Desktop.
Duplicity 0.6.14
require 'formula'
class Duplicity < Formula
url 'http://code.launchpad.net/duplicity/0.6-series/0.6.14/+download/duplicity-0.6.14.tar.gz'
homepage 'http://www.nongnu.org/duplicity/'
md5 '09747eb1430a3f16888a661e5acbf28d'
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment