2010-02-28 16:54:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Rrdtool < Formula
|
2010-02-28 16:54:17 +00:00
|
|
|
homepage 'http://oss.oetiker.ch/rrdtool/index.en.html'
|
2013-06-22 16:03:18 +00:00
|
|
|
url 'http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.8.tar.gz'
|
|
|
|
sha1 '56d68857f39e70bfa32360947614d8220702ed02'
|
2010-02-28 16:54:17 +00:00
|
|
|
|
2013-02-10 06:28:17 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-07-31 04:12:08 +00:00
|
|
|
depends_on 'glib'
|
2010-02-28 16:54:17 +00:00
|
|
|
depends_on 'pango'
|
2013-05-06 17:28:42 +00:00
|
|
|
depends_on 'lua' => :optional
|
2010-02-28 16:54:17 +00:00
|
|
|
|
2013-05-06 17:28:42 +00:00
|
|
|
env :userpaths # For perl, ruby
|
2013-04-14 01:31:18 +00:00
|
|
|
|
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
|
2010-07-01 16:20:32 +00:00
|
|
|
|
2010-02-28 16:54:17 +00:00
|
|
|
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
|
2014-03-28 20:13:47 +00:00
|
|
|
--disable-perl-site-install
|
|
|
|
--disable-ruby-site-install
|
2012-08-21 21:01:53 +00:00
|
|
|
]
|
2010-07-31 04:12:08 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
|
|
|
|
# Needed to build proper Ruby bundle
|
2013-08-02 02:46:56 +00:00
|
|
|
ENV["ARCHFLAGS"] = "-arch #{MacOS.preferred_arch}"
|
2010-07-01 16:20:32 +00:00
|
|
|
|
2014-03-21 18:18:15 +00:00
|
|
|
system "make", "CC=#{ENV.cc}", "CXX=#{ENV.cxx}", "install"
|
2010-07-31 04:12:08 +00:00
|
|
|
prefix.install "bindings/ruby/test.rb"
|
2010-02-28 16:54:17 +00:00
|
|
|
end
|
2010-07-01 16:20:32 +00:00
|
|
|
|
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"
|
2010-07-01 16:20:32 +00:00
|
|
|
end
|
2010-02-28 16:54:17 +00:00
|
|
|
end
|
2010-07-31 04:12:08 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/configure b/configure
|
2013-06-22 16:03:18 +00:00
|
|
|
index 266754d..d21ab33 100755
|
2010-07-31 04:12:08 +00:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2013-06-22 16:03:18 +00:00
|
|
|
@@ -23868,18 +23868,6 @@ $as_echo_n "checking in... " >&6; }
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: and out again" >&5
|
2010-07-31 04:12:08 +00:00
|
|
|
$as_echo "and out again" >&6; }
|
2012-09-02 07:53:12 +00:00
|
|
|
|
2010-07-31 04:12:08 +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
|
2013-06-22 16:03:18 +00:00
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: just kidding ;-)" >&5
|
2010-07-31 04:12:08 +00:00
|
|
|
-$as_echo " just kidding ;-)" >&6; }
|
|
|
|
echo
|
|
|
|
echo "----------------------------------------------------------------"
|
|
|
|
echo "Config is DONE!"
|