xapian-core 1.2.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of xapian-core might be problematic. Click here for more details.

data/ext/Rakefile ADDED
@@ -0,0 +1,42 @@
1
+ require 'rbconfig'
2
+ c = Config::CONFIG
3
+
4
+ def system!(cmd)
5
+ puts cmd
6
+ system(cmd) or raise
7
+ end
8
+
9
+ ver = '1.2.3'
10
+ core = "xapian-core-#{ver}"
11
+ bindings = "xapian-bindings-#{ver}"
12
+ xapian_config = "#{Dir.pwd}/#{core}/xapian-config"
13
+
14
+ task :default do
15
+ [core,bindings].each do |x|
16
+ system! "tar -xzvf #{x}.tar.gz"
17
+ end
18
+
19
+ prefix = File.dirname(Dir.pwd)
20
+ puts "prefix = #{prefix}"
21
+
22
+ ENV['LDFLAGS'] = "-R#{prefix}/lib"
23
+
24
+ Dir.chdir core do
25
+ system! "./configure --prefix=#{prefix} --exec-prefix=#{prefix}"
26
+ system! "make clean all install"
27
+
28
+ # Alternatively to only install libraries
29
+ # system! "cp -r .libs/* ../lib/"
30
+ end
31
+
32
+ Dir.chdir bindings do
33
+ ENV['RUBY'] ||= "#{c['bindir']}/#{c['RUBY_INSTALL_NAME']}"
34
+ ENV['XAPIAN_CONFIG'] = xapian_config
35
+
36
+ system! "./configure --prefix=#{prefix} --exec-prefix=#{prefix} --with-ruby"
37
+ system! "make clean all"
38
+
39
+ system! "cp -r ./ruby/.libs/_xapian.* #{prefix}/lib"
40
+ system! "cp ./ruby/xapian.rb #{prefix}/lib"
41
+ end
42
+ end
Binary file
Binary file
@@ -0,0 +1,24 @@
1
+ # Copyright (c) 2007 Samuel Williams. Released under the GNU GPLv3.
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+ module Xapian
17
+ module VERSION #:nodoc:
18
+ MAJOR = 1
19
+ MINOR = 2
20
+ TINY = 3
21
+
22
+ STRING = [MAJOR, MINOR, TINY].join('.')
23
+ end
24
+ end
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xapian-core
3
+ version: !ruby/object:Gem::Version
4
+ hash: 25
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 2
9
+ - 3
10
+ version: 1.2.3
11
+ platform: ruby
12
+ authors:
13
+ - Samuel Williams
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-12-16 00:00:00 +13:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description:
23
+ email: samuel.williams@oriontransfer.co.nz
24
+ executables: []
25
+
26
+ extensions:
27
+ - ext/Rakefile
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - ext/Rakefile
32
+ - ext/xapian-bindings-1.2.3.tar.gz
33
+ - ext/xapian-core-1.2.3.tar.gz
34
+ - lib/xapian/version.rb
35
+ has_rdoc: true
36
+ homepage: http://www.oriontransfer.co.nz/software/xapian
37
+ licenses: []
38
+
39
+ post_install_message:
40
+ rdoc_options: []
41
+
42
+ require_paths:
43
+ - lib
44
+ required_ruby_version: !ruby/object:Gem::Requirement
45
+ none: false
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ hash: 3
50
+ segments:
51
+ - 0
52
+ version: "0"
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
62
+ requirements: []
63
+
64
+ rubyforge_project:
65
+ rubygems_version: 1.3.7
66
+ signing_key:
67
+ specification_version: 3
68
+ summary: Xapian is a framework for fast full-text searching.
69
+ test_files: []
70
+