summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-11-06 08:42:00 +0100
committerHans de Graaff <graaff@gentoo.org>2022-11-08 07:12:39 +0100
commit9bbb7176bfaf6b2ad15a3e129173771a2b575768 (patch)
tree4c3eca53c46142c279b871ec7f8adf897299e286 /dev-ruby/gpgme
parentdev-ruby/google-protobuf: add 3.19.6 (diff)
downloadgentoo-9bbb7176bfaf6b2ad15a3e129173771a2b575768.tar.gz
gentoo-9bbb7176bfaf6b2ad15a3e129173771a2b575768.tar.bz2
gentoo-9bbb7176bfaf6b2ad15a3e129173771a2b575768.zip
dev-ruby/gpgme: add 2.0.21
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/gpgme')
-rw-r--r--dev-ruby/gpgme/Manifest1
-rw-r--r--dev-ruby/gpgme/gpgme-2.0.21.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-ruby/gpgme/Manifest b/dev-ruby/gpgme/Manifest
index ef49f5c2a65f..bfc600e7bdbb 100644
--- a/dev-ruby/gpgme/Manifest
+++ b/dev-ruby/gpgme/Manifest
@@ -1 +1,2 @@
DIST ruby-gpgme-2.0.20.tar.gz 2801991 BLAKE2B f5d4c58fd9ef38e0e843e3c59e9653166666ce3635cf479fcd007581b6c6c42ce7852bd36542b378e4152bd471af0131685c8a9f1024953f41832a54c477e1ac SHA512 3267cc77b57c22de3e505c34dfb0a8a4a76cda1fe6dbe547dfdb9ca1a75cf949ca75b3718fe6b6190c06dfdddf21d76b0d0a71631e53e4f439284ce7cf95f6df
+DIST ruby-gpgme-2.0.21.tar.gz 3432716 BLAKE2B 4ccffce63ef45222773d8f5e5c81e80d9d50a4dae466ea180e0b602970653158e58cc62d6ca519e94f3fde00e6439f81900ded90d14ead8392b06248d20d85be SHA512 0e673fcb1c8a3186a95a85b595744dea94a8bc423e3f7fb5ca3df677a2433bb19550475f6c69eb38d1cb213b0babfb7093168c726e015241534df0ca49e2dd6f
diff --git a/dev-ruby/gpgme/gpgme-2.0.21.ebuild b/dev-ruby/gpgme/gpgme-2.0.21.ebuild
new file mode 100644
index 000000000000..d37942b409b7
--- /dev/null
+++ b/dev-ruby/gpgme/gpgme-2.0.21.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby27 ruby30 ruby31"
+
+RUBY_FAKEGEM_EXTRADOC="NEWS README.rdoc"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/gpgme/extconf.rb)
+
+inherit ruby-fakegem flag-o-matic
+
+DESCRIPTION="Ruby language binding for GnuPG Made Easy"
+HOMEPAGE="https://github.com/ueno/ruby-gpgme"
+SRC_URI="https://github.com/ueno/ruby-gpgme/archive/v${PV}.tar.gz -> ruby-${P}.tar.gz"
+RUBY_S="ruby-${P}"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=app-crypt/gpgme-1.18.0:=
+ >=dev-libs/libassuan-2.5.5
+ >=dev-libs/libgpg-error-1.16
+"
+DEPEND="${RDEPEND}"
+
+ruby_add_bdepend "test? ( dev-ruby/mocha:0.14 )"
+
+all_ruby_prepare() {
+ sed -i -e '/\(coverall\|bundler\|ruby-debug\|byebug\)/I s:^:#:' \
+ -e '3igem "mocha", "~> 0.14"' \
+ test/test_helper.rb || die
+
+ # Remove failing tests for now. This package was added without
+ # running any tests :-(
+ rm -f test/{ctx,crypto}_test.rb || die
+
+ sed -i -e '/portile/d ; /rubyforge/d' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_configure() {
+ append-flags -fPIC
+ export RUBY_GPGME_USE_SYSTEM_LIBRARIES=1
+ each_fakegem_configure
+}
+
+each_ruby_test() {
+ unset DISPLAY GPG_AGENT_INFO GPG_TTY
+ MT_NO_PLUGINS=true ${RUBY} -Ilib:test:. -e 'Dir["test/*_test.rb"].each{|f| require f}' || die
+}