2009-11-25 21:29:15 +00:00
|
|
|
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'
|
2009-11-25 21:29:15 +00:00
|
|
|
homepage 'http://librsync.sourceforge.net/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'd575eb5cae7a815798220c3afeff5649d3e8b4ab'
|
2009-11-25 21:29:15 +00:00
|
|
|
|
2012-03-05 14:41:26 +00:00
|
|
|
def patches
|
|
|
|
# fixes librsync doesn't correctly export inlined functions:
|
|
|
|
# http://trac.macports.org/ticket/31742
|
|
|
|
# link to upstream bug report:
|
|
|
|
# http://sourceforge.net/tracker/?func=detail&aid=3464437&group_id=56125&atid=479439
|
|
|
|
{ :p0 => 'https://trac.macports.org/export/90437/trunk/dports/net/librsync/files/patch-delta.c.diff' }
|
|
|
|
end
|
|
|
|
|
2009-11-25 21:29:15 +00:00
|
|
|
def install
|
|
|
|
ENV.universal_binary
|
2010-07-04 05:17:12 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--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
|