File: Rakefile

package info (click to toggle)
ruby-nfc 3.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 160 kB
  • sloc: ansic: 304; ruby: 129; makefile: 5
file content (29 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (4)
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
# -*- ruby -*-

require 'rubygems'
require 'hoe'
gem 'rake-compiler', '>= 0.4.1'
require "rake/extensiontask"

Hoe.plugin :debugging
Hoe.plugin :git
Hoe.plugin :minitest

HOE = Hoe.spec('nfc') do
  developer('Aaron Patterson', 'aaron@tenderlovemaking.com')
  self.readme_file   = 'README.rdoc'
  self.history_file  = 'CHANGELOG.rdoc'
  self.extra_rdoc_files  = FileList['*.rdoc']
  self.spec_extras = { :extensions => ["ext/nfc/extconf.rb"] }
end

RET = Rake::ExtensionTask.new("nfc", HOE.spec) do |ext|
  ext.lib_dir = File.join('lib', 'nfc')
end

task :kill do
  pid = `sudo launchctl list | grep pcscd`[/^\d+/]
  `sudo kill #{pid}` if pid
end

# vim: syntax=Ruby