diff options
| author | Adam Vandenberg | 2011-03-10 22:13:01 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-10 22:13:01 -0800 |
| commit | 47385d494803a1d0e008e09e41af0ec03e0b725e (patch) | |
| tree | 665c8acb5b208615e26cc2d55268ac3671772b43 /Library/Formula | |
| parent | 0c29f2ad6f66667eabd7111b828232a7d0d67085 (diff) | |
| download | homebrew-47385d494803a1d0e008e09e41af0ec03e0b725e.tar.bz2 | |
duplicity 0.6.12
Also use a self-contained install method that doesn't require
editing PYTHONPATH.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/duplicity.rb | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/Library/Formula/duplicity.rb b/Library/Formula/duplicity.rb index de8520a32..a5e235b9b 100644 --- a/Library/Formula/duplicity.rb +++ b/Library/Formula/duplicity.rb @@ -1,24 +1,26 @@ require 'formula' -class Duplicity <Formula - url 'http://code.launchpad.net/duplicity/0.6-series/0.6.11/+download/duplicity-0.6.11.tar.gz' +class Duplicity < Formula + url 'http://code.launchpad.net/duplicity/0.6-series/0.6.12/+download/duplicity-0.6.12.tar.gz' homepage 'http://www.nongnu.org/duplicity/' - md5 '1116be7aababa467336eac2092f66ab7' + md5 '9b84c984054550bbb2ba29b553567b7b' depends_on 'librsync' depends_on 'gnupg' def install ENV.universal_binary - system "python", "setup.py", "install", "--prefix=#{prefix}" - end + # Install mostly into libexec + system "python", "setup.py", "install", + "--prefix=#{prefix}", + "--install-purelib=#{libexec}", + "--install-platlib=#{libexec}" - def caveats - <<-EOS.undent - If you are using a non-Homebrew-built Python, you may need to add: - #{HOMEBREW_PREFIX}/lib/pythonX.Y/site-packages - to your PYTHONPATH, where "X.Y" was the version of Python this - formula was built against. - EOS + # 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 |
