Skip to content

Commit ea4b621

Browse files
author
Gernot Kogler
committed
initial setup
0 parents  commit ea4b621

File tree

9 files changed

+94
-0
lines changed

9 files changed

+94
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.tmproj

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
##1.2.6 (July 8th, 2011)
2+
3+
Initial release

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.

README.rdoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
= Xapian-Ruby
2+
3+
Xapian-Ruby installs the current xapian libs and ruby bindings

Rakefile

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

xapian-ruby-1.2.6.gem

5.23 MB
Binary file not shown.

xapian-ruby.gemspec

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- encoding: utf-8 -*-
2+
lib = File.expand_path('../lib/', __FILE__)
3+
$:.unshift lib unless $:.include?(lib)
4+
5+
Gem::Specification.new do |s|
6+
s.name = %q{xapian-ruby}
7+
s.version = "1.2.6"
8+
s.authors = ["Gernot Kogler"]
9+
s.summary = %q{xapian libraries and ruby bindings}
10+
s.email = %q{gernot.kogler (at) garaio (dot) com}
11+
s.homepage = %q{https://github.com/garaio/xapian-ruby}
12+
s.extensions = ["Rakefile"]
13+
s.required_rubygems_version = ">=1.3.6"
14+
s.files = Dir.glob("xapian_source/*") + %w(LICENSE README.rdoc CHANGELOG.md Rakefile)
15+
end
1.36 MB
Binary file not shown.
3.87 MB
Binary file not shown.

0 commit comments

Comments
 (0)