{"id":20313177,"url":"https://github.com/cyberarm/mruby-gosu","last_synced_at":"2025-04-11T16:52:07.099Z","repository":{"id":140550859,"uuid":"212910419","full_name":"cyberarm/mruby-gosu","owner":"cyberarm","description":"mruby wrapper around Gosu","archived":false,"fork":false,"pushed_at":"2024-05-30T14:43:21.000Z","size":3405,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T12:53:38.274Z","etag":null,"topics":["gosu","mruby","ruby"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cyberarm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-04T22:11:30.000Z","updated_at":"2024-05-30T14:43:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"d61dd73a-2671-4bea-a066-ee035bc47c89","html_url":"https://github.com/cyberarm/mruby-gosu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberarm%2Fmruby-gosu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberarm%2Fmruby-gosu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberarm%2Fmruby-gosu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberarm%2Fmruby-gosu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyberarm","download_url":"https://codeload.github.com/cyberarm/mruby-gosu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248443183,"owners_count":21104356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gosu","mruby","ruby"],"created_at":"2024-11-14T18:09:44.942Z","updated_at":"2025-04-11T16:52:07.073Z","avatar_url":"https://github.com/cyberarm.png","language":"C","readme":"# mruby-gosu\nmruby wrapper around [Gosu](https://github.com/gosu/gosu)\n\n**Status:**\n* Compatible with Gosu 1.4.4\n* An [updated version](https://github.com/cyberarm/jcaster) of Jahmaican's original [jCaster](https://github.com/Jahmaican/jcaster) fully works.\n\n## Usage\nAdd this mruby gem to your build_config.rb\n```ruby\nconf.gem github: \"cyberarm/mruby-gosu\"\n```\n\n## Development\n### Unix\n* Install [Gosu](https://github.com/gosu/gosu) as a system library, [see wiki](https://github.com/gosu/gosu/wiki/Getting-Started-on-Linux#compiling-gosu-for-c).\n(Note: may need to edit `gosu/build/cmake_install.cmake` to change `set(CMAKE_INSTALL_PREFIX \"/usr/local\")` to `set(CMAKE_INSTALL_PREFIX \"/usr\")` before running `sudo make install`)\n\nSample MRuby Build Configuration\n```ruby\nMRuby::Build.new do |conf|\n  conf.toolchain\n\n  # include the default GEMs\n  conf.gembox \"default\"\n\n  conf.gem github: \"cyberarm/mruby-gosu\"\n  conf.gem github: \"mattn/mruby-require\"\n\n  # C compiler settings\n  conf.cc.defines = %w(MRB_USE_DEBUG_HOOK MRB_INT64)\n  conf.enable_debug\n  conf.enable_cxx_abi\n  conf.enable_test\nend\n```\n\n### Windows\n* Clone Gosu\n* Build Gosu as a `Release` for `x86` or `x64` with Visual Studio 19 or 22\n* Copy the built `gosu-ffi.lib` file into to the `/gosu/lib/` directory or `/gosu/lib64/` for `x64`\n* Visual Studio should have placed `Gosu.lib` into the same directory\n* Open a MSYS2 console or use `$env:Path += \";PATH_TO_UCRT_BIN\"` in PowerShell\n* Build MRuby e.g. `rake MRUBY_CONFIG=gosu --verbose`\n* Copy `gosu-ffi.dll` and `SDL2.dll` into `/mruby/bin/`\n\n#### MSYS2 UCRT\nSample MRuby Build configuration\n```ruby\nMRuby::Build.new do |conf|\n  conf.toolchain :gcc\n\n  # include the default GEMs\n  conf.gembox \"default\"\n\n  conf.gem github: \"cyberarm/mruby-gosu\"\n  conf.gem github: \"mattn/mruby-require\"\n\n  # C compiler settings\n  conf.cc.defines \u003c\u003c \"MRB_INT64\"\n  conf.cc.flags \u003c\u003c \"-fpermissive\" # Needed for mruby-require\n  conf.enable_cxx_abi\n  conf.enable_debug\nend\n```\n\n#### Visual C++\nNo instructions available yet.\n\nMSYS2 UCRT's instructions might work with MSVC 140 sans `:gcc` (I had 143 installed)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberarm%2Fmruby-gosu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyberarm%2Fmruby-gosu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberarm%2Fmruby-gosu/lists"}