sam / do fork watch download tarball
public
Rubygem
Description: DataObjects
Homepage: http://rubyforge.org/projects/dorb
Clone URL: git://github.com/sam/do.git
Sqlite3 is nearly SWIGless!
Sun Feb 17 23:47:22 -0800 2008
commit  2bd9fd78569be6cf35c36e5e484dda3a6002edb5
tree    3040c2263a9ba6133a0b450bb8e359a602e65b88
parent  bf4dd15aa8f9529c07ca1e61ff464a1ec7eefcc4
...
1
 
 
 
 
 
 
 
 
 
 
 
2
 
3
4
5
 
 
6
7
 
8
 
 
 
 
 
 
 
9
10
11
 
 
12
...
 
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
0
@@ -1,11 +1,30 @@
0
-ENV["RC_ARCHS"] = `uname -m`.chomp if `uname -sr` =~ /^Darwin/
0
+# ENV["RC_ARCHS"] = `uname -m`.chomp if `uname -sr` =~ /^Darwin/
0
+#
0
+# require 'mkmf'
0
+#
0
+# SWIG_WRAP = "sqlite3_api_wrap.c"
0
+#
0
+# dir_config( "sqlite3", "/usr/local" )
0
+#
0
+# if have_header( "sqlite3.h" ) && have_library( "sqlite3", "sqlite3_open" )
0
+# create_makefile( "sqlite3_c" )
0
+# end
0
 
0
+# Loads mkmf which is used to make makefiles for Ruby extensions
0
 require 'mkmf'
0
 
0
-SWIG_WRAP = "sqlite3_api_wrap.c"
0
+# Give it a name
0
+extension_name = 'rbsqlite3'
0
 
0
-dir_config( "sqlite3", "/usr/local" )
0
+dir_config("sqlite3", "/usr")
0
 
0
+$CFLAGS << ' -Wall '
0
+
0
+# The destination
0
+dir_config(extension_name)
0
+
0
+# Do the work
0
+# create_makefile(extension_name)
0
 if have_header( "sqlite3.h" ) && have_library( "sqlite3", "sqlite3_open" )
0
- create_makefile( "sqlite3_c" )
0
-end
0
+ create_makefile(extension_name)
0
+end
0
\ No newline at end of file
...
1
 
 
 
2
3
4
...
 
1
2
3
4
5
6
0
@@ -1,4 +1,6 @@
0
-require File.dirname(__FILE__) + '/spec_helper'
0
+# require File.dirname(__FILE__) + '/spec_helper'
0
+require 'date'
0
+require 'rbsqlite3'
0
 
0
 describe "do_sqlite3" do
0
   it "should do nothing" do

Comments

    No one has commented yet.