Mercurial > pub > dyncall > bindings
annotate ruby/rbdc/rbdc.gemspec @ 47:44045db8fa5f
PyCObject/PyCapsule not usable as type annotation
author | Tassilo Philipp |
---|---|
date | Fri, 13 Nov 2020 18:04:05 +0100 |
parents | 18e1f1bb1945 |
children |
rev | line source |
---|---|
0 | 1 #////////////////////////////////////////////////////////////////////// |
2 # | |
3 # rbdc.gemspec | |
27 | 4 # Copyright (c) 2007-2020 Daniel Adler <dadler@uni-goettingen.de>, |
0 | 5 # Tassilo Philipp <tphilipp@potion-studios.com> |
6 # | |
7 # Permission to use, copy, modify, and distribute this software for any | |
8 # purpose with or without fee is hereby granted, provided that the above | |
9 # copyright notice and this permission notice appear in all copies. | |
10 # | |
11 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
12 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
13 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
14 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
15 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
16 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
17 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
18 # | |
19 # Ruby gems specification file. | |
20 # | |
21 #/////////////////////////////////////////////////////////////////////// | |
22 | |
23 require 'rake' | |
6
80273969f043
- ruby binding path cleanup, previous version required bindings and dyncall be checked out in same parent directory
cslag
parents:
3
diff
changeset
|
24 #dyncall_dir = ENV['DC_DIR'] |
80273969f043
- ruby binding path cleanup, previous version required bindings and dyncall be checked out in same parent directory
cslag
parents:
3
diff
changeset
|
25 #FileUtils.symlink dyncall_dir, 'dyncall'#, :force => true |
0 | 26 |
27 Gem::Specification.new do |spec| | |
28 spec.name = 'rbdc' | |
29 spec.author = 'Tassilo Philipp' | |
30 spec.email = 'tphilipp@potion-studios.com' | |
31 spec.homepage = 'http://www.dyncall.org' | |
32 | |
33 spec.summary = 'foreign function interface for C calls' | |
34 spec.description = 'Ruby interface to dyncall, allowing programmers to call C functions in shared libraries from ruby without writing any glue code at all (e.g. "l.load(\'/usr/lib/libm.so\'); puts \'pow(2.0, 10.0) = \' + l.call(:pow, \'dd)d\', 2.0, 10.0).to_s")' | |
35 | |
27 | 36 spec.version = '1.1.0' |
0 | 37 spec.required_ruby_version = '>= 1.9.1' |
38 spec.license = 'ISC' | |
39 | |
6
80273969f043
- ruby binding path cleanup, previous version required bindings and dyncall be checked out in same parent directory
cslag
parents:
3
diff
changeset
|
40 # Note that this requires dyncall to live in this directory, create a symlink to the dyncall directory. |
80273969f043
- ruby binding path cleanup, previous version required bindings and dyncall be checked out in same parent directory
cslag
parents:
3
diff
changeset
|
41 spec.files = FileList['dyncall/**/*', 'rbdc.c'].exclude('dyncall/doc/**/*').exclude('dyncall/test/**/*').to_a |
80273969f043
- ruby binding path cleanup, previous version required bindings and dyncall be checked out in same parent directory
cslag
parents:
3
diff
changeset
|
42 spec.extensions << 'extconf.rb' |
0 | 43 end |
6
80273969f043
- ruby binding path cleanup, previous version required bindings and dyncall be checked out in same parent directory
cslag
parents:
3
diff
changeset
|
44 |