2012-01-11 01:52:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libqalculate < Formula
|
|
|
|
homepage 'http://qalculate.sourceforge.net/'
|
|
|
|
url 'http://sourceforge.net/projects/qalculate/files/libqalculate/libqalculate-0.9.7/libqalculate-0.9.7.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'c15f7f3a97995decf62cc964956fc1e374ecd78c'
|
2012-01-11 01:52:34 +00:00
|
|
|
|
2013-02-10 06:28:12 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-01-11 01:52:34 +00:00
|
|
|
depends_on 'cln'
|
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'gnuplot'
|
|
|
|
depends_on 'gettext'
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2012-01-11 01:52:34 +00:00
|
|
|
depends_on 'wget'
|
|
|
|
|
|
|
|
# Patches against version 0.9.7, should not be needed in the future
|
|
|
|
def patches; DATA; end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-03-20 01:51:42 +00:00
|
|
|
system "#{bin}/qalc", "(2+2)/4 hours to minutes"
|
2012-01-11 01:52:34 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff -ur a/src/defs2doc.cc b/src/defs2doc.cc
|
|
|
|
--- a/src/defs2doc.cc 2009-12-02 14:24:28.000000000 -0600
|
|
|
|
+++ b/src/defs2doc.cc 2012-01-10 18:47:50.000000000 -0600
|
|
|
|
@@ -16,7 +16,9 @@
|
|
|
|
#include <time.h>
|
|
|
|
#include <pthread.h>
|
|
|
|
#include <dirent.h>
|
|
|
|
+#if !defined(__APPLE__)
|
|
|
|
#include <malloc.h>
|
|
|
|
+#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <vector>
|
|
|
|
#include <glib.h>
|
|
|
|
diff -ur a/src/qalc.cc b/src/qalc.cc
|
|
|
|
--- a/src/qalc.cc 2010-01-05 09:17:29.000000000 -0600
|
|
|
|
+++ b/src/qalc.cc 2012-01-10 18:47:42.000000000 -0600
|
|
|
|
@@ -16,7 +16,9 @@
|
|
|
|
#include <time.h>
|
|
|
|
#include <pthread.h>
|
|
|
|
#include <dirent.h>
|
|
|
|
+#if !defined(__APPLE__)
|
|
|
|
#include <malloc.h>
|
|
|
|
+#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <vector>
|
|
|
|
#include <glib.h>
|