dev-ruby/sqlite3: add 2.3.0

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2024-11-24 08:43:48 +01:00
parent b22905f61e
commit 17d8d765d1
2 changed files with 67 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
DIST sqlite3-1.7.3.gem 3307008 BLAKE2B 0df742c7cb4a8f920196106b5701eae07e60e668f040ca6e3276afdd0dfdeed3fb19ed455425f332e13082ca740f42d914536ccdf565ed151b6eb0f6ccd7c676 SHA512 b6ed36a5618134ca1f993b21a351ac279ebb7e1370be521eae67ed9224a1fac11d71ddd7573b3b14da47657756cb68b3eab0164b6e6ed058d3f64fa95699bc2f
DIST sqlite3-2.0.4.tar.gz 82136 BLAKE2B 636e4e246e1a572a975b4df4a1ed82da6924934ee59a48ad0bac98b7e5c76f4342ad1bc91f794179e2954acebcd00d3ec30872441957fcaed5d36218b6167a80 SHA512 3bdf8733b119f8fb71ab2e60667f2ca9c9c8be6d01e02509ed93e1bb1c525408d93c888f5291b464eecb6ab150d940d357d7abf913b32dc253768bf6fc33d168
DIST sqlite3-2.2.0.tar.gz 89095 BLAKE2B 51f9279049795c6e54e0b5787f6a19eadba5b848ca52dbc8f2fe89757bac825da34246bd35217c092d43b7af33f85dd0fc2c5171a5aaa23aab6c577f8158ec07 SHA512 4a4a012fe092bc7f5ccad6d48e3fcd76f0eaf7d099ed41e4ab99c62c0dc8e7f55b630d8ae10cea39debab00e169f7c8c9ae524f1b7cca7663165c5b38cba28ea
DIST sqlite3-2.3.0.tar.gz 90987 BLAKE2B e474516c60e61cb58e5c3a655580eade70e2caf679474ef5e22d4fdd1cc8244afa809e5c089b5ae7c1ee71f818e035aa97046d768777784331187cc19cf8a9dc SHA512 21530896893b09225e0540bbee765a49c503a66d37ceb453f6bf21904112cb9be043ad613ea609da97243fc9f035fa712222a0b329826eba47f73fd5c507236d

View File

@@ -0,0 +1,66 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32 ruby33"
RUBY_FAKEGEM_BINWRAP=""
RUBY_FAKEGEM_TASK_DOC="faq"
RUBY_FAKEGEM_DOCDIR="doc faq"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
RUBY_FAKEGEM_EXTENSIONS=(ext/sqlite3/extconf.rb)
RUBY_FAKEGEM_EXTENSION_LIBDIR=lib/sqlite3
RUBY_FAKEGEM_GEMSPEC="sqlite3.gemspec"
inherit ruby-fakegem
DESCRIPTION="An extension library to access a SQLite database from Ruby"
HOMEPAGE="https://github.com/sparklemotion/sqlite3-ruby"
SRC_URI="https://github.com/sparklemotion/sqlite3-ruby/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
RUBY_S="sqlite3-ruby-${PV}"
LICENSE="BSD"
SLOT="$(ver_cut 1)"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="doc test"
# We track the bundled sqlite version here
RDEPEND=">=dev-db/sqlite-3.47.0:3"
DEPEND=">=dev-db/sqlite-3.47.0:3"
ruby_add_bdepend "
doc? ( dev-ruby/rdoc )
test? ( dev-ruby/minitest:5 )
"
all_ruby_prepare() {
sed -i -e 's/enable_config("system-libraries")/true/' ext/sqlite3/extconf.rb || die
# Remove the runtime dependency on mini_portile2. We build without
# it and it is not a runtime dependency for us.
sed -e '/mini_portile2/ s:^:#:' \
-e '/WARNING/ s:^:#:' \
-e "s/0.0.0/${PV}/" \
-i ${RUBY_FAKEGEM_GEMSPEC} || die
# Avoid a failing spec for reprepares stats. Upstream indicates that
# the stats data should not be relied on other than for human
# debugging.
sed -e '/def test_stat_reprepares/askip "Fails on Gentoo"' \
-i test/test_statement.rb || die
}
all_ruby_compile() {
all_fakegem_compile
if use doc; then
rdoc --title "${P} Documentation" -o doc --main README.rdoc lib *.rdoc ext/*/*.c || die
rm -f doc/js/*.gz || die
fi
}
each_ruby_test() {
${RUBY} -Ilib:test:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
}