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/ruby-odbc/
Date: Tue, 29 Dec 2020 14:29:38
Message-Id: 1609252171.aaea639066912145576826dff3b48add40b2578e.graaff@gentoo
1 commit: aaea639066912145576826dff3b48add40b2578e
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 13:58:14 2020 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 14:29:31 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaea6390
7
8 dev-ruby/ruby-odbc: add 0.999991
9
10 Package-Manager: Portage-3.0.9, Repoman-3.0.2
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/ruby-odbc/Manifest | 1 +
14 dev-ruby/ruby-odbc/ruby-odbc-0.999991.ebuild | 63 ++++++++++++++++++++++++++++
15 2 files changed, 64 insertions(+)
16
17 diff --git a/dev-ruby/ruby-odbc/Manifest b/dev-ruby/ruby-odbc/Manifest
18 index 559be4b719f..3c2d2a3dfd7 100644
19 --- a/dev-ruby/ruby-odbc/Manifest
20 +++ b/dev-ruby/ruby-odbc/Manifest
21 @@ -1 +1,2 @@
22 DIST ruby-odbc-0.99999.tar.gz 76934 BLAKE2B 59de5a544b7eefe8e181f2c6a9a61915361743ef5f7554f778667b50ca0dc57fd0c4f71e406ad6f1d00fb2c6a6509030e61ad34dddecff61896f7bfe383d0a9b SHA512 05e3e67a895406e1a57fbea6f8ecd1c087d836794ea3245bd9eec888eb3c46fa2bf2607cc1b8fdc416d7bc531d783d621c03c9fde004db8c2e431fe838c531af
23 +DIST ruby-odbc-0.999991.tar.gz 77110 BLAKE2B dd32698811f14e05f1190ffd73b390fa02924a1dd936db0b2b3c6ac9d8d8663f5d400ff89e03591081b45d558378a76701cf6b8be8502297a141c271dde3c24b SHA512 3f1e2e75e31f10f47392cda1cd28aa54451a499c3bd6e9224466a7b338406835a5d453600e79a3bac040197397c31d9f744567969058969685d6f4e06e72addb
24
25 diff --git a/dev-ruby/ruby-odbc/ruby-odbc-0.999991.ebuild b/dev-ruby/ruby-odbc/ruby-odbc-0.999991.ebuild
26 new file mode 100644
27 index 00000000000..0d56029f102
28 --- /dev/null
29 +++ b/dev-ruby/ruby-odbc/ruby-odbc-0.999991.ebuild
30 @@ -0,0 +1,63 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +USE_RUBY="ruby25 ruby26 ruby27 ruby30"
37 +
38 +RUBY_FAKEGEM_TASK_TEST=""
39 +RUBY_FAKEGEM_TASK_DOC=""
40 +RUBY_FAKEGEM_EXTRADOC="README ChangeLog"
41 +
42 +RUBY_FAKEGEM_GEMSPEC="ruby-odbc.gemspec"
43 +
44 +inherit ruby-fakegem
45 +
46 +DESCRIPTION="RubyODBC - For accessing ODBC data sources from the Ruby language"
47 +HOMEPAGE="http://www.ch-werner.de/rubyodbc/"
48 +SRC_URI="http://www.ch-werner.de/rubyodbc/${P}.tar.gz"
49 +
50 +LICENSE="|| ( GPL-2 Ruby )"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~ppc ~x86"
53 +IUSE=""
54 +
55 +DEPEND="${DEPEND} >=dev-db/unixODBC-2.0.6"
56 +RDEPEND="${RDEPEND} >=dev-db/unixODBC-2.0.6"
57 +
58 +# tests require to have an ODBC service enabled, so we can't run them
59 +# for now :(
60 +RESTRICT=test
61 +
62 +all_ruby_prepare() {
63 + # Make sure that it doesn't try to use the absolute-local path for
64 + # the extension as we'd be unable to run it properly otherwise.
65 + sed -i -e 's:\./odbc:odbc:' test/{,utf8/}test.rb || die
66 +
67 + # Since lib should not get installed avoid it entirely…
68 + mv lib contrib || die
69 +}
70 +
71 +each_ruby_configure() {
72 + for dir in ext ext/utf8; do
73 + ${RUBY} -C${dir} extconf.rb --disable-dlopen || die "extconf (${dir}) failed"
74 + done
75 +}
76 +
77 +each_ruby_compile() {
78 + for dir in ext ext/utf8; do
79 + emake V=1 -C${dir}
80 + done
81 +}
82 +
83 +each_ruby_install() {
84 + each_fakegem_install
85 +
86 + ruby_fakegem_newins ext/odbc.so lib/odbc.so
87 + ruby_fakegem_newins ext/utf8/odbc_utf8.so lib/odbc_utf8.so
88 +}
89 +
90 +all_ruby_install() {
91 + all_fakegem_install
92 + dodoc doc/*.html
93 +}