mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ruby/x25519: add 1.0.11
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST x25519-1.0.10.tar.gz 44353 BLAKE2B 5ad7a7b68af8bdc5e64692b9b650504df3d152c63c6044cea6978e42cef856dfbd3c0bc9261b014eab80a3bfcfaaf6c7a85675806aa9529e6978228ce2956497 SHA512 10a2baeff5be2eca31ae96893f08877ae351f6c7d30d0cc5d2a9b63ada74733ab30ed7dd709b26802d3f1a130aa513747a32c370d031fc95b136e3a699eb2987
|
||||
DIST x25519-1.0.11.tar.gz 44466 BLAKE2B 4033be06eede275f0b43645d6aa3c847dc10bf5e9fe01ba54a0be355f00274d8b2a9cd8fe0402d0ff728704ca20721d807056918d14fd636be334fc5ea544a5b SHA512 8a45df733d2b59c5e46fa63b51e56b1ca2f92c7bf99ed0ad4d834ca1623fee1d8bda52d8bc9ed062106f58eb900776be402b8b2220d90475ef14c3643c13a5aa
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<name>Gentoo Ruby Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">crypto-rb/x25519</remote-id>
|
||||
<remote-id type="github">RubyCrypto/x25519</remote-id>
|
||||
<remote-id type="rubygems">x25519</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
||||
40
dev-ruby/x25519/x25519-1.0.11.ebuild
Normal file
40
dev-ruby/x25519/x25519-1.0.11.ebuild
Normal file
@@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby32 ruby33 ruby34 ruby40"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="x25519.gemspec"
|
||||
|
||||
RUBY_FAKEGEM_EXTENSIONS=(ext/x25519_ref10/extconf.rb)
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Key exchange via the X25519 (Curve25519) Elliptic Curve Diffie-Hellman function"
|
||||
HOMEPAGE="https://github.com/RubyCrypto/x25519"
|
||||
SRC_URI="https://github.com/RubyCrypto/x25519/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="$(ver_cut 1)"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/bundler/ s:^:#: ; /coverall/I s:^:#:' spec/spec_helper.rb || die
|
||||
|
||||
sed -e 's/git ls-files -z/find * -print0/' \
|
||||
-e 's:_relative ":"./:' \
|
||||
-i ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
|
||||
# The precomputed implementation only works on amd64
|
||||
if use amd64 ; then
|
||||
RUBY_FAKEGEM_EXTENSIONS+=(ext/x25519_precomputed/extconf.rb)
|
||||
else
|
||||
sed -i -e '/\(x25519_precomputed\|X25519::Provider::Precomputed\)/ s:^:#:' lib/x25519.rb || die
|
||||
rm -f spec/x25519/provider/precomputed_spec.rb || die
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user