2009-11-25 21:29:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Librsync < Formula
|
2009-11-25 21:29:15 +00:00
|
|
|
homepage 'http://librsync.sourceforge.net/'
|
2013-01-29 05:21:08 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/librsync/librsync/0.9.7/librsync-0.9.7.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'd575eb5cae7a815798220c3afeff5649d3e8b4ab'
|
2009-11-25 21:29:15 +00:00
|
|
|
|
2014-02-24 16:45:08 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "8353f1b073ccf899a1f1d0e14eac81426efb1443" => :mavericks
|
|
|
|
sha1 "078bf45d5ba1f809bfd024db62354330e063f3ff" => :mountain_lion
|
|
|
|
sha1 "cb35ddba05801748025b1394bd89c359f0c4f934" => :lion
|
|
|
|
end
|
|
|
|
|
2013-01-26 17:57:14 +00:00
|
|
|
option :universal
|
|
|
|
|
2013-08-06 14:32:09 +00:00
|
|
|
depends_on 'popt'
|
|
|
|
|
2009-11-25 21:29:15 +00:00
|
|
|
def install
|
2013-01-26 17:57:14 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2013-11-10 02:46:35 +00:00
|
|
|
|
|
|
|
ENV.append 'CFLAGS', '-std=gnu89'
|
|
|
|
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2010-07-04 05:17:12 +00:00
|
|
|
"--prefix=#{prefix}",
|
2011-10-17 19:37:31 +00:00
|
|
|
"--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
|
|
|
|
|
2009-11-25 21:29:15 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|