BSD Ports

devel/rubygem-rubyinline 3.14.2 MidnightBSD

Inline::C allows you to embed C/Ruby directly in ruby scripts

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
devel, rubygems

Description

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.

See also: https://github.com/seattlerb/rubyinline

In the other systems

SystemPortVersion
MidnightBSDdevel/rubygem-rubyinline3.14.2
FreeBSDdevel/rubygem-rubyinline3.14.4
DragonFlydevel/rubygem-rubyinline3.14.2

Install

Binary package:

mport install rubyinline

From mports:

cd /usr/mports/devel/rubygem-rubyinline && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	rubyinline>0:devel/rubygem-rubyinline

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

Build dependencies 1
Run dependencies 1

Configuration

No options to configure.

USES
gem shebangfix
Service scripts
none

Files

distinfo 1
FileSizeSHA256
rubygem/RubyInline-3.14.2.gem31232211cbec89f1961a4bc8d49f75540546c19942984b218d7d0c66575a82c54da10
Master sites 1
  • RG