# The devel/ruby-ffi,ruby40 port

## ruby40-ffi-1.17.2 – cross-platform dynamic library loading for ruby

## Description

    Ruby-FFI is a gem for programmatically loading dynamically-linked native
    libraries, binding functions within them, and calling those functions
    from Ruby code. Moreover, a Ruby-FFI extension works without changes on
    CRuby (MRI), JRuby, Rubinius and TruffleRuby.

    * Intuitive DSL
    * Supports all C native types
    * C structs (also nested), enums and global variables
    * Callbacks from C to Ruby
    * Automatic garbage collection of native memory
    * Usable in Ractor: How-to-use-FFI-in-Ruby-Ractors

WWW: https://github.com/ffi/ffi

Only for arches
  aarch64 aarch64 alpha amd64 amd64 arm arm hppa i386 i386 mips64 mips64 mips64el mips64el powerpc powerpc powerpc64 powerpc64 riscv64 riscv64 sparc64
Categories:
  devel lang/ruby

## Library dependencies

- devel/libffi
- lang/ruby/4.0

## Build dependencies

- STEM->=15,<16:lang/gcc/15
- lang/ruby/4.0

## Run dependencies

- lang/ruby/4.0