blob: 1df531b6b71a7b0465103a73d8a701fa3f454a96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
|