2010-12-30 06:04:31 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Aggregate < Formula
|
2010-12-31 16:15:39 +00:00
|
|
|
homepage 'http://freshmeat.net/projects/aggregate/'
|
2012-02-13 03:35:43 +00:00
|
|
|
url 'ftp://ftp.isc.org/isc/aggregate/aggregate-1.6.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '13420baf4f3f93dbed3c380ab6cca175609c5d7d'
|
2010-12-30 06:04:31 +00:00
|
|
|
|
2013-11-08 06:29:59 +00:00
|
|
|
conflicts_with 'crush-tools', :because => 'both install an `aggregate` binary'
|
|
|
|
|
2010-12-30 06:04:31 +00:00
|
|
|
def install
|
|
|
|
bin.mkpath
|
|
|
|
man1.mkpath
|
2012-02-13 03:35:43 +00:00
|
|
|
|
|
|
|
# Makefile doesn't respect --mandir or MANDIR
|
|
|
|
inreplace "Makefile.in", "$(prefix)/man/man1", "$(prefix)/share/man/man1"
|
|
|
|
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "CFLAGS=#{ENV.cflags}",
|
|
|
|
"LDFLAGS=#{ENV.ldflags}",
|
|
|
|
"install"
|
2010-12-30 06:04:31 +00:00
|
|
|
end
|
|
|
|
end
|