Sha256: 8144972f4a4f18a0657e46b814546b0dd330460e2619545fff5dbc05641809c9
Contents?: true
Size: 1008 Bytes
Versions: 3
Compression:
Stored size: 1008 Bytes
Contents
require 'rubygems' require 'rubygems/command.rb' require 'rubygems/dependency_installer.rb' require 'rbconfig' begin Gem::Command.build_args = ARGV rescue NoMethodError end puts "xapian: platform specific dependencies.." inst = Gem::DependencyInstaller.new begin if !RbConfig::CONFIG['arch'].include?('openbsd') # update version in Gemfile as well name = "xapian-ruby" version = "~> 1.2.15" begin # try to load gem gem name, version STDERR.puts "xapian: already installed." rescue Gem::LoadError STDERR.puts "xapian: installing xapian-ruby.." inst.install name, version end else STDERR.puts "xapian: openbsd: you have to install xapian-core and xapian-bindings manually, have a look at: https://github.com/sup-heliotrope/sup/wiki/Installation%3A-OpenBSD" end rescue exit(1) end # create dummy rakefile to indicate success f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") f.write("task :default\n") f.close
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sup-0.22.1 | ext/mkrf_conf_xapian.rb |
sup-0.21.0 | ext/mkrf_conf_xapian.rb |
sup-0.20.0 | ext/mkrf_conf_xapian.rb |