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
|
# vim: set filetype=ruby et sw=2 ts=2:
require 'gem_hadar'
GemHadar do
name 'file-tail'
path_name 'file/tail'
author 'Florian Frank'
email 'flori@ping.de'
homepage "http://github.com/flori/#{name}"
summary "#{path_name.camelize} for Ruby"
description 'Library to tail files in Ruby'
test_dir 'tests'
ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', 'coverage', '*.rbc', '.rbx'
readme 'README.rdoc'
dependency 'tins', '~>0.4.3'
development_dependency 'test-unit', '~>2.4.0'
install_library do
cd 'lib' do
libdir = CONFIG["sitelibdir"]
dest = File.join(libdir, 'file')
mkdir_p(dest)
dest = File.join(libdir, path_name)
install(path_name + '.rb', dest + '.rb', :verbose => true)
mkdir_p(dest)
for file in Dir[File.join(path_name, '*.rb')]
install(file, dest, :verbose => true)
end
end
bindir = CONFIG["bindir"]
install('bin/rtail', bindir, :verbose => true, :mode => 0755)
end
end
|