aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMichael J. Schultz2012-01-10 19:52:34 -0600
committerAdam Vandenberg2012-03-18 17:10:45 -0700
commit94af6cd1e4af0b561fb3ba1eafa9463ff62b4552 (patch)
tree0bd9312af567617720be0d0fc9f4fa4537de65b0 /Library
parent30ad2d6f1dde086f167929e7366bc0a4e042c4f2 (diff)
downloadhomebrew-94af6cd1e4af0b561fb3ba1eafa9463ff62b4552.tar.bz2
libqalculate 0.9.7
- This adds a formula for libqalculate 0.9.7 to homebrew. It builds on my system, but I'm not sure if I've set up some kegs which may be used. - Also includes minor patch to two files (in formula) for ignoring malloc.h on apple platform. It's fixed upstream, but not in a release just the sourceforge git repo. Closes #9533. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libqalculate.rb55
1 files changed, 55 insertions, 0 deletions
diff --git a/Library/Formula/libqalculate.rb b/Library/Formula/libqalculate.rb
new file mode 100644
index 000000000..1aacc042c
--- /dev/null
+++ b/Library/Formula/libqalculate.rb
@@ -0,0 +1,55 @@
+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'
+ md5 'a1507ab862f4ad9852788619aada35cd'
+
+ depends_on 'cln'
+ depends_on 'glib'
+ depends_on 'gnuplot'
+ depends_on 'gettext'
+ depends_on 'readline'
+ 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
+ system "#{prefix}/bin/qalc", "(2+2)/4 hours to minutes"
+ 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>