Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (31 sloc) 0.898 kb
require 'hoe'
require 'lib/nis/version.rb'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "nis"
gem.summary = %Q{Provides an interface for NIS(YP) API.}
gem.description = %Q{Provides an interface for NIS(YP) API.}
gem.email = 'ttate@users.sourceforge.net'
gem.homepage = 'http://raa.ruby-lang.org/project/ruby-nis/'
gem.authors = ['Takaaki Tateishi']
gem.version = NIS::VERSION
gem.files.include "lib/nis/nis.so"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
task 'ext/nis/Makefile' do
Dir.chdir('ext/nis') do
ruby "extconf.rb"
end
end
task 'lib/nis/nis.so' => 'ext/nis/Makefile' do
Dir.chdir('ext/nis') do
sh 'make'
end
FileUtils.cp 'ext/nis/nis.so', 'lib/nis'
end
task :build => 'lib/nis/nis.so'
task :default => [:build]
Jump to Line
Something went wrong with that request. Please try again.