This updates to the latest version of the sqlite3 gem. Changelog here: https://github.com/sparklemotion/sqlite3-ruby/blob/v1.5.4/CHANGELOG.md
They made significant changes to the gem since the previous release. They now embed SQLite by default. This uses --enable-system-libraries when building to link against the system SQLite instead of using the embedded version. There is now a build dependency on mini_portile2. Just as in ruby-nokogiri, we modify the gem metadata so we can make mini_portile2 a build dependency instead of a run dependency. Tested on amd64. Will be committing in a couple days unless I hear objections. Thanks, Jeremy Index: Makefile =================================================================== RCS file: /cvs/ports/databases/ruby-sqlite3/Makefile,v retrieving revision 1.46 diff -u -p -r1.46 Makefile --- Makefile 11 Mar 2022 18:31:45 -0000 1.46 +++ Makefile 22 Nov 2022 18:33:31 -0000 @@ -1,6 +1,6 @@ COMMENT= access a SQLite3 database from ruby -DISTNAME= sqlite3-1.4.2 +DISTNAME= sqlite3-1.5.4 CATEGORIES= databases MAINTAINER = Jeremy Evans <jer...@openbsd.org> @@ -14,8 +14,10 @@ MODULES= lang/ruby WANTLIB= sqlite3 LIB_DEPENDS= databases/sqlite3 +BUILD_DEPENDS= devel/ruby-mini_portile2,${MODRUBY_FLAVOR}>=2.7.0,<3.0 CONFIGURE_STYLE= ruby gem ext +CONFIGURE_ARGS= --enable-system-libraries MODRUBY_TEST= rake TEST_DEPENDS= devel/ruby-mocha,${MODRUBY_FLAVOR} \ Index: distinfo =================================================================== RCS file: /cvs/ports/databases/ruby-sqlite3/distinfo,v retrieving revision 1.19 diff -u -p -r1.19 distinfo --- distinfo 3 Feb 2020 19:03:27 -0000 1.19 +++ distinfo 22 Nov 2022 18:26:37 -0000 @@ -1,2 +1,2 @@ -SHA256 (sqlite3-1.4.2.gem) = 6LjvOw91wY4afuYsVnjIJ+mTieU/pV63qaX1dFkASlI= -SIZE (sqlite3-1.4.2.gem) = 70656 +SHA256 (sqlite3-1.5.4.gem) = XU9r7SOmKWUcll9RB4YfEd9HnXTu7zpw1uxwLygRIQE= +SIZE (sqlite3-1.5.4.gem) = 3167744 Index: patches/patch-_metadata =================================================================== RCS file: patches/patch-_metadata diff -N patches/patch-_metadata --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-_metadata 22 Nov 2022 18:30:27 -0000 @@ -0,0 +1,15 @@ +Make mini_portile2 a development dependency, as it is only needed +for building. + +Index: .metadata +--- .metadata.orig ++++ .metadata +@@ -19,7 +19,7 @@ dependencies: + - - "~>" + - !ruby/object:Gem::Version + version: 2.8.0 +- type: :runtime ++ type: :development + prerelease: false + version_requirements: !ruby/object:Gem::Requirement + requirements: Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/databases/ruby-sqlite3/pkg/PLIST,v retrieving revision 1.16 diff -u -p -r1.16 PLIST --- pkg/PLIST 11 Mar 2022 18:31:45 -0000 1.16 +++ pkg/PLIST 22 Nov 2022 18:35:33 -0000 @@ -1,17 +1,17 @@ ${GEM_LIB}/cache/${DISTNAME}.gem ${GEM_LIB}/gems/${DISTNAME}/ ${GEM_LIB}/gems/${DISTNAME}/.gemtest -${GEM_LIB}/gems/${DISTNAME}/.travis.yml -${GEM_LIB}/gems/${DISTNAME}/API_CHANGES.rdoc -${GEM_LIB}/gems/${DISTNAME}/CHANGELOG.rdoc +${GEM_LIB}/gems/${DISTNAME}/API_CHANGES.md +${GEM_LIB}/gems/${DISTNAME}/CHANGELOG.md +${GEM_LIB}/gems/${DISTNAME}/CONTRIBUTING.md ${GEM_LIB}/gems/${DISTNAME}/ChangeLog.cvs ${GEM_LIB}/gems/${DISTNAME}/Gemfile ${GEM_LIB}/gems/${DISTNAME}/LICENSE -${GEM_LIB}/gems/${DISTNAME}/Manifest.txt -${GEM_LIB}/gems/${DISTNAME}/README.rdoc -${GEM_LIB}/gems/${DISTNAME}/Rakefile -${GEM_LIB}/gems/${DISTNAME}/appveyor.yml +${GEM_LIB}/gems/${DISTNAME}/LICENSE-DEPENDENCIES +${GEM_LIB}/gems/${DISTNAME}/README.md +${GEM_LIB}/gems/${DISTNAME}/dependencies.yml ${GEM_LIB}/gems/${DISTNAME}/faq/ +${GEM_LIB}/gems/${DISTNAME}/faq/faq.md ${GEM_LIB}/gems/${DISTNAME}/faq/faq.rb ${GEM_LIB}/gems/${DISTNAME}/faq/faq.yml ${GEM_LIB}/gems/${DISTNAME}/lib/ @@ -27,12 +27,9 @@ ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/ ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/translator.rb ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/value.rb ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/version.rb -${GEM_LIB}/gems/${DISTNAME}/rakelib/ -${GEM_LIB}/gems/${DISTNAME}/rakelib/faq.rake -${GEM_LIB}/gems/${DISTNAME}/rakelib/gem.rake -${GEM_LIB}/gems/${DISTNAME}/rakelib/native.rake -${GEM_LIB}/gems/${DISTNAME}/rakelib/vendor_sqlite3.rake -${GEM_LIB}/gems/${DISTNAME}/setup.rb +${GEM_LIB}/gems/${DISTNAME}/ports/ +${GEM_LIB}/gems/${DISTNAME}/ports/archives/ +${GEM_LIB}/gems/${DISTNAME}/ports/archives/sqlite-autoconf-3400000.tar.gz ${GEM_LIB}/gems/${DISTNAME}/test/ ${GEM_LIB}/gems/${DISTNAME}/test/helper.rb ${GEM_LIB}/gems/${DISTNAME}/test/test_backup.rb