xapian-full 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile ADDED
@@ -0,0 +1,26 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'rubygems/ext'
4
+
5
+ begin
6
+ require 'jeweler'
7
+ Jeweler::Tasks.new do |gem|
8
+ gem.name = "xapian-full"
9
+ gem.version = '1.1.3'
10
+ gem.summary = %Q{xapian-core + Ruby xapian-bindings}
11
+ gem.description = %Q{Xapian bindings for Ruby without dependency on system Xapian library}
12
+ gem.email = "rlane@club.cc.cmu.edu"
13
+ #gem.homepage = "http://gitorious.org/holizz-projects/xapian-ruby"
14
+ gem.authors = ["Tom Adams", "Rich Lane"]
15
+
16
+ gem.files += Dir.glob(%w[
17
+ extconf.rb
18
+ Rakefile
19
+ xapian*.tar.gz
20
+ ])
21
+
22
+ gem.extensions << 'extconf.rb'
23
+ end
24
+ rescue LoadError
25
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
26
+ end
data/extconf.rb ADDED
@@ -0,0 +1,32 @@
1
+ require 'rbconfig'
2
+
3
+ def system!(cmd)
4
+ puts cmd
5
+ system(cmd) or raise
6
+ end
7
+
8
+ ver = '1.1.3'
9
+ core = "xapian-core-#{ver}"
10
+ bindings = "xapian-bindings-#{ver}"
11
+ xapian_config = "#{Dir.pwd}/#{core}/xapian-config"
12
+
13
+ [core,bindings].each do |x|
14
+ system! "tar -xzvf #{x}.tar.gz"
15
+ end
16
+
17
+ Dir.chdir core do
18
+ system! "./configure"
19
+ system! "make clean all"
20
+ end
21
+
22
+ Dir.chdir bindings do
23
+ c = Config::CONFIG
24
+ ENV['RUBY'] ||= "#{c['bindir']}/#{c['RUBY_INSTALL_NAME']}"
25
+ ENV['XAPIAN_CONFIG'] = xapian_config
26
+ system! "./configure --with-ruby"
27
+ system! "make clean all"
28
+ end
29
+
30
+ system! "mkdir -p lib"
31
+ system! "cp #{bindings}/ruby/.libs/_xapian.so lib"
32
+ system! "cp #{bindings}/ruby/xapian.rb lib"
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,59 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xapian-full
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.3
5
+ platform: ruby
6
+ authors:
7
+ - Tom Adams
8
+ - Rich Lane
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2009-12-21 00:00:00 -08:00
14
+ default_executable:
15
+ dependencies: []
16
+
17
+ description: Xapian bindings for Ruby without dependency on system Xapian library
18
+ email: rlane@club.cc.cmu.edu
19
+ executables: []
20
+
21
+ extensions:
22
+ - extconf.rb
23
+ extra_rdoc_files: []
24
+
25
+ files:
26
+ - Rakefile
27
+ - extconf.rb
28
+ - xapian-bindings-1.1.3.tar.gz
29
+ - xapian-core-1.1.3.tar.gz
30
+ has_rdoc: true
31
+ homepage:
32
+ licenses: []
33
+
34
+ post_install_message:
35
+ rdoc_options:
36
+ - --charset=UTF-8
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: "0"
50
+ version:
51
+ requirements: []
52
+
53
+ rubyforge_project:
54
+ rubygems_version: 1.3.3
55
+ signing_key:
56
+ specification_version: 3
57
+ summary: xapian-core + Ruby xapian-bindings
58
+ test_files: []
59
+