summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-02-01 08:11:25 +0100
committerHans de Graaff <graaff@gentoo.org>2024-02-01 08:11:25 +0100
commitc0656d31094b50d36b047c72319cfebf20426a4b (patch)
treec923181d96b38cba57af407d16a94b07da02b7a9 /dev-ruby/gpgme
parentdev-ruby/diff-lcs: add 1.5.1 (diff)
downloadgentoo-c0656d31094b50d36b047c72319cfebf20426a4b.tar.gz
gentoo-c0656d31094b50d36b047c72319cfebf20426a4b.tar.bz2
gentoo-c0656d31094b50d36b047c72319cfebf20426a4b.zip
dev-ruby/gpgme: add 2.0.24
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.24.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-ruby/gpgme/Manifest b/dev-ruby/gpgme/Manifest
index 4ab92e822d37..dfd8d1acceaf 100644
--- a/dev-ruby/gpgme/Manifest
+++ b/dev-ruby/gpgme/Manifest
@@ -1,2 +1,3 @@
DIST ruby-gpgme-2.0.22.tar.gz 3432808 BLAKE2B 1aabd312f588093bff2bb3a308aaac041ebc8f989bab4aa475f74fc0675c6c4fcac474663a8f5b097b8be223b0f01e27f9e49fc014efb650df9742ddcf3fd4df SHA512 644d9640ac2bf6ce1c02747a0fbd0321337c1f3af639d650b8a669c4f835d1c03380644da2d4717a9268df434ebf41fd98388b80c63e8df97b7a23c3c260741e
DIST ruby-gpgme-2.0.23.tar.gz 3510904 BLAKE2B 2057a6917aac14bfc82c5e718498d5dce507a4c9de4da2e0973eefee76339066c54ebf57201f739faaab118e624416d7b30d24fb4409b37d53f80dd92c2aa825 SHA512 13d9b383ba638ef1cc21870159b4e7bf3e4aa70097649da185ccd3c159247c657eae651c0fc29c2fcd1b1d2965b432b82461a2f2d85f687787f78d34ddce6da9
+DIST ruby-gpgme-2.0.24.tar.gz 3512481 BLAKE2B 69de16ca15088025c8aa5e8a7910d99df11df1e8ba522d16f9b23a89960683555dbdfe238c351532ffb57283c99b4b4c06c570e6c7755e21a40c67d9f9e00214 SHA512 d906cc669b4e55facd13838c711601ce587e197d44cdc614c4972b2fe411c6259fa236d9713e0ff716ab97fa34840feb0b503db298e6b7a3125d3bcce12d7835
diff --git a/dev-ruby/gpgme/gpgme-2.0.24.ebuild b/dev-ruby/gpgme/gpgme-2.0.24.ebuild
new file mode 100644
index 000000000000..420e02626494
--- /dev/null
+++ b/dev-ruby/gpgme/gpgme-2.0.24.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+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 ~arm64 ~x86"
+IUSE="test"
+
+RDEPEND="
+ >=app-crypt/gpgme-1.18.0:=
+ >=dev-libs/libassuan-2.5.6
+ >=dev-libs/libgpg-error-1.47
+"
+DEPEND="${RDEPEND}"
+
+ruby_add_bdepend "test? ( dev-ruby/mocha:0.14 dev-ruby/minitest:5.15 )"
+
+all_ruby_prepare() {
+ sed -i -e '/\(coverall\|bundler\|ruby-debug\|byebug\)/I s:^:#:' \
+ -e '3igem "mocha", "~> 0.14"; gem "minitest", "~> 5.15.0"' \
+ 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
+}