commit: 761df5ee440b0718307f13541c8697fe04c3e695 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Wed Aug 16 09:17:33 2023 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Wed Aug 16 19:20:18 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=761df5ee
dev-ruby/securerandom: new package, add 0.2.2 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/securerandom/Manifest | 1 + dev-ruby/securerandom/metadata.xml | 11 ++++++++++ dev-ruby/securerandom/securerandom-0.2.2.ebuild | 27 +++++++++++++++++++++++++ 3 files changed, 39 insertions(+) diff --git a/dev-ruby/securerandom/Manifest b/dev-ruby/securerandom/Manifest new file mode 100644 index 000000000000..f5b6ef6424dd --- /dev/null +++ b/dev-ruby/securerandom/Manifest @@ -0,0 +1 @@ +DIST securerandom-0.2.2.tar.gz 7871 BLAKE2B 3ded59a1c4a035ea80b0fb1fa67e43d86c27485c782b34c2a548489ea1570be1cdc12860389d655ba0344900275af3422fcbe4621335ec62895eb229407326d2 SHA512 173e8968de037b17d5c4cf22b1d08b042c60e9679fb8cea100df193d58a345d6cb246ad56eeb07f58a3a7a6060826d59b7ed8ecdf7e38352b9d56d3cdfa71ff1 diff --git a/dev-ruby/securerandom/metadata.xml b/dev-ruby/securerandom/metadata.xml new file mode 100644 index 000000000000..f615da12f671 --- /dev/null +++ b/dev-ruby/securerandom/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">ruby/securerandom</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/securerandom/securerandom-0.2.2.ebuild b/dev-ruby/securerandom/securerandom-0.2.2.ebuild new file mode 100644 index 000000000000..180c2687ae21 --- /dev/null +++ b/dev-ruby/securerandom/securerandom-0.2.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="securerandom.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Interface for secure random number generator" +HOMEPAGE="https://github.com/ruby/securerandom" +SRC_URI="https://github.com/ruby/securerandom/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="" + +all_ruby_prepare() { + sed -e 's/__dir__/"."/' \ + -e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \ + -e 's/git ls-files -z/find * -print0/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +}
