Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/sqlite3/
Date: Sat, 25 Sep 2021 08:49:16
Message-Id: 1632559687.0906ea4a600c490f5277564378b2e3bb9eaa79df.graaff@gentoo
1 commit: 0906ea4a600c490f5277564378b2e3bb9eaa79df
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 25 08:48:07 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 25 08:48:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0906ea4a
7
8 dev-ruby/sqlite3: cleanup
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/sqlite3/Manifest | 1 -
14 dev-ruby/sqlite3/sqlite3-1.3.13.ebuild | 83 ----------------------------------
15 2 files changed, 84 deletions(-)
16
17 diff --git a/dev-ruby/sqlite3/Manifest b/dev-ruby/sqlite3/Manifest
18 index 204ef9693a6..6413ccf1c0c 100644
19 --- a/dev-ruby/sqlite3/Manifest
20 +++ b/dev-ruby/sqlite3/Manifest
21 @@ -1,2 +1 @@
22 -DIST sqlite3-1.3.13.gem 64512 BLAKE2B a36e3161e44004a0510297d16bf491df3dc29434432208ad231f5e46ddecb4607add417e105f5ae8472a768f80efef3f74b703b2a441396b4c9b6c9ff90bf31e SHA512 5d3eab7c788cc62c497de179919054324e53595294ec3a9df2a10d23151a406ee9a88f1c3ac945777f138e78cec61018c388b023456b873131d678a6788a505f
23 DIST sqlite3-1.4.2.gem 70656 BLAKE2B ef7fa7667fd080a6f175bcfbd1fe8dfba00d3fdf1214cc3d776f0576dc29386b627db8d6c0dd06f07ab65fff877a6803a6dcacefd4fbc5bb0f7d2149e355c88d SHA512 c4630dd2fa13914e2fcc70092c35568103f61f976958b439fe205abdfcff61702ca176d10bea40ff0cfea3169644cdb9146b7be94dff883cad3b753e84629545
24
25 diff --git a/dev-ruby/sqlite3/sqlite3-1.3.13.ebuild b/dev-ruby/sqlite3/sqlite3-1.3.13.ebuild
26 deleted file mode 100644
27 index b5340d0a65d..00000000000
28 --- a/dev-ruby/sqlite3/sqlite3-1.3.13.ebuild
29 +++ /dev/null
30 @@ -1,83 +0,0 @@
31 -# Copyright 1999-2021 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=5
35 -USE_RUBY="ruby24 ruby25 ruby26"
36 -
37 -RUBY_FAKEGEM_TASK_DOC="faq"
38 -RUBY_FAKEGEM_DOCDIR="doc faq"
39 -RUBY_FAKEGEM_EXTRADOC="API_CHANGES.rdoc README.rdoc ChangeLog.cvs CHANGELOG.rdoc"
40 -
41 -inherit multilib ruby-fakegem
42 -
43 -DESCRIPTION="An extension library to access a SQLite database from Ruby"
44 -HOMEPAGE="https://github.com/sparklemotion/sqlite3-ruby"
45 -LICENSE="BSD"
46 -
47 -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"
48 -SLOT="0"
49 -IUSE=""
50 -
51 -RDEPEND+=" >=dev-db/sqlite-3.6.16:3"
52 -DEPEND+=" >=dev-db/sqlite-3.6.16:3"
53 -
54 -ruby_add_bdepend "
55 - dev-ruby/rake-compiler
56 - dev-ruby/hoe
57 - doc? ( dev-ruby/redcloth )
58 - test? ( dev-ruby/minitest:5 )"
59 -
60 -all_ruby_prepare() {
61 - # We remove the vendor_sqlite3 rake task because it's used to
62 - # bundle SQlite3 which we definitely don't want.
63 - rm tasks/vendor_sqlite3.rake || die
64 -
65 - # Remove license line from hoe to avoid depending on a newer
66 - # version.
67 - sed -i -e '/license/d' tasks/gem.rake || die
68 -
69 - sed -i -e 's:, HOE.spec::' -e '/task :test/d' tasks/native.rake || die
70 -}
71 -
72 -each_ruby_configure() {
73 - ${RUBY} -Cext/sqlite3 extconf.rb || die
74 -}
75 -
76 -all_ruby_compile() {
77 - all_fakegem_compile
78 -
79 - if use doc; then
80 - rdoc --title "${P} Dcoumentation" -o doc --main README.rdoc lib *.rdoc ext/*/*.c || die
81 - fi
82 -}
83 -
84 -each_ruby_compile() {
85 - # TODO: not sure what happens with jruby
86 -
87 - emake -Cext/sqlite3 V=1
88 - mv ext/sqlite3/sqlite3_native$(get_modname) lib/sqlite3/ || die
89 -}
90 -
91 -each_ruby_install() {
92 - each_fakegem_install
93 -
94 - # sqlite3 was called sqlite3-ruby before, so add a spec file that
95 - # simply loads sqlite3 to make sure that old projects load correctly
96 - # we don't even need to create a file to load this: the `require
97 - # sqlite3` was already part of sqlite3-ruby requirements.
98 - cat - <<EOF > "${T}/sqlite3-ruby.gemspec"
99 -# generated by ebuild
100 -# ${CATEGORY}/${PF}
101 -Gem::Specification.new do |s|
102 - s.name = "sqlite3-ruby"
103 - s.version = "${RUBY_FAKEGEM_VERSION}"
104 - s.summary = "Fake gem to load sqlite3"
105 - s.homepage = "${HOMEPAGE}"
106 - s.specification_version = 3
107 - s.add_runtime_dependency("${RUBY_FAKEGEM_NAME}", ["= ${RUBY_FAKEGEM_VERSION}"])
108 -end
109 -EOF
110 - RUBY_FAKEGEM_NAME=sqlite3-ruby \
111 - RUBY_FAKEGEM_GEMSPEC="${T}/sqlite3-ruby.gemspec" \
112 - ruby_fakegem_install_gemspec
113 -}