From 2ed8d5550f9665e42a21b8407213150e95d8f0ef Mon Sep 17 00:00:00 2001 From: Tony Goncalves Date: Thu, 4 Jan 2018 21:42:22 +0000 Subject: [PATCH 1/4] Avoid linking to libxml-ruby at compile time --- ext/libxslt/extconf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}" From 531d38f3c72ba8877f859521f2366abe0ced64cd Mon Sep 17 00:00:00 2001 From: Isabel Drost-Fromm Date: Wed, 11 Jul 2018 10:57:17 +0200 Subject: [PATCH 2/4] Add info on how to build and install from source. --- README.rdoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.rdoc b/README.rdoc index 1a403b1..1cca511 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 xslt-ruby.gemspec +gem install xslt-ruby-1.1.1.gem + + == USAGE For in-depth information about using libxslt-ruby please refer From 69bd5cc3fcd047960ed659e1542447f8a23ad425 Mon Sep 17 00:00:00 2001 From: Isabel Drost-Fromm Date: Wed, 11 Jul 2018 10:57:50 +0200 Subject: [PATCH 3/4] Add require date to get gem install to work. --- libxslt-ruby.gemspec | 1 + 1 file changed, 1 insertion(+) 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] From cf69596439151aa5fec86472f6f95305d605c809 Mon Sep 17 00:00:00 2001 From: Isabel Drost-Fromm Date: Wed, 11 Jul 2018 11:05:11 +0200 Subject: [PATCH 4/4] Fix typo --- README.rdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rdoc b/README.rdoc index 1cca511..78ab4f8 100644 --- a/README.rdoc +++ b/README.rdoc @@ -50,8 +50,8 @@ ruby ext/libxslt/extconf.rb make sudo make install -gem build xslt-ruby.gemspec -gem install xslt-ruby-1.1.1.gem +gem build libxslt-ruby.gemspec +gem install libxslt-ruby-1.1.1.gem == USAGE