Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rotp/
Date: Tue, 28 Sep 2021 20:52:04
Message-Id: 1632862301.e442f457956901e411910c0080d297e30ddc32db.sam@gentoo
1 commit: e442f457956901e411910c0080d297e30ddc32db
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Tue Sep 28 10:26:48 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 28 20:51:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e442f457
7
8 dev-ruby/rotp: new package
9
10 Ruby One Time Password library, runtime dependency for www-apps/redmine.
11
12 Package-Manager: Portage-3.0.20, Repoman-3.0.3
13 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 dev-ruby/rotp/Manifest | 1 +
17 dev-ruby/rotp/metadata.xml | 19 +++++++++++++++++++
18 dev-ruby/rotp/rotp-6.2.0.ebuild | 31 +++++++++++++++++++++++++++++++
19 3 files changed, 51 insertions(+)
20
21 diff --git a/dev-ruby/rotp/Manifest b/dev-ruby/rotp/Manifest
22 new file mode 100644
23 index 00000000000..69bab31e7f7
24 --- /dev/null
25 +++ b/dev-ruby/rotp/Manifest
26 @@ -0,0 +1 @@
27 +DIST rotp-6.2.0.tar.gz 60000 BLAKE2B dba270201593425c9282aca71efb33ecacda916996ebfffc703dd865a6c6ee3b3da4098497ce036a95157089d8d736e9413d0aa9fd0dc582d4b278ce811e05d0 SHA512 938cf9feffbe7e86f542c6dde4cd87b57e2ddd2696303e69cb76bc9fb04ffb40c9a5ef45288f23cb096d9f6706e0b48ad89907dc9322594df10c8c0521feffa1
28
29 diff --git a/dev-ruby/rotp/metadata.xml b/dev-ruby/rotp/metadata.xml
30 new file mode 100644
31 index 00000000000..7d387e411d0
32 --- /dev/null
33 +++ b/dev-ruby/rotp/metadata.xml
34 @@ -0,0 +1,19 @@
35 +<?xml version="1.0" encoding="UTF-8"?>
36 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
37 +<pkgmetadata>
38 +<maintainer type="project">
39 +<email>ruby@g.o</email>
40 +</maintainer>
41 +<maintainer type="person" proxied="yes">
42 +<email>azamat.hackimov@×××××.com</email>
43 +<name>Azamat H. Hackimov</name>
44 +</maintainer>
45 +<maintainer type="project" proxied="proxy">
46 +<email>proxy-maint@g.o</email>
47 +<name>Proxy Maintainers</name>
48 +</maintainer>
49 +<upstream>
50 +<remote-id type="github">mdp/rotp</remote-id>
51 +<remote-id type="rubygems">rotp</remote-id>
52 +</upstream>
53 +</pkgmetadata>
54
55 diff --git a/dev-ruby/rotp/rotp-6.2.0.ebuild b/dev-ruby/rotp/rotp-6.2.0.ebuild
56 new file mode 100644
57 index 00000000000..8b16fcb7f63
58 --- /dev/null
59 +++ b/dev-ruby/rotp/rotp-6.2.0.ebuild
60 @@ -0,0 +1,31 @@
61 +# Copyright 2021 Gentoo Authors
62 +# Distributed under the terms of the GNU General Public License v2
63 +
64 +EAPI=8
65 +
66 +USE_RUBY="ruby26 ruby27 ruby30"
67 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
68 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
69 +RUBY_FAKEGEM_RECIPE_DOC="yard"
70 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
71 +
72 +inherit ruby-fakegem
73 +
74 +DESCRIPTION="The Ruby One Time Password Library"
75 +HOMEPAGE="https://github.com/mdp/rotp"
76 +SRC_URI="https://github.com/mdp/rotp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
77 +
78 +LICENSE="MIT"
79 +SLOT="0"
80 +KEYWORDS="~amd64 ~x86"
81 +
82 +RDEPEND="dev-libs/openssl:0="
83 +
84 +ruby_add_bdepend "
85 + test? ( >=dev-ruby/timecop-0.8 )
86 +"
87 +
88 +all_ruby_prepare() {
89 + # Remove simplecov
90 + sed -i -e '/simplecov/,/^end/ s:^:#:' spec/spec_helper.rb || die
91 +}