devel/ruby-corefoundation 0.3.19 NetBSD
Ruby wrapper for macOS Core Foundation framework
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
6ea245993a- License
- mit
- Categories
- devel, ruby
- Package size
- 30.7 KiB, 92.3 KiB installed
Description
CoreFoundation
FFI based wrappers for a subset of core foundation: various bits of CFString, CFData, CFArray, CFDictionary are available.
Although the CF collection classes can store arbitrary pointer sized values this wrapper only supports storing CFTypes.
The CF namespace has the raw FFI generated method calls but it's usually easier to use the wrapper classes: CF::String, CF::Date, CF::Array, CF::Dictionary, CF::Boolean which try to present a rubyish view of the world (for example CF::Array implements Enumerable).
These implement methods for creating new instances from ruby objects (eg CF::String.from_string("hello world")) but you can also pass build them from an FFI::Pointer).
Install
Binary package:
pkgin install ruby33-corefoundation
From pkgsrc:
cd /usr/pkgsrc/devel/ruby-corefoundation && make install clean
Dependencies
Run dependencies 2
Required by 1
Configuration
No options to configure.
- Service scripts
- none
- Flavors
ruby34-corefoundation-0.3.19,ruby40-corefoundation-0.3.19