Sha256: 1e5d5e8b8deababa44c5080973d24e98f41ed6b489196052140d78f9e3581080

Contents?: true

Size: 969 Bytes

Versions: 12

Compression:

Stored size: 969 Bytes

Contents

require_relative 'lib/filemagic/version'

begin
  require 'hen'

  file mgc = 'lib/filemagic/magic.mgc' do
    dir = ENV['WITH_CROSS_MAGIC']

    dir && File.exist?(src = File.join(dir, 'magic', File.basename(mgc))) ?
      cp(src, mgc) : File.binwrite(mgc, "\x1C\x04\x1E\xF1\x0C".ljust(248, "\0"))
  end

  Hen.lay! {{
    gem: {
      name:        %q{ruby-filemagic},
      version:     FileMagic::VERSION,
      summary:     'Ruby bindings to the magic(4) library',
      authors:     ['Travis Whitton', 'Jens Wille'],
      email:       'jens.wille@gmail.com',
      license:     %q{Ruby},
      homepage:    :blackwinter,
      local_files: [mgc],
      extension:   {
        with_cross_gnurx: lambda { |dir| [dir] },
        with_cross_magic: lambda { |dir| [src =
          File.join(dir, 'src'), File.join(src, '.libs')] }
      },

      required_ruby_version: '>= 1.9.3'
    }
  }}
rescue LoadError => err
  warn "Please install the `hen' gem. (#{err})"
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ruby-filemagic-0.7.1-x86-mingw32 Rakefile
ruby-filemagic-0.7.1-x86-mswin32-60 Rakefile
ruby-filemagic-0.7.1 Rakefile
ruby-filemagic-0.7.0-x86-mswin32-60 Rakefile
ruby-filemagic-0.7.0-x86-mingw32 Rakefile
ruby-filemagic-0.7.0 Rakefile
ruby-filemagic-0.6.3-x86-mswin32-60 Rakefile
ruby-filemagic-0.6.3-x86-mingw32 Rakefile
ruby-filemagic-0.6.3 Rakefile
ruby-filemagic-0.6.2-x86-mswin32-60 Rakefile
ruby-filemagic-0.6.2-x86-mingw32 Rakefile
ruby-filemagic-0.6.2 Rakefile