mirror of https://github.com/tailix/libkernaux.git
mruby: create package
This commit is contained in:
parent
3cac0cc952
commit
3ea3c4b46c
|
@ -0,0 +1,6 @@
|
|||
KernAux
|
||||
=======
|
||||
|
||||
[![Test](https://github.com/tailix/libkernaux/actions/workflows/test.yml/badge.svg)](https://github.com/tailix/libkernaux/actions/workflows/test.yml)
|
||||
|
||||
Binding to **libkernaux** - auxiliary library for kernel development.
|
|
@ -0,0 +1,15 @@
|
|||
MRuby::Gem::Specification.new 'mruby-kernaux' do |spec|
|
||||
spec.version = '0.0.0'
|
||||
spec.license = 'MIT'
|
||||
spec.homepage = 'https://github.com/tailix/libkernaux/tree/master/pkgs/ruby'
|
||||
spec.author = 'Alex Kotov'
|
||||
|
||||
spec.summary =
|
||||
'Binding to libkernaux - auxiliary library for kernel development'
|
||||
|
||||
spec.description = <<~DESCRIPTION.split("\n").map(&:strip).join ' '
|
||||
Binding to libkernaux - auxiliary library for kernel development.
|
||||
DESCRIPTION
|
||||
|
||||
spec.linker.libraries << 'kernaux'
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
#include <mruby.h>
|
||||
|
||||
void mrb_mruby_kernaux_gem_final(mrb_state *mrb) {}
|
||||
|
||||
void mrb_mruby_kernaux_gem_init(mrb_state *mrb)
|
||||
{
|
||||
struct RClass *const rb_KernAux = mrb_define_module(mrb, "KernAux");
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
assert 'Main module exists' do
|
||||
assert_equal KernAux, ::KernAux
|
||||
end
|
Loading…
Reference in New Issue