forked from flori/amatch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
33 lines (30 loc) · 1.13 KB
/
Rakefile
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
# vim: set filetype=ruby et sw=2 ts=2:
require 'gem_hadar'
GemHadar do
name 'amatch'
author 'Florian Frank'
email 'flori@ping.de'
homepage "http://github.com/flori/#{name}"
summary 'Approximate String Matching library'
description <<EOT
Amatch is a library for approximate string matching and searching in strings.
Several algorithms can be used to do this, and it's also possible to compute a
similarity metric number between 0.0 and 1.0 for two given strings.
EOT
executables << 'agrep.rb'
bindir 'bin'
test_dir 'tests'
ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock'
title "#{name.camelize} - Approximate Matching"
readme 'README.rdoc'
require_paths %w[lib ext]
dependency 'tins', '~>0.3'
development_dependency 'test-unit', '~>2.3'
install_library do
libdir = CONFIG["sitelibdir"]
src, = Dir['ext/amatch.*'].reject { |x| x =~ /\.[co]$/ }
install(src, File.join(libdir, File.basename(src)), :verbose => true)
mkdir_p dst = File.join(libdir, 'amatch')
install('lib/amatch/version.rb', File.join(dst, 'version.rb'), :verbose => true)
end
end