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/gpgme/
Date: Sun, 31 Oct 2021 05:57:17
Message-Id: 1635659830.72c4ad16d07830b0e6c3a2fef4386e3fe3af1b16.graaff@gentoo
1 commit: 72c4ad16d07830b0e6c3a2fef4386e3fe3af1b16
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 31 05:56:36 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 05:57:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72c4ad16
7
8 dev-ruby/gpgme: EAPI 8; add ruby30; fix extension install
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/gpgme/gpgme-2.0.20-r1.ebuild | 51 +++++++++++++++++++++++++++++++++++
14 1 file changed, 51 insertions(+)
15
16 diff --git a/dev-ruby/gpgme/gpgme-2.0.20-r1.ebuild b/dev-ruby/gpgme/gpgme-2.0.20-r1.ebuild
17 new file mode 100644
18 index 00000000000..a5f8cb60ba6
19 --- /dev/null
20 +++ b/dev-ruby/gpgme/gpgme-2.0.20-r1.ebuild
21 @@ -0,0 +1,51 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +USE_RUBY="ruby26 ruby27 ruby30"
27 +
28 +RUBY_FAKEGEM_EXTRADOC="NEWS README.rdoc"
29 +
30 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
31 +
32 +RUBY_FAKEGEM_EXTENSIONS=(ext/gpgme/extconf.rb)
33 +
34 +inherit ruby-fakegem flag-o-matic
35 +
36 +DESCRIPTION="Ruby language binding for GnuPG Made Easy"
37 +HOMEPAGE="https://github.com/ueno/ruby-gpgme"
38 +SRC_URI="https://github.com/ueno/ruby-gpgme/archive/v${PV}.tar.gz -> ruby-${P}.tar.gz"
39 +RUBY_S="ruby-${P}"
40 +
41 +LICENSE="LGPL-2.1+"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~x86"
44 +IUSE=""
45 +
46 +DEPEND+=">=app-crypt/gpgme-1.1.3 test? ( >=app-crypt/gpgme-1.13.0 )"
47 +RDEPEND+=">=app-crypt/gpgme-1.1.3"
48 +
49 +ruby_add_bdepend "test? ( dev-ruby/mocha:0.14 )"
50 +
51 +all_ruby_prepare() {
52 + sed -i -e '/\(coverall\|bundler\|ruby-debug\|byebug\)/I s:^:#:' \
53 + -e '3igem "mocha", "~> 0.14"' \
54 + test/test_helper.rb || die
55 +
56 + # Remove failing tests for now. This package was added without
57 + # running any tests :-(
58 + rm -f test/{ctx,crypto}_test.rb || die
59 +
60 + sed -i -e '/portile/d ; /rubyforge/d' ${RUBY_FAKEGEM_GEMSPEC} || die
61 +}
62 +
63 +each_ruby_configure() {
64 + append-flags -fPIC
65 + export RUBY_GPGME_USE_SYSTEM_LIBRARIES=1
66 + each_fakegem_configure
67 +}
68 +
69 +each_ruby_test() {
70 + unset DISPLAY GPG_AGENT_INFO GPG_TTY
71 + MT_NO_PLUGINS=true ${RUBY} -Ilib:test:. -e 'Dir["test/*_test.rb"].each{|f| require f}' || die
72 +}