Inline::C allows you to embed C/Ruby directly in ruby scripts Maintained by:clsung@FreeBSD.org Port Added: 03 Dec 2006 13:31:50 Also Listed In:rubygems
Ruby Inline is an analog to Perl's Inline::C. Out of the box, it allows you to
embed C/++ external module code in your ruby script directly. By writing
simple builder classes, you can teach how to cope with new languages (fortran,
perl, whatever). The code is compiled and run on the fly when needed.
Using the package_inline tool Inline now allows you to package up your
inlined object code for distribution to systems without a compiler
(read: windows)!
FEATURES/PROBLEMS:
* Quick and easy inlining of your C or C++ code embedded in your ruby
script.
* Extendable to work with other languages.
* Automatic conversion between ruby and C basic types
o char, unsigned, unsigned int, char *, int, long, unsigned long
* inline_c_raw exists for when the automatic conversion isn't
sufficient.
* Only recompiles if the inlined code has changed.
* Pretends to be secure.
* Only requires standard ruby libraries, nothing extra to download.
* Can generate a basic Rakefile and package up built extensions for
distribution.
WWW: http://rubyforge.org/projects/rubyinline/
- Add ruby 1.9 support
- Implement new knobs for gems and rake (these are included in
ruby 1.9 distribution already). Also move gem bits from
ruby-gems/Makefile.common to bsd.ruby.mk[1]. Now to depend
on gems or rake you should define USE_RUBYGEMS/USE_RAKE
accordingly. Also RAKE_BIN variable is provided for
pointing to the right rake executable.
- Rewrite RUBY_SCHEBANG in awk to eliminate build dependency
on ruby.
Discussed with: Jonathan Weiss <jw@innerewut.de> [1] (gems maintainer)
Tested by: ports@