commit: c400157d503dc108a44e6720f030195559b6ed0f Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Thu Aug 31 05:04:50 2023 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Thu Aug 31 05:05:24 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c400157d
dev-ruby/rotp: add 6.3.0 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/rotp/Manifest | 1 + dev-ruby/rotp/rotp-6.3.0.ebuild | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/dev-ruby/rotp/Manifest b/dev-ruby/rotp/Manifest index c01f7f2b2047..5d8388b777d2 100644 --- a/dev-ruby/rotp/Manifest +++ b/dev-ruby/rotp/Manifest @@ -1 +1,2 @@ DIST rotp-6.2.2.tar.gz 16554 BLAKE2B ba6688238c1e0f0674cc38f8ee0a9f4db2396afbe8a66c47f309ab5b14ef80be039e76d610cd29cad7ce15f6ce2de5be4edc40f2a27841227910a71ec9c56bfc SHA512 88292c80122eec53ed9a45682263b66f1ff6aaad04e0247e235a94faa5d27c1f12398445d81152b6da5565039810f7d5a6974af4bb179a6b8e0a3282fbd6437e +DIST rotp-6.3.0.tar.gz 17931 BLAKE2B 123ea8b4e855f4fca5edb4f752446c09e65c8a030ee684c32d34aa76db014c54e9d159ced47a2b7f39b92d97453c4ebe728ca65f70ccda0b7ebbf3c966eb4941 SHA512 99f41db28e87541a8318285efc1b57357bfeec72c62e3e8386bb4c75eda6273a992764cebf04b8548aa617fdeec6555cdd29cebe6c5fd8860cb93af62275e30f diff --git a/dev-ruby/rotp/rotp-6.3.0.ebuild b/dev-ruby/rotp/rotp-6.3.0.ebuild new file mode 100644 index 000000000000..6391c986bf9c --- /dev/null +++ b/dev-ruby/rotp/rotp-6.3.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_RECIPE_DOC="yard" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="The Ruby One Time Password Library" +HOMEPAGE="https://github.com/mdp/rotp" +SRC_URI="https://github.com/mdp/rotp/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-libs/openssl" + +ruby_add_bdepend " + test? ( >=dev-ruby/timecop-0.8 ) +" + +all_ruby_prepare() { + # Remove simplecov + sed -i -e '/simplecov/,/^end/ s:^:#:' -e '2irequire "uri"; require "cgi"' spec/spec_helper.rb || die + # Don't require git + sed -i \ + -e 's/git ls-files/find/' \ + -e 's/{test,spec,features}/spec/' \ + ${RUBY_FAKEGEM_GEMSPEC} || die +}