diff --git a/README.rdoc b/README.rdoc index 1a403b1..78ab4f8 100644 --- a/README.rdoc +++ b/README.rdoc @@ -44,6 +44,16 @@ while binaries for libxslt and libexslt areprovided in the libxslt-ruby bindings. +Installation from source: + +ruby ext/libxslt/extconf.rb +make +sudo make install + +gem build libxslt-ruby.gemspec +gem install libxslt-ruby-1.1.1.gem + + == USAGE For in-depth information about using libxslt-ruby please refer diff --git a/ext/libxslt/extconf.rb b/ext/libxslt/extconf.rb index 6cd38e5..5ecfc63 100755 --- a/ext/libxslt/extconf.rb +++ b/ext/libxslt/extconf.rb @@ -126,12 +126,12 @@ def crash(str) RUBY_VERSION =~ /(\d+.\d+)/ minor_version = $1 -paths = ["#{gem_spec.full_gem_path}/lib", +paths = ["#{gem_spec.full_gem_path}/lib", "#{gem_spec.full_gem_path}/lib/#{minor_version}", "#{gem_spec.full_gem_path}/ext/libxml"] # No need to link xml_ruby on OS X -unless RbConfig::CONFIG['host_os'].match(/darwin/) +unless RbConfig::CONFIG['host_os'].match(/darwin|linux/) # Hack to make sure ruby library is *after* xml_ruby library $LIBS = "#{$LIBRUBYARG_STATIC} #{$LIBS}" diff --git a/libxslt-ruby.gemspec b/libxslt-ruby.gemspec index e821967..87de130 100644 --- a/libxslt-ruby.gemspec +++ b/libxslt-ruby.gemspec @@ -1,4 +1,5 @@ # encoding: utf-8 +require 'date' # Determine the current version of the software version = File.read('ext/libxslt/version.h').match(/\s*RUBY_LIBXSLT_VERSION\s*['"](\d.+)['"]/)[1]