Common: move "pkgs/" to "bindings/" (closes #47)

This commit is contained in:
Alex Kotov 2022-06-09 04:25:27 +03:00
parent 4783132d95
commit 07fabcd2e8
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
91 changed files with 30 additions and 29 deletions

View File

@ -36,7 +36,7 @@ mruby_freebsd_task:
- sudo make install - sudo make install
mruby_test_script: mruby_test_script:
- cd mruby-3.1.0 - cd mruby-3.1.0
- MRUBY_CONFIG=../pkgs/mruby/build_config.rb rake test - MRUBY_CONFIG=../bindings/mruby/build_config.rb rake test
ruby_freebsd_task: ruby_freebsd_task:
name: Ruby (FreeBSD) name: Ruby (FreeBSD)
@ -59,11 +59,11 @@ ruby_freebsd_task:
- make - make
- sudo make install - sudo make install
ruby_build_script: ruby_build_script:
- cd pkgs/ruby - cd bindings/ruby
- ./bin/setup - ./bin/setup
- bundle exec rake compile - bundle exec rake compile
ruby_test_script: ruby_test_script:
- cd pkgs/ruby - cd bindings/ruby
- bundle exec rake - bundle exec rake
rust_freebsd_task: rust_freebsd_task:
@ -81,7 +81,7 @@ rust_freebsd_task:
- make - make
- sudo make install - sudo make install
rust_test_script: rust_test_script:
- cd pkgs/rust - cd bindings/rust
- ~/.cargo/bin/cargo test - ~/.cargo/bin/cargo test
- ~/.cargo/bin/cargo clippy - ~/.cargo/bin/cargo clippy
- ~/.cargo/bin/cargo fmt --check - ~/.cargo/bin/cargo fmt --check

View File

@ -30,13 +30,13 @@ jobs:
run: sudo make install run: sudo make install
- working-directory: vendor/mruby - working-directory: vendor/mruby
name: test name: test
run: MRUBY_CONFIG=../../pkgs/mruby/build_config.rb rake test run: MRUBY_CONFIG=../../bindings/mruby/build_config.rb rake test
- working-directory: pkgs/mruby - working-directory: bindings/mruby
name: setup name: setup
run: ./bin/setup run: ./bin/setup
- working-directory: pkgs/mruby - working-directory: bindings/mruby
name: lint name: lint
run: rake run: rake
- working-directory: pkgs/mruby - working-directory: bindings/mruby
name: cppcheck name: cppcheck
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability . run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability .

View File

@ -24,16 +24,16 @@ jobs:
run: make run: make
- name: install - name: install
run: sudo make install run: sudo make install
- working-directory: pkgs/ruby - working-directory: bindings/ruby
name: setup name: setup
run: ./bin/setup run: ./bin/setup
- working-directory: pkgs/ruby - working-directory: bindings/ruby
name: compile name: compile
run: rake compile run: rake compile
- working-directory: pkgs/ruby - working-directory: bindings/ruby
name: test & lint name: test & lint
run: rake run: rake
- working-directory: pkgs/ruby - working-directory: bindings/ruby
name: cppcheck name: cppcheck
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability . run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability .
@ -56,12 +56,12 @@ jobs:
run: make run: make
- name: install - name: install
run: sudo make install run: sudo make install
- working-directory: pkgs/ruby - working-directory: bindings/ruby
name: setup name: setup
run: ./bin/setup run: ./bin/setup
- working-directory: pkgs/ruby - working-directory: bindings/ruby
name: compile name: compile
run: rake compile run: rake compile
- working-directory: pkgs/ruby - working-directory: bindings/ruby
name: test & lint name: test & lint
run: rake run: rake

View File

@ -23,12 +23,12 @@ jobs:
run: make run: make
- name: install - name: install
run: sudo make install run: sudo make install
- working-directory: pkgs/rust - working-directory: bindings/rust
name: test name: test
run: cargo test run: cargo test
- working-directory: pkgs/rust - working-directory: bindings/rust
name: clippy name: clippy
run: cargo clippy run: cargo clippy
- working-directory: pkgs/rust - working-directory: bindings/rust
name: fmt name: fmt
run: cargo fmt --check run: cargo fmt --check

View File

@ -26,15 +26,15 @@ Ruby
### Matz's Ruby interpreter ### Matz's Ruby interpreter
See [pkgs/ruby/.rubocop.yml](/pkgs/ruby/.rubocop.yml) See [bindings/ruby/.rubocop.yml](/bindings/ruby/.rubocop.yml)
### mruby ### mruby
See [pkgs/mruby/.rubocop.yml](/pkgs/mruby/.rubocop.yml) See [bindings/mruby/.rubocop.yml](/bindings/mruby/.rubocop.yml)
Rust Rust
---- ----
See [pkgs/rust/rustfmt.toml](/pkgs/rust/rustfmt.toml) See [bindings/rust/rustfmt.toml](/bindings/rust/rustfmt.toml)

View File

@ -18,7 +18,7 @@ Add the following to your `build_config.rb`:
MRuby::Build.new do |conf| MRuby::Build.new do |conf|
# ... # ...
conf.gem github: 'tailix/libkernaux', conf.gem github: 'tailix/libkernaux',
path: 'pkgs/mruby', path: 'bindings/mruby',
branch: 'v0.3.0', branch: 'v0.3.0',
checksum_hash: 'bab58f40b53800265084ee7c767916ad0817fe5c' checksum_hash: 'bab58f40b53800265084ee7c767916ad0817fe5c'
# ... # ...

View File

@ -1,7 +1,8 @@
MRuby::Gem::Specification.new 'mruby-kernaux' do |spec| MRuby::Gem::Specification.new 'mruby-kernaux' do |spec|
spec.version = '0.3.0' spec.version = '0.3.0'
spec.license = 'MIT' spec.license = 'MIT'
spec.homepage = 'https://github.com/tailix/libkernaux/tree/master/pkgs/ruby' spec.homepage =
'https://github.com/tailix/libkernaux/tree/master/bindings/ruby'
spec.author = 'Alex Kotov' spec.author = 'Alex Kotov'
spec.summary = spec.summary =

View File

@ -6,7 +6,7 @@ author_email = kotovalexarian@gmail.com
description = Binding to libkernaux - auxiliary library for kernel development description = Binding to libkernaux - auxiliary library for kernel development
long_description = file: README.md long_description = file: README.md
long_description_content_type = text/markdown long_description_content_type = text/markdown
url = https://github.com/tailix/libkernaux/tree/master/pkgs/python url = https://github.com/tailix/libkernaux/tree/master/bindings/python
project_urls = project_urls =
Bug Tracker = https://github.com/tailix/libkernaux/issues Bug Tracker = https://github.com/tailix/libkernaux/issues
classifiers = classifiers =

View File

@ -4,7 +4,7 @@ require_relative 'lib/kernaux/version'
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
repo = 'https://github.com/tailix/libkernaux' repo = 'https://github.com/tailix/libkernaux'
home = "#{repo}/tree/master/pkgs/ruby" home = "#{repo}/tree/master/bindings/ruby"
bugs = "#{repo}/issues" bugs = "#{repo}/issues"
docs = "https://www.rubydoc.info/gems/kernaux/#{KernAux::VERSION}" docs = "https://www.rubydoc.info/gems/kernaux/#{KernAux::VERSION}"

View File

@ -5,8 +5,8 @@ authors = ["Alex Kotov <kotovalexarian@gmail.com>"]
edition = "2021" edition = "2021"
description = "Unsafe no-std binding to libkernaux - auxiliary library for kernel development" description = "Unsafe no-std binding to libkernaux - auxiliary library for kernel development"
readme = true readme = true
homepage = "https://github.com/tailix/libkernaux/tree/master/pkgs/rust" homepage = "https://github.com/tailix/libkernaux/tree/master/bindings/rust"
repository = "https://github.com/tailix/libkernaux/tree/master/pkgs/rust" repository = "https://github.com/tailix/libkernaux/tree/master/bindings/rust"
license = "MIT" license = "MIT"
keywords = ["ffi", "no_std", "no-std", "embedded", "bindings"] keywords = ["ffi", "no_std", "no-std", "embedded", "bindings"]
categories = ["embedded", "external-ffi-bindings", "no-std", "parsing"] categories = ["embedded", "external-ffi-bindings", "no-std", "parsing"]

View File

@ -5,8 +5,8 @@ authors = ["Alex Kotov <kotovalexarian@gmail.com>"]
edition = "2021" edition = "2021"
description = "Safe binding to libkernaux - auxiliary library for kernel development" description = "Safe binding to libkernaux - auxiliary library for kernel development"
readme = true readme = true
homepage = "https://github.com/tailix/libkernaux/tree/master/pkgs/rust" homepage = "https://github.com/tailix/libkernaux/tree/master/bindings/rust"
repository = "https://github.com/tailix/libkernaux/tree/master/pkgs/rust" repository = "https://github.com/tailix/libkernaux/tree/master/bindings/rust"
license = "MIT" license = "MIT"
keywords = ["ffi", "embedded", "bindings"] keywords = ["ffi", "embedded", "bindings"]
categories = ["api-bindings", "embedded", "parsing"] categories = ["api-bindings", "embedded", "parsing"]