1 |
commit: e33340c687783244c13f4fc53929732f97117c65 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 25 06:50:50 2019 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 25 06:50:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e33340c6 |
7 |
|
8 |
dev-ruby/tzinfo: add 2.0.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/tzinfo/Manifest | 1 + |
14 |
dev-ruby/tzinfo/tzinfo-2.0.1.ebuild | 48 +++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 49 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/tzinfo/Manifest b/dev-ruby/tzinfo/Manifest |
18 |
index 07eac54de83..5a5ab31af9a 100644 |
19 |
--- a/dev-ruby/tzinfo/Manifest |
20 |
+++ b/dev-ruby/tzinfo/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST tzinfo-1.2.5.gem 153600 BLAKE2B 3df5625c61eabf94bb457381ac7d0cdebd5b55da3bb043fe58063cccccb623b502e026a71faef4f7d7efe75eae2fdfd0bf3e0b97a3763fec9a1018f0c6c2ae0f SHA512 87f7cd66d6e80d51d216cb993cc76fe7758db03ffd39dde96eb24a9d208699766a8dbff048485fb732ce125ee9f971e38ed9ee1197f3ee3fc3ee8a8da840dd45 |
23 |
DIST tzinfo-2.0.0.tar.gz 210379 BLAKE2B e3b8b7763dbe26ce58b1a1672d11c412f362910d695c321e51a9c28f1e742db34aa7c066827d7a4634e4a1f7824205007b66191cbeba7776dbc6cac1c9f144ca SHA512 cdc3393af8402dbde491f4547a1b169d90bcf7228c89b64f104538223fcb8f5cf8f7861ae1e11a723b213de7ab09fe31fc04ed9f275f80fe2929f0279d830679 |
24 |
+DIST tzinfo-2.0.1.tar.gz 212477 BLAKE2B 95a7ed460054d258485e24e63140853218ba00a7e3afc0c0ee2be5c91ee66588aec663a17d50dab7237b0091d0f423a845c474b18873a2a8153db2745f8fc1a7 SHA512 9cfd0a076aba5e7ae2f519374a6154a62e3ec71eaeb2d5a31bb07e3e26b44c4e01fce8cb385e0da9c565e0e408a0a7f204ac666baa7a9d6f3a592f2218ef99b6 |
25 |
|
26 |
diff --git a/dev-ruby/tzinfo/tzinfo-2.0.1.ebuild b/dev-ruby/tzinfo/tzinfo-2.0.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..d5315593e70 |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/tzinfo/tzinfo-2.0.1.ebuild |
31 |
@@ -0,0 +1,48 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+USE_RUBY="ruby24 ruby25 ruby26" |
37 |
+ |
38 |
+RUBY_FAKEGEM_TASK_TEST="test_zoneinfo" |
39 |
+ |
40 |
+RUBY_FAKEGEM_DOCDIR="doc" |
41 |
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" |
42 |
+ |
43 |
+RUBY_FAKEGEM_GEMSPEC="tzinfo.gemspec" |
44 |
+ |
45 |
+inherit ruby-fakegem |
46 |
+ |
47 |
+DESCRIPTION="Daylight-savings aware timezone library" |
48 |
+HOMEPAGE="https://tzinfo.github.io/" |
49 |
+SRC_URI="https://github.com/tzinfo/tzinfo/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="MIT" |
52 |
+SLOT="2" |
53 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
54 |
+IUSE="" |
55 |
+ |
56 |
+RDEPEND="sys-libs/timezone-data" |
57 |
+DEPEND="test? ( sys-libs/timezone-data )" |
58 |
+ |
59 |
+ruby_add_rdepend "dev-ruby/concurrent-ruby:1" |
60 |
+ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/minitest:5 )" |
61 |
+ |
62 |
+all_ruby_prepare() { |
63 |
+ # Set the secure permissions that tests expect. |
64 |
+ chmod 0755 "${HOME}" || die "Failed to fix permissions on home" |
65 |
+ |
66 |
+ # Skip safe tests since we cannot guarantee the correct permissions |
67 |
+ # on directories for it to pass. |
68 |
+ sed -e '/safe_test/askip "does not pass in gentoo test environment"' -i test/test_utils.rb || die |
69 |
+ |
70 |
+ # Loosen test dependencies |
71 |
+ sed -e '/rake/ s/12.2.1/12.2/' \ |
72 |
+ -e '/simplecov/d' \ |
73 |
+ -i Gemfile || die |
74 |
+ sed -e '/TEST_COVERAGE/d' -i Rakefile || die |
75 |
+} |
76 |
+ |
77 |
+each_ruby_test() { |
78 |
+ ${RUBY} -S bundle exec rake test || die |
79 |
+} |