This updates lang/mruby to disable use of debug mode (still the default in the upstream build). It also only builds a single configuration, instead of 3 separate configurations. This cuts the build time to about a third of the previous build time, making it much faster to build.
Tested on amd64. Will be committing in a few days unless I hear objections. Thanks to jca@ for pointing out that the debug build was used by default, and fixing the build output to display the actual commands, in addition to fixing mruby to respect CC. Thanks, Jeremy Index: Makefile =================================================================== RCS file: /cvs/ports/lang/mruby/Makefile,v retrieving revision 1.4 diff -u -p -r1.4 Makefile --- Makefile 27 Feb 2017 21:33:43 -0000 1.4 +++ Makefile 3 Mar 2017 05:22:10 -0000 @@ -6,6 +6,7 @@ COMMENT = lightweight, embeddable imple VERSION = 1.2.0 DISTNAME = mruby-${VERSION} +REVISION = 0 CATEGORIES = lang HOMEPAGE = https://github.com/mruby/mruby Index: patches/patch-build_config_rb =================================================================== RCS file: patches/patch-build_config_rb diff -N patches/patch-build_config_rb --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-build_config_rb 3 Mar 2017 05:29:51 -0000 @@ -0,0 +1,35 @@ +$OpenBSD$ + +Don't build in debug mode by default. + +Only build binaries we plan to use. + +--- build_config.rb.orig Tue Nov 17 01:02:30 2015 ++++ build_config.rb Thu Mar 2 21:29:29 2017 +@@ -8,7 +8,7 @@ MRuby::Build.new do |conf| + toolchain :gcc + end + +- enable_debug ++ #enable_debug + + # Use mrbgems + # conf.gem 'examples/mrbgems/ruby_extension_example' +@@ -105,7 +105,7 @@ MRuby::Build.new('host-debug') do |conf| + + # bintest + # conf.enable_bintest +-end ++end if false + + MRuby::Build.new('test') do |conf| + # Gets set by the VS command prompts. +@@ -120,7 +120,7 @@ MRuby::Build.new('test') do |conf| + conf.enable_test + + conf.gembox 'default' +-end ++end if false + + # Define cross build settings + # MRuby::CrossBuild.new('32bit') do |conf| Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/lang/mruby/pkg/PLIST,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 PLIST --- pkg/PLIST 5 Nov 2016 22:31:28 -0000 1.1.1.1 +++ pkg/PLIST 3 Mar 2017 05:30:25 -0000 @@ -1,7 +1,6 @@ @comment $OpenBSD: PLIST,v 1.1.1.1 2016/11/05 22:31:28 jeremy Exp $ @bin bin/mirb @bin bin/mrbc -@bin bin/mrdb @bin bin/mruby @bin bin/mruby-strip include/mrbconf.h