annotate ruby/rbdc/rbdc.gemspec @ 10:6493c9ed4b33

- ruby and python binding readme updates
author cslag
date Sat, 26 Mar 2016 01:10:22 +0100
parents 80273969f043
children 681db37a300c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 #//////////////////////////////////////////////////////////////////////
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2 #
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 # rbdc.gemspec
1
5e159be89d73 - ruby and sh binding updates for dc r0.9
cslag
parents: 0
diff changeset
4 # Copyright (c) 2007-2015 Daniel Adler <dadler@uni-goettingen.de>,
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 # Tassilo Philipp <tphilipp@potion-studios.com>
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 #
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 # Permission to use, copy, modify, and distribute this software for any
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 # purpose with or without fee is hereby granted, provided that the above
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 # copyright notice and this permission notice appear in all copies.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 #
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18 #
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 # Ruby gems specification file.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20 #
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 #///////////////////////////////////////////////////////////////////////
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
22
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
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
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
26
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
27 Gem::Specification.new do |spec|
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
28 spec.name = 'rbdc'
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
29 spec.author = 'Tassilo Philipp'
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
30 spec.email = 'tphilipp@potion-studios.com'
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
31 spec.homepage = 'http://www.dyncall.org'
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
32
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
33 spec.summary = 'foreign function interface for C calls'
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
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")'
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
35
1
5e159be89d73 - ruby and sh binding updates for dc r0.9
cslag
parents: 0
diff changeset
36 spec.version = '0.9.0'
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
37 spec.required_ruby_version = '>= 1.9.1'
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
38 spec.license = 'ISC'
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
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
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
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