commit:     e442f457956901e411910c0080d297e30ddc32db
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Tue Sep 28 10:26:48 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Sep 28 20:51:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e442f457

dev-ruby/rotp: new package

Ruby One Time Password library, runtime dependency for www-apps/redmine.

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-ruby/rotp/Manifest          |  1 +
 dev-ruby/rotp/metadata.xml      | 19 +++++++++++++++++++
 dev-ruby/rotp/rotp-6.2.0.ebuild | 31 +++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)

diff --git a/dev-ruby/rotp/Manifest b/dev-ruby/rotp/Manifest
new file mode 100644
index 00000000000..69bab31e7f7
--- /dev/null
+++ b/dev-ruby/rotp/Manifest
@@ -0,0 +1 @@
+DIST rotp-6.2.0.tar.gz 60000 BLAKE2B 
dba270201593425c9282aca71efb33ecacda916996ebfffc703dd865a6c6ee3b3da4098497ce036a95157089d8d736e9413d0aa9fd0dc582d4b278ce811e05d0
 SHA512 
938cf9feffbe7e86f542c6dde4cd87b57e2ddd2696303e69cb76bc9fb04ffb40c9a5ef45288f23cb096d9f6706e0b48ad89907dc9322594df10c8c0521feffa1

diff --git a/dev-ruby/rotp/metadata.xml b/dev-ruby/rotp/metadata.xml
new file mode 100644
index 00000000000..7d387e411d0
--- /dev/null
+++ b/dev-ruby/rotp/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<maintainer type="project">
+<email>[email protected]</email>
+</maintainer>
+<maintainer type="person" proxied="yes">
+<email>[email protected]</email>
+<name>Azamat H. Hackimov</name>
+</maintainer>
+<maintainer type="project" proxied="proxy">
+<email>[email protected]</email>
+<name>Proxy Maintainers</name>
+</maintainer>
+<upstream>
+<remote-id type="github">mdp/rotp</remote-id>
+<remote-id type="rubygems">rotp</remote-id>
+</upstream>
+</pkgmetadata>

diff --git a/dev-ruby/rotp/rotp-6.2.0.ebuild b/dev-ruby/rotp/rotp-6.2.0.ebuild
new file mode 100644
index 00000000000..8b16fcb7f63
--- /dev/null
+++ b/dev-ruby/rotp/rotp-6.2.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 ruby27 ruby30"
+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/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-libs/openssl:0="
+
+ruby_add_bdepend "
+       test? ( >=dev-ruby/timecop-0.8 )
+"
+
+all_ruby_prepare() {
+       # Remove simplecov
+       sed -i -e '/simplecov/,/^end/ s:^:#:' spec/spec_helper.rb || die
+}

Reply via email to