1 |
commit: 90c1b947474174ca04ccae5374374b0a12ab0c33 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 27 06:13:54 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 27 07:13:12 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90c1b947 |
7 |
|
8 |
dev-ruby/time: initial import of 0.2.0 |
9 |
|
10 |
Extracted from dev-lang/ruby, keywords set accordingly. |
11 |
|
12 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
13 |
|
14 |
dev-ruby/time/Manifest | 1 + |
15 |
dev-ruby/time/metadata.xml | 11 +++++++++++ |
16 |
dev-ruby/time/time-0.2.0.ebuild | 31 +++++++++++++++++++++++++++++++ |
17 |
3 files changed, 43 insertions(+) |
18 |
|
19 |
diff --git a/dev-ruby/time/Manifest b/dev-ruby/time/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000000..46d68074082b |
22 |
--- /dev/null |
23 |
+++ b/dev-ruby/time/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST time-0.2.0.tar.gz 25276 BLAKE2B e944fc0ad371608b24c543e503504e1bfd9015f8b998372e6e4a08d2b76c7d75b478ceac42d4d955c205e4ed30a018d3c008e947d9d3215fcd32d78f429aee92 SHA512 07b4896827014ab1f6394ee8a116a8074c2342c070b814bb190104a404828d684c9ca49d0c53fe5ef4518d5455de73d5f4c03051cbae47257fa631b17515d2f9 |
26 |
|
27 |
diff --git a/dev-ruby/time/metadata.xml b/dev-ruby/time/metadata.xml |
28 |
new file mode 100644 |
29 |
index 000000000000..3491d92c0b1d |
30 |
--- /dev/null |
31 |
+++ b/dev-ruby/time/metadata.xml |
32 |
@@ -0,0 +1,11 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="project"> |
37 |
+ <email>ruby@g.o</email> |
38 |
+ <name>Gentoo Ruby Project</name> |
39 |
+ </maintainer> |
40 |
+ <upstream> |
41 |
+ <remote-id type="github">ruby/time</remote-id> |
42 |
+ </upstream> |
43 |
+</pkgmetadata> |
44 |
|
45 |
diff --git a/dev-ruby/time/time-0.2.0.ebuild b/dev-ruby/time/time-0.2.0.ebuild |
46 |
new file mode 100644 |
47 |
index 000000000000..ae7b805d59f6 |
48 |
--- /dev/null |
49 |
+++ b/dev-ruby/time/time-0.2.0.ebuild |
50 |
@@ -0,0 +1,31 @@ |
51 |
+# Copyright 1999-2022 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=8 |
55 |
+USE_RUBY="ruby26 ruby27 ruby30 ruby31" |
56 |
+ |
57 |
+RUBY_FAKEGEM_BINWRAP="" |
58 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
59 |
+RUBY_FAKEGEM_GEMSPEC="time.gemspec" |
60 |
+ |
61 |
+inherit ruby-fakegem |
62 |
+ |
63 |
+DESCRIPTION="Extends the Time class with methods for parsing and conversion" |
64 |
+HOMEPAGE="https://github.com/ruby/time" |
65 |
+SRC_URI="https://github.com/ruby/time/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
66 |
+ |
67 |
+LICENSE="BSD-2" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
70 |
+IUSE="" |
71 |
+ |
72 |
+all_ruby_prepare() { |
73 |
+ sed -e 's/__dir__/"."/' \ |
74 |
+ -e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \ |
75 |
+ -e 's/git ls-files -z/find * -print0/' \ |
76 |
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die |
77 |
+} |
78 |
+ |
79 |
+each_ruby_test() { |
80 |
+ ${RUBY} -Ilib:.:test:test/lib -rhelper -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die |
81 |
+} |