2010-02-28 16:54:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Rrdtool <Formula
|
2010-07-01 16:20:32 +00:00
|
|
|
url 'http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.3.tar.gz'
|
2010-02-28 16:54:17 +00:00
|
|
|
homepage 'http://oss.oetiker.ch/rrdtool/index.en.html'
|
2010-07-01 16:20:32 +00:00
|
|
|
md5 '492cf946c72f85987238faa2c311b7bb'
|
2010-02-28 16:54:17 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config'
|
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'libxml2'
|
|
|
|
depends_on 'expat'
|
|
|
|
depends_on 'pango'
|
|
|
|
depends_on 'libpng'
|
|
|
|
depends_on 'intltool'
|
|
|
|
|
2010-07-01 16:20:32 +00:00
|
|
|
# Can use lua if it is found, but don't force users to install
|
|
|
|
# depends_on 'lua' => :optional
|
|
|
|
|
2010-02-28 16:54:17 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2010-07-01 16:20:32 +00:00
|
|
|
"--enable-perl-site-install",
|
|
|
|
"--enable-ruby-site-install",
|
2010-02-28 16:54:17 +00:00
|
|
|
# Installing directly into Homebrew's Python's site-packages
|
|
|
|
# can break things, so we disable this for now.
|
|
|
|
# TODO: how to build Python support w/o installing it.
|
|
|
|
"--disable-python"
|
2010-07-01 16:20:32 +00:00
|
|
|
|
2010-02-28 16:54:17 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2010-07-01 16:20:32 +00:00
|
|
|
|
|
|
|
def test
|
|
|
|
# Test ruby support; currently fails.
|
|
|
|
system "ruby", "-e", "require 'RRD'"
|
|
|
|
end
|
2010-02-28 16:54:17 +00:00
|
|
|
end
|