plastictrophy-libsvm-ruby-swig 0.3.3 → 0.3.3.2009081423
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +16 -8
- data/Rakefile +4 -2
- data/ext/Makefile +11 -3
- metadata +7 -3
data/README.rdoc
CHANGED
@@ -1,15 +1,21 @@
|
|
1
1
|
= libsvm-ruby-swig
|
2
2
|
|
3
3
|
* Ruby interface to LIBSVM (using SWIG)
|
4
|
-
|
5
|
-
|
4
|
+
|
5
|
+
== THIS FORK:
|
6
|
+
|
7
|
+
Only supports i368 on Mac OS 10.5 (Leopard), which we did to meet our immediate development needs. As you might expect, the "ext/Makefile" explicitly specifies both the architecture (e.g. "-arch i368") and the path to the Ruby headers.
|
8
|
+
|
9
|
+
Snow Leopard (10.6) has not been tested, but we'll test and support it when we move our development stack to Snow Leopard. If you really want build for Snow Leopard, try setting "-arch x86_64" in the "ext/Makefile" if you want a 64-bit build for Snow Leopard, and setting the RUBY_INCLUDEDIR in your env (or manually changing the default value in the "ext/Makefile").
|
10
|
+
|
11
|
+
In tomz's fork, the Makefile is generated via the extconf.rb. We were unable to get a usable Makefile using extconf.rb on Mac OS X Leopard, so we're using our own, non-generated Makefile. Someone with better mkmf skills could get it working and support most/all targets in the process.
|
6
12
|
|
7
13
|
== DESCRIPTION:
|
8
14
|
|
9
|
-
|
15
|
+
Mac OS 10.5 and i386 only Ruby port of the LIBSVM Python SWIG (Simplified Wrapper and
|
10
16
|
Interface Generator) interface.
|
11
17
|
|
12
|
-
A slightly modified version of LIBSVM 2.89 is included, it allows
|
18
|
+
A slightly modified version of LIBSVM 2.89 is included, it allows turning on/off
|
13
19
|
the debug log. You don't need your own copy of SWIG to use this library - all
|
14
20
|
needed files are generated using SWIG already.
|
15
21
|
|
@@ -22,12 +28,11 @@ LIBSVM is in use at http://tweetsentiments.com - A Twitter / Tweet sentiment
|
|
22
28
|
analysis application
|
23
29
|
|
24
30
|
== INSTALL:
|
25
|
-
Currently the gem is available on linux only(tested on Ubuntu 8 and Fedora 9/10,
|
26
|
-
and on OS X by danielsdeleo), and you will need g++ installed to compile the
|
27
|
-
native code.
|
28
31
|
|
29
32
|
sudo gem sources -a http://gems.github.com (you only have to do this once)
|
30
|
-
sudo gem install
|
33
|
+
sudo gem install plastictrophy-libsvm-ruby-swig
|
34
|
+
|
35
|
+
See http://github.com/tomz/libsvm-ruby-swig for Linux support.
|
31
36
|
|
32
37
|
== SYNOPSIS:
|
33
38
|
|
@@ -58,3 +63,6 @@ Tom Zeng
|
|
58
63
|
- http://www.linkedin.com/in/tomzeng
|
59
64
|
- tom.z.zeng _at_ gmail _dot_ com
|
60
65
|
|
66
|
+
Mariano Lizarraga and Galen O'Hanlon
|
67
|
+
- http://plastictrophy.com
|
68
|
+
|
data/Rakefile
CHANGED
@@ -8,11 +8,13 @@ Hoe.plugin :newgem
|
|
8
8
|
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
9
9
|
$hoe = Hoe.spec 'libsvm-ruby-swig' do
|
10
10
|
self.developer 'Tom Zeng', 'tom.z.zeng@gmail.com'
|
11
|
+
self.developer 'Mariano Lizarraga', 'mariano.lizarraga@plastictrophy.com'
|
12
|
+
self.developer 'Galen O\'Hanlon', 'galen.ohanlon@plastictrophy.com'
|
11
13
|
# self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
|
12
14
|
self.rubyforge_name = nil # TODO this is default value
|
13
15
|
# self.extra_deps = [['activesupport','>= 2.0.2']]
|
14
|
-
self.version = '0.3.3'
|
15
|
-
self.url = 'http://www.
|
16
|
+
self.version = '0.3.3.2009081423'
|
17
|
+
self.url = 'http://www.plastictrophy.com'
|
16
18
|
self.description = 'Ruby wrapper of LIBSVM using SWIG'
|
17
19
|
self.spec_extras[:extensions] = "ext/extconf.rb"
|
18
20
|
end
|
data/ext/Makefile
CHANGED
@@ -2,12 +2,20 @@ CXX? = g++
|
|
2
2
|
SWIG ?= swig
|
3
3
|
|
4
4
|
#Windows: see ../README ../Makefile.win
|
5
|
-
RUBY_INCLUDEDIR ?= /usr/lib/ruby/1.8/universal-darwin9.0/
|
6
5
|
|
7
|
-
|
6
|
+
# RUBY_INCLUDEDIR ?= /usr/lib/ruby/1.8/universal-darwin9.0/
|
7
|
+
RUBY_INCLUDEDIR ?= /System/Library/Frameworks/Ruby.framework/Versions/1.8/Headers/
|
8
|
+
|
9
|
+
# choose one of the following (only i386 has been tested, you may want x86_64 for Snow Leopard):
|
10
|
+
TARGET_ARCH ?= -arch i386
|
11
|
+
# TARGET_ARCH ?= -arch ppc
|
12
|
+
# TARGET_ARCH ?= -arch x86_64
|
13
|
+
# TARGET_ARCH ?= -arch i386 -arch x86_64
|
14
|
+
|
15
|
+
CFLAGS = -O3 -I$(RUBY_INCLUDEDIR) -I.. $(TARGET_ARCH)
|
8
16
|
#LDFLAGS = -shared
|
9
17
|
# Mac OS
|
10
|
-
LDFLAGS = -framework Ruby -bundle
|
18
|
+
LDFLAGS = -framework Ruby -bundle $(TARGET_ARCH)
|
11
19
|
|
12
20
|
all: libsvm.bundle
|
13
21
|
|
metadata
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plastictrophy-libsvm-ruby-swig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.3
|
4
|
+
version: 0.3.3.2009081423
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Zeng
|
8
|
+
- Mariano Lizarraga
|
9
|
+
- Galen O'Hanlon
|
8
10
|
autorequire:
|
9
11
|
bindir: bin
|
10
12
|
cert_chain: []
|
@@ -25,6 +27,8 @@ dependencies:
|
|
25
27
|
description: Ruby wrapper of LIBSVM using SWIG
|
26
28
|
email:
|
27
29
|
- tom.z.zeng@gmail.com
|
30
|
+
- mariano.lizarraga@plastictrophy.com
|
31
|
+
- galen.ohanlon@plastictrophy.com
|
28
32
|
executables: []
|
29
33
|
|
30
34
|
extensions:
|
@@ -46,7 +50,7 @@ files:
|
|
46
50
|
- ext/extconf.rb
|
47
51
|
- ext/Makefile
|
48
52
|
has_rdoc: false
|
49
|
-
homepage: http://www.
|
53
|
+
homepage: http://www.plastictrophy.com
|
50
54
|
post_install_message:
|
51
55
|
rdoc_options:
|
52
56
|
- --main
|
@@ -72,6 +76,6 @@ rubyforge_project:
|
|
72
76
|
rubygems_version: 1.2.0
|
73
77
|
signing_key:
|
74
78
|
specification_version: 3
|
75
|
-
summary:
|
79
|
+
summary: Mac OS 10.5 and i386 only Ruby port of the LIBSVM Python SWIG (Simplified Wrapper and Interface Generator) interface
|
76
80
|
test_files: []
|
77
81
|
|