homebrew-core/Formula/librsync.rb

23 lines
691 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Librsync < Formula
2010-09-09 21:25:57 +00:00
url 'http://downloads.sourceforge.net/project/librsync/librsync/0.9.7/librsync-0.9.7.tar.gz'
homepage 'http://librsync.sourceforge.net/'
md5 '24cdb6b78f45e0e83766903fd4f6bc84'
def install
ENV.universal_binary
2010-07-04 05:17:12 +00:00
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-shared"
inreplace 'libtool' do |s|
s.gsub! /compiler_flags=$/, "compiler_flags=' #{ENV.cflags}'"
s.gsub! /linker_flags=$/, "linker_flags=' #{ENV.ldflags}'"
end
system "make install"
end
end