Gentoo Archives: gentoo-commits

From: Kent Fredric <kentnl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/DateTime-HiRes/, dev-perl/DateTime-HiRes/files/
Date: Fri, 20 Oct 2017 07:40:14
Message-Id: 1508485185.c21da564925333042a5b240494c94ece62f5a71d.kentnl@gentoo
1 commit: c21da564925333042a5b240494c94ece62f5a71d
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 20 02:59:59 2017 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 20 07:39:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c21da564
7
8 dev-perl/DateTime-HiRes: EAPI6 + Tests
9
10 - EAPI6
11 - Enable tests
12 - Fix tests against newer DateTime
13
14 Package-Manager: Portage-2.3.8, Repoman-2.3.3
15
16 .../DateTime-HiRes/DateTime-HiRes-0.10.0-r1.ebuild | 19 +++++++++++
17 .../DateTime-HiRes-0.10.0-datetimelocale.patch | 39 ++++++++++++++++++++++
18 2 files changed, 58 insertions(+)
19
20 diff --git a/dev-perl/DateTime-HiRes/DateTime-HiRes-0.10.0-r1.ebuild b/dev-perl/DateTime-HiRes/DateTime-HiRes-0.10.0-r1.ebuild
21 new file mode 100644
22 index 00000000000..8663f56e040
23 --- /dev/null
24 +++ b/dev-perl/DateTime-HiRes/DateTime-HiRes-0.10.0-r1.ebuild
25 @@ -0,0 +1,19 @@
26 +# Copyright 1999-2017 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=6
30 +
31 +DIST_AUTHOR=JHOBLITT
32 +DIST_VERSION=0.01
33 +inherit perl-module
34 +
35 +DESCRIPTION="Create DateTime objects with sub-second current time resolution"
36 +
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +IUSE=""
40 +
41 +RDEPEND="dev-perl/DateTime"
42 +DEPEND="${RDEPEND}
43 + dev-perl/Module-Build"
44 +PATCHES=("${FILESDIR}/${P}-datetimelocale.patch" )
45
46 diff --git a/dev-perl/DateTime-HiRes/files/DateTime-HiRes-0.10.0-datetimelocale.patch b/dev-perl/DateTime-HiRes/files/DateTime-HiRes-0.10.0-datetimelocale.patch
47 new file mode 100644
48 index 00000000000..37847c4d556
49 --- /dev/null
50 +++ b/dev-perl/DateTime-HiRes/files/DateTime-HiRes-0.10.0-datetimelocale.patch
51 @@ -0,0 +1,39 @@
52 +From 39dca8357ffbc562d1a4138586795a32e2a0c8ea Mon Sep 17 00:00:00 2001
53 +From: Roy Ivy III <rivy.dev@×××××.com>
54 +Date: Mon, 6 Jun 2016 14:03:59 -0500
55 +Subject: fix locale testing bug, accepting both old and new canonical locale
56 + forms
57 +
58 +* fixes #1
59 +* fixes [rt-bug#109088]
60 +
61 +.# Discussion
62 +
63 +In v1.00, DateTime::Locale changed the canonical form of locale to use dashes instead of
64 +underscrores (see [1]). This causes a failure within the "t/02_now.t" test, blocking
65 +unforced installs.
66 +
67 +refs
68 +[1] https://github.com/autarch/DateTime-Locale/blob/v1.00/Changes#L44
69 +[rt-bug#109088] https://rt.cpan.org/Public/Bug/Display.html?id=109088 @@ https://archive.is/3RccB
70 +
71 +Bug: https://rt.cpan.org/Public/Bug/Display.html?id=109088
72 +Bug: https://github.com/jhoblitt/DateTime-HiRes/pull/2
73 +---
74 + t/02_now.t | 2 +-
75 + 1 file changed, 1 insertion(+), 1 deletion(-)
76 +
77 +diff --git a/t/02_now.t b/t/02_now.t
78 +index 4eb1f74..fc55184 100644
79 +--- a/t/02_now.t
80 ++++ b/t/02_now.t
81 +@@ -32,5 +32,5 @@ use DateTime::HiRes;
82 + );
83 +
84 + is( $dt->time_zone_long_name, 'Africa/Cairo', "accepted time_zone parameter" );
85 +- is( $dt->locale->id, 'ar_EG', "accepted locale parameter" );
86 ++ like( $dt->locale->id, qr'ar[_-]EG', "accepted locale parameter" );
87 + }
88 +--
89 +2.14.2
90 +