Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (46 sloc) 2.076 kb
c5d3bca restructured to build rubygems-packages based on hoe and rake-compiler
Kanis-Küche authored
1 # -*- coding: utf-8 -*-
2 # -*- ruby -*-
3
4 require 'rubygems'
5 require 'hoe'
6 require 'rake/extensiontask'
7
7f3cf8c @larskanis renamed autogenerated files from *.c to *.inc to avoid problems with ext...
authored
8 CLEAN.include 'ext/pk11_struct_def.inc'
9 CLEAN.include 'ext/pk11_struct_impl.inc'
10 CLEAN.include 'ext/pk11_const_def.inc'
7b35d4b Add parser for PKCS#11 structs and generator for Ruby wrapper classes
Lars Kanis authored
11 CLEAN.include 'lib/pkcs11_ext.so'
7f3cf8c @larskanis renamed autogenerated files from *.c to *.inc to avoid problems with ext...
authored
12 CLEAN.include 'tmp'
7b35d4b Add parser for PKCS#11 structs and generator for Ruby wrapper classes
Lars Kanis authored
13
c5d3bca restructured to build rubygems-packages based on hoe and rake-compiler
Kanis-Küche authored
14 hoe = Hoe.spec 'pkcs11' do
15 developer('Ryosuke Kutsuna', 'ryosuke@deer-n-horse.jp')
16 developer('GOTOU Yuuzou', 'gotoyuzo@notwork.org')
17 developer('Lars Kanis', 'kanis@comcard.de')
dca40ba Add summary and description to Rakefile - were missing for the 0.1.0 rel...
Kanis-Küche authored
18
12b7ed0 Add project homepage to Rakefile, because it's misinterpretet from READM...
Kanis-Küche authored
19 self.url = 'http://github.com/larskanis/pkcs11'
dca40ba Add summary and description to Rakefile - were missing for the 0.1.0 rel...
Kanis-Küche authored
20 self.summary = 'PKCS#11 binding for Ruby'
21 self.description = 'This module allows Ruby programs to interface with "RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki)".'
22
9713aa5 Updated README file
Kanis-Küche authored
23 self.readme_file = 'README.rdoc'
e15e8e8 include pk11.c into rdoc to get PKCS.open documented
Kanis-Küche authored
24 self.extra_rdoc_files << self.readme_file << 'ext/pk11.c'
dce3a0c Adding "fat gem" compatible loader, set the default RUBY_CC_VERSION
Kanis-Küche authored
25 spec_extras[:extensions] = 'ext/extconf.rb'
7b35d4b Add parser for PKCS#11 structs and generator for Ruby wrapper classes
Lars Kanis authored
26 spec_extras[:files] = File.read_utf("Manifest.txt").split(/\r?\n\r?/)
7f3cf8c @larskanis renamed autogenerated files from *.c to *.inc to avoid problems with ext...
authored
27 spec_extras[:files] << 'ext/pk11_struct_impl.inc'
28 spec_extras[:files] << 'ext/pk11_struct_def.inc'
c5d3bca restructured to build rubygems-packages based on hoe and rake-compiler
Kanis-Küche authored
29 end
30
dce3a0c Adding "fat gem" compatible loader, set the default RUBY_CC_VERSION
Kanis-Küche authored
31 ENV['RUBY_CC_VERSION'] = '1.8.6:1.9.1'
32
33 Rake::ExtensionTask.new('pkcs11_ext', hoe.spec) do |ext|
34 ext.ext_dir = 'ext'
c5d3bca restructured to build rubygems-packages based on hoe and rake-compiler
Kanis-Küche authored
35 ext.cross_compile = true # enable cross compilation (requires cross compile toolchain)
36 ext.cross_platform = ['i386-mswin32', 'i386-mingw32'] # forces the Windows platform instead of the default one
37 end
38
7f3cf8c @larskanis renamed autogenerated files from *.c to *.inc to avoid problems with ext...
authored
39 file 'ext/extconf.rb' => 'ext/pk11_struct_def.inc'
40 file 'ext/pk11_struct_def.inc' => 'ext/generate_structs.rb' do
41 sh "ruby ext/generate_structs.rb --def ext/pk11_struct_def.inc --impl ext/pk11_struct_impl.inc --const ext/pk11_const_def.inc ext/include/pkcs11t.h"
7b35d4b Add parser for PKCS#11 structs and generator for Ruby wrapper classes
Lars Kanis authored
42 end
7f3cf8c @larskanis renamed autogenerated files from *.c to *.inc to avoid problems with ext...
authored
43 file 'ext/pk11_struct_impl.inc' => 'ext/pk11_struct_def.inc'
44 file 'ext/pk11.c' => 'ext/pk11_struct_def.inc'
45 file 'ext/pk11_const.c' => 'ext/pk11_struct_def.inc'
7b35d4b Add parser for PKCS#11 structs and generator for Ruby wrapper classes
Lars Kanis authored
46
f9b98d0 @larskanis deactivated github upload
authored
47 # RDoc-upload task for github (currently on rubyforge)
48 #
49 # require 'grancher/task'
50 # Grancher::Task.new do |g|
51 # g.branch = 'gh-pages' # alternatively, g.refspec = 'ghpages:/refs/heads/ghpages'
52 # g.push_to = 'origin'
53 # g.directory 'doc'
54 # end
cb0cde7 add grancher task for publishing rdoc to github
Kanis-Küche authored
55
c5d3bca restructured to build rubygems-packages based on hoe and rake-compiler
Kanis-Küche authored
56 # vim: syntax=ruby
Something went wrong with that request. Please try again.