mruby: create package

This commit is contained in:
Alex Kotov 2022-01-30 08:03:44 +05:00
parent 3cac0cc952
commit 3ea3c4b46c
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
4 changed files with 32 additions and 0 deletions

6
pkgs/mruby/README.md Normal file
View File

@ -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.

15
pkgs/mruby/mrbgem.rake Normal file
View File

@ -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

8
pkgs/mruby/src/main.c Normal file
View File

@ -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");
}

3
pkgs/mruby/test/dummy.rb Normal file
View File

@ -0,0 +1,3 @@
assert 'Main module exists' do
assert_equal KernAux, ::KernAux
end