xapian-ruby 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ##1.2.6 (July 8th, 2011)
2
+
3
+ Initial release
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 Gernot Kogler
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = Xapian-Ruby
2
+
3
+ Xapian-Ruby installs the current xapian lib and ruby bindings
data/Rakefile ADDED
@@ -0,0 +1,52 @@
1
+ # encoding: utf-8
2
+ # Install the xapian binaries into the lib folder of the gem
3
+
4
+ require 'rbconfig'
5
+ c = Config::CONFIG
6
+
7
+ def system!(cmd)
8
+ puts cmd
9
+ system(cmd) or raise
10
+ end
11
+
12
+ ver = '1.2.6'
13
+ source_dir = 'xapian_source'
14
+ core = "xapian-core-#{ver}"
15
+ bindings = "xapian-bindings-#{ver}"
16
+ xapian_config = "#{Dir.pwd}/#{core}/xapian-config"
17
+
18
+ task :default do
19
+ [core,bindings].each do |x|
20
+ system! "tar -xzvf #{source_dir}/#{x}.tar.gz"
21
+ end
22
+
23
+ prefix = Dir.pwd
24
+ ENV['LDFLAGS'] = "-R#{prefix}/lib"
25
+
26
+ system! "mkdir -p lib"
27
+
28
+ Dir.chdir core do
29
+ system! "./configure --prefix=#{prefix} --exec-prefix=#{prefix}"
30
+ system! "make clean all"
31
+ system! "cp -r .libs/* ../lib/"
32
+ end
33
+
34
+ Dir.chdir bindings do
35
+ ENV['RUBY'] ||= "#{c['bindir']}/#{c['RUBY_INSTALL_NAME']}"
36
+ ENV['XAPIAN_CONFIG'] = xapian_config
37
+ system! "./configure --prefix=#{prefix} --exec-prefix=#{prefix} --with-ruby"
38
+ system! "make clean all"
39
+ end
40
+
41
+ system! "cp -r #{bindings}/ruby/.libs/_xapian.* lib"
42
+ system! "cp #{bindings}/ruby/xapian.rb lib"
43
+
44
+ system! "rm lib/*.a"
45
+ system! "rm lib/*.la"
46
+ system! "rm lib/*.lai"
47
+
48
+ system! "rm -R #{bindings}"
49
+ system! "rm -R #{core}"
50
+ system! "rm -R #{source_dir}"
51
+
52
+ end
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xapian-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.6
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Gernot Kogler
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-07-07 00:00:00.000000000 +02:00
13
+ default_executable:
14
+ dependencies: []
15
+ description:
16
+ email: gernot.kogler (at) garaio (dot) com
17
+ executables: []
18
+ extensions:
19
+ - Rakefile
20
+ extra_rdoc_files: []
21
+ files:
22
+ - xapian_source/xapian-bindings-1.2.6.tar.gz
23
+ - xapian_source/xapian-core-1.2.6.tar.gz
24
+ - LICENSE
25
+ - README.rdoc
26
+ - CHANGELOG.md
27
+ - Rakefile
28
+ has_rdoc: true
29
+ homepage: https://github.com/garaio/xapian-ruby
30
+ licenses: []
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 1.3.6
47
+ requirements: []
48
+ rubyforge_project:
49
+ rubygems_version: 1.6.2
50
+ signing_key:
51
+ specification_version: 3
52
+ summary: xapian libraries and ruby bindings
53
+ test_files: []