heroku-tokyotyrant 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/ext/extconf.rb +10 -3
- metadata +2 -2
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ CLEAN.include('pkg', 'tmp')
|
|
20
20
|
|
21
21
|
gemspec = Gem::Specification.new do |s|
|
22
22
|
s.name = 'heroku-tokyotyrant'
|
23
|
-
s.version = '0.4'
|
23
|
+
s.version = '0.4.1'
|
24
24
|
s.authors = [ 'Matt Bauer' ]
|
25
25
|
s.email = 'bauer@pedalbrain.com'
|
26
26
|
s.homepage = 'http://github.com/mattbauer/heroku-tokyotyrant/'
|
@@ -53,7 +53,7 @@ Rake::GemPackageTask.new(gemspec) do |pkg|
|
|
53
53
|
pkg.need_tar = true
|
54
54
|
end
|
55
55
|
|
56
|
-
Rake::PackageTask.new('heroku-tokyotyrant', '0.4') do |pkg|
|
56
|
+
Rake::PackageTask.new('heroku-tokyotyrant', '0.4.1') do |pkg|
|
57
57
|
pkg.need_zip = true
|
58
58
|
pkg.package_files = FileList[
|
59
59
|
'COPYING',
|
data/ext/extconf.rb
CHANGED
@@ -29,15 +29,22 @@ end
|
|
29
29
|
|
30
30
|
# Build TC
|
31
31
|
Dir.chdir(File.dirname(__FILE__)+"/tokyocabinet-1.4.41") do
|
32
|
-
`./configure --prefix
|
32
|
+
`./configure --prefix=#{File.expand_path(File.dirname(__FILE__)+'/../tokyo')}`
|
33
|
+
`make`
|
34
|
+
`make install`
|
33
35
|
end
|
34
36
|
|
35
37
|
# Build TT
|
36
38
|
Dir.chdir(File.dirname(__FILE__)+"/tokyotyrant-1.1.39") do
|
37
|
-
`./configure --prefix
|
39
|
+
`./configure --prefix=#{File.expand_path(File.dirname(__FILE__)+'/../tokyo')} --with-tc=#{File.expand_path(File.dirname(__FILE__)+'/../tokyo')}`
|
40
|
+
`make`
|
41
|
+
`make install`
|
38
42
|
end
|
39
43
|
|
40
44
|
# Do the work
|
41
|
-
$INCFLAGS += " -I#{File.expand_path('
|
45
|
+
$INCFLAGS += " -I#{File.expand_path('tokyo')}"+'/include'
|
46
|
+
|
47
|
+
# copy libs
|
48
|
+
`cp #{File.expand_path('tokyo')+'/lib/*'} .`
|
42
49
|
|
43
50
|
create_makefile 'tokyo_tyrant'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku-tokyotyrant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Bauer
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-19 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|