Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/PHP_Timer/, dev-php/PHP_Timer/files/
Date: Fri, 07 Jan 2022 14:34:07
Message-Id: 1641566040.5da9fa558b0aa96b2c4036c81e07cea18d7402bc.grknight@gentoo
1 commit: 5da9fa558b0aa96b2c4036c81e07cea18d7402bc
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 7 14:28:34 2022 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 7 14:34:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5da9fa55
7
8 dev-php/PHP_Timer: Version bump for 5.0.3
9
10 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
11
12 dev-php/PHP_Timer/Manifest | 1 +
13 dev-php/PHP_Timer/PHP_Timer-5.0.3.ebuild | 31 ++++++++++++++++++++++++++++++
14 dev-php/PHP_Timer/files/autoload-5.0.3.php | 18 +++++++++++++++++
15 3 files changed, 50 insertions(+)
16
17 diff --git a/dev-php/PHP_Timer/Manifest b/dev-php/PHP_Timer/Manifest
18 index e502bf2d2ae4..29415f02a66d 100644
19 --- a/dev-php/PHP_Timer/Manifest
20 +++ b/dev-php/PHP_Timer/Manifest
21 @@ -1 +1,2 @@
22 DIST PHP_Timer-2.1.2.tar.gz 7090 BLAKE2B c99dd69433b3579e9ed81f06188cac280b6ac383bce12acd9c6a00b5a6d6017a94c427692b639ad1516c1faebec8e160b7cd5c7e5e96043dd3dcb6d283d2095b SHA512 199175e048560756867180cd99a3ca1766431d14091f1448cd8011df5f7824504a6c586ef15d9e53374bdb9dbd1731c05b44509e59d92d725908ec2c46d7d576
23 +DIST PHP_Timer-5.0.3.tar.gz 5363 BLAKE2B b63d438eab1dd5d872a1a632f1861d216dbdd7ab073a8fa36bad7f93134fd0c98ef7eb049189aeb6373b60eba592cc5add0044ac577d0b9728f3f78156dae914 SHA512 e1642cd0d247a49981f142b6975339c4abaf26cf4847783f309a0a15ba7a55520c7d1e11a87ea9b923337a9972f4dc95ee11121484a75c9c7a20882f664e8ba5
24
25 diff --git a/dev-php/PHP_Timer/PHP_Timer-5.0.3.ebuild b/dev-php/PHP_Timer/PHP_Timer-5.0.3.ebuild
26 new file mode 100644
27 index 000000000000..2ce617845f94
28 --- /dev/null
29 +++ b/dev-php/PHP_Timer/PHP_Timer-5.0.3.ebuild
30 @@ -0,0 +1,31 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +MY_PN="php-timer"
37 +
38 +DESCRIPTION="Utility class for timing"
39 +HOMEPAGE="https://phpunit.de"
40 +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="BSD"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
45 +IUSE=""
46 +
47 +S="${WORKDIR}/${MY_PN}-${PV}"
48 +
49 +RDEPEND="dev-php/fedora-autoloader
50 + >=dev-lang/php-7.1:*"
51 +
52 +src_install() {
53 + insinto /usr/share/php/PHP/Timer
54 + doins -r src/*
55 + newins "${FILESDIR}/autoload-5.0.3.php" autoload.php
56 +}
57 +
58 +pkg_postinst() {
59 + ewarn "This library now loads via /usr/share/php/PHP/Timer/autoload.php"
60 + ewarn "Please update any scripts to require the autoloader"
61 +}
62
63 diff --git a/dev-php/PHP_Timer/files/autoload-5.0.3.php b/dev-php/PHP_Timer/files/autoload-5.0.3.php
64 new file mode 100644
65 index 000000000000..45b65b6045e8
66 --- /dev/null
67 +++ b/dev-php/PHP_Timer/files/autoload-5.0.3.php
68 @@ -0,0 +1,18 @@
69 +<?php
70 +/* Autoloader for dev-php/PHP_Timer */
71 +
72 +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
73 + require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
74 +}
75 +
76 +\Fedora\Autoloader\Autoload::addClassMap(
77 + [
78 + 'sebastianbergmann\timer\duration' => '/Duration.php',
79 + 'sebastianbergmann\timer\exception' => '/exceptions/Exception.php',
80 + 'sebastianbergmann\timer\noactivetimerexception' => '/exceptions/NoActiveTimerException.php',
81 + 'sebastianbergmann\timer\resourceusageformatter' => '/ResourceUsageFormatter.php',
82 + 'sebastianbergmann\timer\timer' => '/Timer.php',
83 + 'sebastianbergmann\timer\timesincestartofrequestnotavailableexception' => '/exceptions/TimeSinceStartOfRequestNotAvailableException.php',
84 + ],
85 + __DIR__
86 +);