homebrew-core/Formula/rrdtool.rb
2014-10-22 15:57:14 +01:00

77 lines
2.1 KiB
Ruby

require 'formula'
class Rrdtool < Formula
homepage 'http://oss.oetiker.ch/rrdtool/index.en.html'
url 'http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.8.tar.gz'
sha1 '56d68857f39e70bfa32360947614d8220702ed02'
revision 1
bottle do
sha1 "66e4c7cb71218b8071a0e08e6fc76e3d54bd5509" => :yosemite
sha1 "f58c34f5e7ca96af0a36f8e11d9c5612d915ba30" => :mavericks
sha1 "17793a75d33fb5173fbe97dc01f687a47a56a54e" => :mountain_lion
end
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'pango'
depends_on 'lua' => :optional
env :userpaths # For perl, ruby
# Ha-ha, but sleeping is annoying when running configure a lot
patch :DATA
def install
ENV.libxml2
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--disable-tcl
--with-tcllib=/usr/lib
--disable-perl-site-install
--disable-ruby-site-install
]
system "./configure", *args
# Needed to build proper Ruby bundle
ENV["ARCHFLAGS"] = "-arch #{MacOS.preferred_arch}"
system "make", "CC=#{ENV.cc}", "CXX=#{ENV.cxx}", "install"
prefix.install "bindings/ruby/test.rb"
end
test do
system "#{bin}/rrdtool", "create", "temperature.rrd", "--step", "300",
"DS:temp:GAUGE:600:-273:5000", "RRA:AVERAGE:0.5:1:1200",
"RRA:MIN:0.5:12:2400", "RRA:MAX:0.5:12:2400", "RRA:AVERAGE:0.5:12:2400"
system "#{bin}/rrdtool", "dump", "temperature.rrd"
end
end
__END__
diff --git a/configure b/configure
index 266754d..d21ab33 100755
--- a/configure
+++ b/configure
@@ -23868,18 +23868,6 @@ $as_echo_n "checking in... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: and out again" >&5
$as_echo "and out again" >&6; }
-echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
-sleep 1
-echo $ECHO_N ".$ECHO_C" 1>&6
-sleep 1
-echo $ECHO_N ".$ECHO_C" 1>&6
-sleep 1
-echo $ECHO_N ".$ECHO_C" 1>&6
-sleep 1
-echo $ECHO_N ".$ECHO_C" 1>&6
-sleep 1
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: just kidding ;-)" >&5
-$as_echo " just kidding ;-)" >&6; }
echo
echo "----------------------------------------------------------------"
echo "Config is DONE!"