summaryrefslogtreecommitdiffstats
path: root/classes/rubyv2.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* rubyv2: copy gemspec files if providedBruce Ashfield2024-10-121-0/+5
| | | | | | | | | Rather than generating a spec file from a gem (which we don't have when building from source) or patching it in, it is easier if we just provide it on the SRC_URI and copy it into place. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* ruby/rubyv2: add new rubyv2 bbclass and support external extconfBruce Ashfield2024-10-111-0/+322
When building/installing gems with native components, the target OS and cross compile settings were not correctly being picked up. Enhance the existing bbclass with the ability to copy a extconf.rb from UNPACKDIR, so a recipe can specify fixes in it's own copy of the file. We also bring in a class from meta-rubygems which has more advanced cross compile settings. There are a few minor modifications to this class (copying of extconf.rb) and some spec generation. But it is now available if the basic ruby class cannot compile and install a gem. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>