Tamar 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -1,5 +1,23 @@
1
1
  RELEASE HISTORY
2
2
 
3
+ v0.7.4 / 2011-05-23
4
+
5
+ Regenerate gemspec for version 0.7.4 (David Love david@homeunix.org.uk)
6
+
7
+ Changes:
8
+
9
+ * 3 General Enhancements
10
+
11
+ * Version bump to 0.7.4
12
+ * Update HISTORY file
13
+ * Regenerate gemspec for version 0.7.3
14
+
15
+ * 2 Patch Enhancements
16
+
17
+ * Copy build script from RubyLuaBridge
18
+ * Added sources for RubyLuaBridge 0.7.0
19
+
20
+
3
21
  v0.7.3 / 2011-05-23
4
22
 
5
23
  Regenerate gemspec for version 0.7.3 (David Love david@homeunix.org.uk)
@@ -76,12 +94,13 @@ Current Development (David Love)
76
94
 
77
95
  Changes:
78
96
 
79
- * 2 Patch Enhancements
97
+ * 3 Patch Enhancements
80
98
 
81
- * Copy build script from RubyLuaBridge
82
- * Added sources for RubyLuaBridge 0.7.0
99
+ * Call cmake on the LuaDist bindings to make Lua
100
+ * Call bootstrap to build the Lua integration
101
+ * Begin patching of the Ruby build process for Lua
83
102
 
84
103
  * 1 General Enhancements
85
104
 
86
- * Regenerate gemspec for version 0.7.3
105
+ * Regenerate gemspec for version 0.7.4
87
106
 
data/Tamar.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{Tamar}
8
- s.version = "0.7.4"
8
+ s.version = "0.7.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Evan Wies, David Love"]
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
  "Rakefile",
30
30
  "Tamar.gemspec",
31
31
  "VERSION",
32
+ "src/build/bootstrap.rb",
32
33
  "src/build/extconf.rb",
33
34
  "src/luadist/CMakeLists.txt",
34
35
  "src/luadist/COPYRIGHT",
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.4
1
+ 0.7.5
@@ -0,0 +1,81 @@
1
+ #
2
+ # Licensed under the BSD License:
3
+ #
4
+ # Copyright (c) 2007, Evan Wies
5
+ # Copyright (c) 2011, David Love
6
+ # All rights reserved.
7
+ #
8
+ # Redistribution and use in source and binary forms, with or without
9
+ # modification, are permitted provided that the following conditions are met:
10
+ #
11
+ # * Redistributions of source code must retain the above copyright
12
+ # notice, this list of conditions and the following disclaimer.
13
+ #
14
+ # * Redistributions in binary form must reproduce the above copyright
15
+ # notice, this list of conditions and the following disclaimer in the
16
+ # documentation and/or other materials provided with the distribution.
17
+ #
18
+ # * Neither the name of the neomantra nor the names of its contributors may
19
+ # be used to endorse or promote products derived from this software without
20
+ # specific prior written permission.
21
+ #
22
+ # THIS SOFTWARE IS PROVIDED BY Evan Wies ``AS IS'' AND ANY
23
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25
+ # DISCLAIMED. IN NO EVENT SHALL Evan Wies BE LIABLE FOR ANY
26
+ # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
29
+ # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
+ #
33
+
34
+
35
+ require 'mkmf'
36
+
37
+
38
+ def fail( str )
39
+ STDERR << " extconf failed: #{str}\n"
40
+ exit 1
41
+ end
42
+
43
+
44
+ if enable_config('debug')
45
+ $CFLAGS = '-O0 -g -Wall '
46
+ else
47
+ $CFLAGS = '-O3 -Wall'
48
+ end
49
+
50
+
51
+ if enable_config('rlb-debug')
52
+ $CFLAGS += '-DRLB_DEBUG '
53
+ end
54
+
55
+ # link in C++ libraries
56
+ $LIBS << " -lstdc++ -lc"
57
+
58
+ nolua_msg = <<END_OF_MESSAGE
59
+ need liblua.
60
+
61
+ Install the library or try one of the following options to extconf.rb:
62
+
63
+ --with-lua-lib=/path/to/liblua/lib
64
+ --with-lua-include=/path/to/liblua/include
65
+ --with-lualib=name_of_lua_library
66
+
67
+ --enable-debug will build it optimized and with debugging symbols
68
+ END_OF_MESSAGE
69
+
70
+
71
+ dir_config 'lua'
72
+
73
+ unless have_header('lua.h')
74
+ fail nolua_msg
75
+ end
76
+ unless have_library( 'lua', 'lua_pushvalue' )
77
+ fail nolua_msg
78
+ end
79
+
80
+ create_makefile 'rubyluabridge'
81
+
data/src/build/extconf.rb CHANGED
@@ -1,2 +1,39 @@
1
- #!/bin/bash
2
- ruby extconf.rb --with-lua-include=/usr/include/lua5.1 --with-lualib=lua5.1 $@
1
+ #!/bin/sh
2
+ #
3
+ # Licensed under the BSD License:
4
+ #
5
+ # Copyright (c) 2007, Evan Wies
6
+ # Copyright (c) 2011, David Love
7
+ # All rights reserved.
8
+ #
9
+ # Redistribution and use in source and binary forms, with or without
10
+ # modification, are permitted provided that the following conditions are met:
11
+ #
12
+ # * Redistributions of source code must retain the above copyright
13
+ # notice, this list of conditions and the following disclaimer.
14
+ #
15
+ # * Redistributions in binary form must reproduce the above copyright
16
+ # notice, this list of conditions and the following disclaimer in the
17
+ # documentation and/or other materials provided with the distribution.
18
+ #
19
+ # * Neither the name of the neomantra nor the names of its contributors may
20
+ # be used to endorse or promote products derived from this software without
21
+ # specific prior written permission.
22
+ #
23
+ # THIS SOFTWARE IS PROVIDED BY Evan Wies ``AS IS'' AND ANY
24
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26
+ # DISCLAIMED. IN NO EVENT SHALL Evan Wies BE LIABLE FOR ANY
27
+ # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30
+ # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+ #
34
+
35
+ # Build the Lua core libraries and runtime
36
+ cd src/luadist; cmake CMakeList.txt
37
+
38
+ # Call the Ruby bootstrap script to build the Ruby->Lua bindings
39
+ ruby src/build/bootstrap.rb --with-lua-include=/usr/include/lua5.1 --with-lualib=lua5.1 $@
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: Tamar
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.4
5
+ version: 0.7.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Evan Wies, David Love
@@ -122,6 +122,7 @@ files:
122
122
  - Rakefile
123
123
  - Tamar.gemspec
124
124
  - VERSION
125
+ - src/build/bootstrap.rb
125
126
  - src/build/extconf.rb
126
127
  - src/luadist/CMakeLists.txt
127
128
  - src/luadist/COPYRIGHT
@@ -185,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
186
  requirements:
186
187
  - - ">="
187
188
  - !ruby/object:Gem::Version
188
- hash: 3767394104657576971
189
+ hash: -3436442721823577411
189
190
  segments:
190
191
  - 0
191
192
  version: "0"