homebrew-core/Formula/rrdtool.rb

71 lines
1.9 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
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'
2013-02-10 06:28:17 +00:00
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'pango'
2013-05-06 17:28:42 +00:00
depends_on 'lua' => :optional
2013-05-06 17:28:42 +00:00
env :userpaths # For perl, ruby
2011-03-14 21:14:41 +00:00
# Ha-ha, but sleeping is annoying when running configure a lot
2014-03-20 19:05:19 +00:00
patch :DATA
def install
2011-03-14 21:14:41 +00:00
ENV.libxml2
2012-08-21 21:01:53 +00:00
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
2013-05-06 17:28:42 +00:00
--disable-tcl
--with-tcllib=/usr/lib
--disable-perl-site-install
--disable-ruby-site-install
2012-08-21 21:01:53 +00:00
]
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
2013-02-02 05:12:52 +00:00
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; }
2012-09-02 07:53:12 +00:00
-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!"