aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorRyan Shaw2012-03-08 23:55:15 -0500
committerAdam Vandenberg2012-06-10 11:46:58 -0700
commit270a1dd5a4e4152f6152f44c7dc0910309112919 (patch)
tree3c4d4d8d275466e4848274d36afd9fc9aa9aa5ed /Library
parent07dc12976abb538c5d578ddcc083de20c433fdb5 (diff)
downloadhomebrew-270a1dd5a4e4152f6152f44c7dc0910309112919.tar.bz2
TinySVM 0.09
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/tinysvm.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/tinysvm.rb b/Library/Formula/tinysvm.rb
new file mode 100644
index 000000000..1df531b6b
--- /dev/null
+++ b/Library/Formula/tinysvm.rb
@@ -0,0 +1,32 @@
+require 'formula'
+
+class Tinysvm < Formula
+ homepage 'http://chasen.org/~taku/software/TinySVM/'
+ url 'http://chasen.org/~taku/software/TinySVM/src/TinySVM-0.09.tar.gz'
+ md5 '22d80bdd94c3c8373062761de0d27fde'
+
+ # Use correct compilation flag
+ def patches
+ { :p0 => [
+ "https://trac.macports.org/export/94156/trunk/dports/math/TinySVM/files/patch-configure.diff"
+ ]}
+ end
+
+ def install
+ # Needed to select proper getopt, per MacPorts
+ ENV.append_to_cflags '-D__GNU_LIBRARY__'
+
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--mandir=#{man}",
+ "--disable-shared"
+ system "make install"
+ end
+
+ def test
+ system "#{bin}/svm_learn --help"
+ system "#{bin}/svm_classify --help"
+ system "#{bin}/svm_model --help"
+ end
+end