From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4CE3F158094 for ; Sat, 8 Oct 2022 06:26:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49288E093E; Sat, 8 Oct 2022 06:26:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2A394E0916 for ; Sat, 8 Oct 2022 06:26:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1A4F533BF3C for ; Sat, 8 Oct 2022 06:26:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A73C65DD for ; Sat, 8 Oct 2022 06:26:39 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1665210394.f0b92e1ca4a50da98856532d749d116a8649994c.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/x25519/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/x25519/Manifest dev-ruby/x25519/x25519-1.0.10.ebuild X-VCS-Directories: dev-ruby/x25519/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: f0b92e1ca4a50da98856532d749d116a8649994c X-VCS-Branch: master Date: Sat, 8 Oct 2022 06:26:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 483d230d-6fbd-4143-975f-15bfc83de05b X-Archives-Hash: 308323755ae302ba82621caab794ff5a commit: f0b92e1ca4a50da98856532d749d116a8649994c Author: Hans de Graaff gentoo org> AuthorDate: Fri Oct 7 07:07:49 2022 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat Oct 8 06:26:34 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0b92e1c dev-ruby/x25519: add 1.0.10 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/x25519/Manifest | 1 + dev-ruby/x25519/x25519-1.0.10.ebuild | 39 ++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/dev-ruby/x25519/Manifest b/dev-ruby/x25519/Manifest index e02da291b442..628a3b08b7e9 100644 --- a/dev-ruby/x25519/Manifest +++ b/dev-ruby/x25519/Manifest @@ -1 +1,2 @@ +DIST x25519-1.0.10.tar.gz 44353 BLAKE2B 5ad7a7b68af8bdc5e64692b9b650504df3d152c63c6044cea6978e42cef856dfbd3c0bc9261b014eab80a3bfcfaaf6c7a85675806aa9529e6978228ce2956497 SHA512 10a2baeff5be2eca31ae96893f08877ae351f6c7d30d0cc5d2a9b63ada74733ab30ed7dd709b26802d3f1a130aa513747a32c370d031fc95b136e3a699eb2987 DIST x25519-1.0.9.tar.gz 44042 BLAKE2B 65129fdfc0c40099487da3eacbd91436b625fd1224d58139a09d2ec571cb063f69767d468c89af512b0bef81912786b44b6923afaeb4a14f97a47034b702d848 SHA512 48349960b69f88177b772f431a1751ad190a9d71ebb01e0aced7dcc278a18c2e7cb1dbb621524950685b974f2f63d23039973accf067720ce1b74c5bb1eb4f77 diff --git a/dev-ruby/x25519/x25519-1.0.10.ebuild b/dev-ruby/x25519/x25519-1.0.10.ebuild new file mode 100644 index 000000000000..9033f7551f12 --- /dev/null +++ b/dev-ruby/x25519/x25519-1.0.10.ebuild @@ -0,0 +1,39 @@ +# 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="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/crypto-rb/x25519" +SRC_URI="https://github.com/crypto-rb/x25519/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="" + +all_ruby_prepare() { + sed -i -e '/bundler/ s:^:#: ; /coverall/I s:^:#:' spec/spec_helper.rb || die + + sed -i -e 's/git ls-files -z/find * -print0/' ${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 +}