2010-05-16 18:35:52 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class RdiffBackup < Formula
|
2010-05-16 18:35:52 +00:00
|
|
|
homepage 'http://rdiff-backup.nongnu.org/'
|
2012-02-13 00:50:29 +00:00
|
|
|
url 'http://savannah.nongnu.org/download/rdiff-backup/rdiff-backup-1.2.8.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '14ffe4f5b46a8a96ded536c1d03ae5e85faae318'
|
2010-05-16 18:35:52 +00:00
|
|
|
|
|
|
|
depends_on 'librsync'
|
|
|
|
|
|
|
|
def install
|
2011-03-19 05:55:32 +00:00
|
|
|
# Find the arch for the Python we are building against.
|
|
|
|
# We remove 'ppc' support, so we can pass Intel-optimized CFLAGS.
|
|
|
|
archs = archs_for_command("python")
|
2011-03-19 16:50:26 +00:00
|
|
|
archs.remove_ppc!
|
2012-01-17 04:36:14 +00:00
|
|
|
archs.delete :x86_64 if Hardware.is_32_bit?
|
2011-03-19 16:50:26 +00:00
|
|
|
ENV['ARCHFLAGS'] = archs.as_arch_flags
|
2011-03-19 05:55:32 +00:00
|
|
|
|
2010-05-16 18:35:52 +00:00
|
|
|
system "python", "setup.py", "--librsync-dir=#{prefix}", "build"
|
|
|
|
|
|
|
|
libexec.install Dir['build/lib.macosx*/rdiff_backup']
|
|
|
|
libexec.install Dir['build/scripts-*/*']
|
|
|
|
man1.install Dir['*.1']
|
2012-02-13 00:50:29 +00:00
|
|
|
bin.install_symlink Dir["#{libexec}/rdiff-backup*"]
|
2010-05-16 18:35:52 +00:00
|
|
|
end
|
|
|
|
end
|