Sha256: ade8307d6f8aa34cca1a12b58322dce258c38dcedb7ebf7893c30e4f0fd50e83

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

require 'mkmf'

def barf message = 'dependencies not met'
  raise message
end

barf unless have_header('ruby.h')

if pkg_config('xmlsec1-openssl')
  # HACK 'openssl' is escaped too many times, I don't know why
  if $CFLAGS =~ /\-DXMLSEC_CRYPTO=\\\\\\"openssl\\\\\\"/
    $CFLAGS['-DXMLSEC_CRYPTO=\\\\\\"openssl\\\\\\"'] =
      '-DXMLSEC_CRYPTO=\\"openssl\\"'
  end
  
  have_library 'xmlsec1-openssl'
  create_makefile('nokogiri_ext_xmlsec')
else
  barf "xmlsec1 is not installed."
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
money-nokogiri-xmlsec-0.0.5 ext/nokogiri_ext_xmlsec/extconf.rb
nokogiri-xmlsec-ap-0.0.5 ext/nokogiri_ext_xmlsec/extconf.rb
nokogiri-xmlsec-0.0.4 ext/nokogiri_ext_xmlsec/extconf.rb
nokogiri-xmlsec-0.0.3 ext/nokogiri_ext_xmlsec/extconf.rb