Sha256: 51db6327b638fae4a8fc7b2834037bb4e8c96d32190d94ae2ffd4a4ea3733a32
Contents?: true
Size: 999 Bytes
Versions: 1
Compression:
Stored size: 999 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: { cross_compile: false, 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-filemagic-0.7.2 | Rakefile |