summaryrefslogtreecommitdiff
path: root/dev-ruby/sqlite3
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-02-13 21:41:11 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-02-13 21:41:11 +0000
commitc8d60dada2ec8eb48b2d2b290cd6683ccec40e39 (patch)
treec44943ee0563a3fa957716de909fed683117fcb9 /dev-ruby/sqlite3
parent69051588e2f955485fe5d45d45e616bc60a2de57 (diff)
gentoo (valentine's day) resync : 14.02.2021
Diffstat (limited to 'dev-ruby/sqlite3')
-rw-r--r--dev-ruby/sqlite3/Manifest1
-rw-r--r--dev-ruby/sqlite3/sqlite3-1.4.2-r1.ebuild77
2 files changed, 78 insertions, 0 deletions
diff --git a/dev-ruby/sqlite3/Manifest b/dev-ruby/sqlite3/Manifest
index d3d2a17e947b..67f2eb2d2c14 100644
--- a/dev-ruby/sqlite3/Manifest
+++ b/dev-ruby/sqlite3/Manifest
@@ -3,5 +3,6 @@ DIST sqlite3-1.4.1.gem 70144 BLAKE2B 5a850296c804223cfe7673f72a1e303fb80c49569f2
DIST sqlite3-1.4.2.gem 70656 BLAKE2B ef7fa7667fd080a6f175bcfbd1fe8dfba00d3fdf1214cc3d776f0576dc29386b627db8d6c0dd06f07ab65fff877a6803a6dcacefd4fbc5bb0f7d2149e355c88d SHA512 c4630dd2fa13914e2fcc70092c35568103f61f976958b439fe205abdfcff61702ca176d10bea40ff0cfea3169644cdb9146b7be94dff883cad3b753e84629545
EBUILD sqlite3-1.3.13.ebuild 2372 BLAKE2B c969f8887e11fe903c30b8bf7e716650230f7a4774b6aab307daf92b5a5fb8ac526da0f945ab1fd0c53cd9fd7511b97be0d7d33b82ff4d458a8f3fff4af8e124 SHA512 5e4a39c994205f96ca75057dbf49107068c5dcf96e8d47d06e2e00c1b4347448372a7bcb164ad2be1a8a1d24277abd9e6fd505e67759cccc9b8a1c3a624f86b5
EBUILD sqlite3-1.4.1.ebuild 2416 BLAKE2B 1f305a2aa53bbe7d3d893a533c8b885792246f19e96d701a8cc120665ee317ff410b5377e3a52ccda7889413f55460c112145571bff2c42009c19564412794d0 SHA512 7249cacead74dfccb257b55af218f68ebd776072476f97040d15af34a70011b2cfa0d3b15a1643b97833de59ebb79260f0b97bfae4ed29f3c6a7a5bc7dadb6c5
+EBUILD sqlite3-1.4.2-r1.ebuild 2325 BLAKE2B f065508573ac5456abecc06985d229bbc68ef3adcd26b8ac022b244d2d41b5fcbc1773b1f65335d54d93f237d91f6dcdcae90d5aa43a5ec15ddca4b0ea6f8c1f SHA512 9d7a4b39d0c36a5a9993b7515b4b1d23070ebe8090e7ce9909a01393e16d5a96b345fd0eae65494bd8243d34e50972e1459663509a7d6a3f6150d2cb16494744
EBUILD sqlite3-1.4.2.ebuild 2423 BLAKE2B 151e031e16c6f8cb9efa0736e37046328f1e87d6e02935c396546ef5189b95192e0e743af7a6527c0b3c3cf95118e4c79af6790812e8695fcb15b64b086d1cce SHA512 2f66a0e104dc9200ee56fe40340e86da7d015f242ded48131173fd3a873b7bf73e702e00fed784b92cfba4a60f32c1d7eeba310cfcab080fe39484f7f65f1981
MISC metadata.xml 342 BLAKE2B 1f46148873c3913fc0beee10dfd433f84a477f2f5ba8b7a8bc97e4cac6765d3c07829dabef7e697791cb42902184fbf034c5701a433717c1516c725c0b5b48e9 SHA512 3272f121743335cd749a606648660e8650664fec4f02aa6499c8f5ebcf0ff727de28619d800fc5cbda350f3076e81dfbd1993ec825cd4ca43163e160813b3f77
diff --git a/dev-ruby/sqlite3/sqlite3-1.4.2-r1.ebuild b/dev-ruby/sqlite3/sqlite3-1.4.2-r1.ebuild
new file mode 100644
index 000000000000..8eabff0df5b0
--- /dev/null
+++ b/dev-ruby/sqlite3/sqlite3-1.4.2-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_TASK_DOC="faq"
+RUBY_FAKEGEM_DOCDIR="doc faq"
+RUBY_FAKEGEM_EXTRADOC="API_CHANGES.rdoc README.rdoc ChangeLog.cvs CHANGELOG.rdoc"
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/sqlite3/extconf.rb)
+RUBY_FAKEGEM_EXTENSION_LIBDIR=lib/sqlite3
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="An extension library to access a SQLite database from Ruby"
+HOMEPAGE="https://github.com/sparklemotion/sqlite3-ruby"
+LICENSE="BSD"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+IUSE=""
+
+RDEPEND+=" >=dev-db/sqlite-3.6.16:3"
+DEPEND+=" >=dev-db/sqlite-3.6.16:3"
+
+ruby_add_bdepend "
+ dev-ruby/rake-compiler
+ doc? ( dev-ruby/rdoc dev-ruby/redcloth )
+ test? ( dev-ruby/minitest:5 )"
+
+all_ruby_prepare() {
+ # We remove the vendor_sqlite3 rake task because it's used to
+ # bundle SQlite3 which we definitely don't want.
+ rm -f rakelib/vendor_sqlite3.rake || die
+
+ # Remove gem tasks since we don't need them and they require hoe.
+ rm -f rakelib/gem.rake || die
+
+ sed -i -e 's:, HOE.spec::' -e '/task :test/d' rakelib/native.rake || die
+}
+
+all_ruby_compile() {
+ all_fakegem_compile
+
+ if use doc; then
+ rdoc --title "${P} Dcoumentation" -o doc --main README.rdoc lib *.rdoc ext/*/*.c || die
+ fi
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
+}
+
+each_ruby_install() {
+ each_fakegem_install
+
+ # sqlite3 was called sqlite3-ruby before, so add a spec file that
+ # simply loads sqlite3 to make sure that old projects load correctly
+ # we don't even need to create a file to load this: the `require
+ # sqlite3` was already part of sqlite3-ruby requirements.
+ cat - <<EOF > "${T}/sqlite3-ruby.gemspec"
+# generated by ebuild
+# $CATEGORY/$PF
+Gem::Specification.new do |s|
+ s.name = "sqlite3-ruby"
+ s.version = "${RUBY_FAKEGEM_VERSION}"
+ s.summary = "Fake gem to load sqlite3"
+ s.homepage = "${HOMEPAGE}"
+ s.specification_version = 3
+ s.add_runtime_dependency("${RUBY_FAKEGEM_NAME}", ["= ${RUBY_FAKEGEM_VERSION}"])
+end
+EOF
+ RUBY_FAKEGEM_NAME=sqlite3-ruby \
+ RUBY_FAKEGEM_GEMSPEC="${T}/sqlite3-ruby.gemspec" \
+ ruby_fakegem_install_gemspec
+}