File: magic.gemspec

package info (click to toggle)
ruby-magic 0.2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 140 kB
  • sloc: ruby: 182; makefile: 8
file content (52 lines) | stat: -rw-r--r-- 2,486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-

lib = File.expand_path("../lib/", __FILE__)
$:.unshift lib unless $:.include?(lib)

require "magic/version"

Gem::Specification.new do |s|
  s.name = "magic"
  s.version = Magic::VERSION
  s.platform = Gem::Platform::RUBY
  s.authors = ["Jakub Kuźma"]
  s.email = "qoobaa@gmail.com"
  s.homepage = "http://jah.pl/projects/magic.html"
  s.summary = 'Determine file type and encoding using "magic" numbers'
  s.description = "Ruby FFI bindings to libmagic"

  s.required_rubygems_version = ">= 1.3.6"

  s.add_runtime_dependency "ffi", [">= 0.6.3"]
  s.add_development_dependency "test-unit", [">= 2.0"]

  s.files = Dir.glob("lib/**/*") + %w(LICENSE README.rdoc)

  s.post_install_message = <<-EOM
+-NOTE FOR LINUX USERS----------------------------------------------+
|                                                                   |
| Install libmagic using your package manager, e.g.                 |
|                                                                   |
|   sudo apt-get install file                                       |
|                                                                   |
+-NOTE FOR WINDOWS USERS -------------------------------------------+
|                                                                   |
| Install File for Windows from                                     |
|                                                                   |
|   http://gnuwin32.sourceforge.net/packages/file.htm               |
|                                                                   |
| You'll also need to set your PATH environment variable to the     |
| directory of the magic1.dll file                                  |
|                                                                   |
|   set PATH=C:\\Program Files\\GnuWin32\\bin;%PATH%                   |
|                                                                   |
+-NOTE FOR MAC OS USERS --------------------------------------------+
|                                                                   |
| If you don't have libmagic.1.dylib file in your system, you need  |
| to install it using port command                                  |
|                                                                   |
|   sudo port install file                                          |
|                                                                   |
+-------------------------------------------------------------------+
  EOM
end