Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/zetacomponents-Base/files/, dev-php/zetacomponents-Base/
Date: Mon, 30 Nov 2020 00:39:30
Message-Id: 1606696753.aebde57f59d3874349f35b8aaf837a4275cfed72.whissi@gentoo
1 commit: aebde57f59d3874349f35b8aaf837a4275cfed72
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 23:33:10 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 00:39:13 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aebde57f
7
8 dev-php/zetacomponents-Base: new package
9
10 Package-Manager: Portage-3.0.10, Repoman-3.0.2
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-php/zetacomponents-Base/Manifest | 1 +
14 dev-php/zetacomponents-Base/files/autoload.php | 53 ++++++++++++++++++++++
15 dev-php/zetacomponents-Base/metadata.xml | 11 +++++
16 .../zetacomponents-Base-1.9.1.ebuild | 26 +++++++++++
17 4 files changed, 91 insertions(+)
18
19 diff --git a/dev-php/zetacomponents-Base/Manifest b/dev-php/zetacomponents-Base/Manifest
20 new file mode 100644
21 index 00000000000..d2b1d99d329
22 --- /dev/null
23 +++ b/dev-php/zetacomponents-Base/Manifest
24 @@ -0,0 +1 @@
25 +DIST zetacomponents-Base-1.9.1.tar.gz 252350 BLAKE2B cc0d82a107fc1190b57b03ce3a594d9ffa5b3a2627cf30d7d31a1018005a8400917cf7bbd1dfeb23f46d118ae56083e147d148b3bbdba5dfea8fde0a8bcf0c46 SHA512 dd56f123c8ed3b8c0116b878120ba7763e402b8364ba404305a9ab483b1c5a341df994517f160c8a959005ab9b75a5a7af74d08b367daa3fd8f852ba4ede5e05
26
27 diff --git a/dev-php/zetacomponents-Base/files/autoload.php b/dev-php/zetacomponents-Base/files/autoload.php
28 new file mode 100644
29 index 00000000000..17bec81a6d2
30 --- /dev/null
31 +++ b/dev-php/zetacomponents-Base/files/autoload.php
32 @@ -0,0 +1,53 @@
33 +<?php
34 +// @codingStandardsIgnoreFile
35 +// @codeCoverageIgnoreStart
36 +// this is an autogenerated file - do not edit
37 +spl_autoload_register(
38 + function($class) {
39 + static $classes = null;
40 + if ($classes === null) {
41 + $classes = array(
42 + 'ezcbase' => '/base.php',
43 + 'ezcbaseautoloadexception' => '/exceptions/autoload.php',
44 + 'ezcbaseautoloadoptions' => '/options/autoload.php',
45 + 'ezcbaseconfigurationinitializer' => '/interfaces/configuration_initializer.php',
46 + 'ezcbasedoubleclassrepositoryprefixexception' => '/exceptions/double_class_repository_prefix.php',
47 + 'ezcbaseexception' => '/exceptions/exception.php',
48 + 'ezcbaseexportable' => '/interfaces/exportable.php',
49 + 'ezcbaseextensionnotfoundexception' => '/exceptions/extension_not_found.php',
50 + 'ezcbasefeatures' => '/features.php',
51 + 'ezcbasefile' => '/file.php',
52 + 'ezcbasefileexception' => '/exceptions/file_exception.php',
53 + 'ezcbasefilefindcontext' => '/structs/file_find_context.php',
54 + 'ezcbasefileioexception' => '/exceptions/file_io.php',
55 + 'ezcbasefilenotfoundexception' => '/exceptions/file_not_found.php',
56 + 'ezcbasefilepermissionexception' => '/exceptions/file_permission.php',
57 + 'ezcbasefunctionalitynotsupportedexception' => '/exceptions/functionality_not_supported.php',
58 + 'ezcbaseinit' => '/init.php',
59 + 'ezcbaseinitcallbackconfiguredexception' => '/exceptions/init_callback_configured.php',
60 + 'ezcbaseinitinvalidcallbackclassexception' => '/exceptions/invalid_callback_class.php',
61 + 'ezcbaseinvalidparentclassexception' => '/exceptions/invalid_parent_class.php',
62 + 'ezcbasemetadata' => '/metadata.php',
63 + 'ezcbasemetadatapearreader' => '/metadata/pear.php',
64 + 'ezcbasemetadatatarballreader' => '/metadata/tarball.php',
65 + 'ezcbaseoptions' => '/options.php',
66 + 'ezcbasepersistable' => '/interfaces/persistable.php',
67 + 'ezcbasepropertynotfoundexception' => '/exceptions/property_not_found.php',
68 + 'ezcbasepropertypermissionexception' => '/exceptions/property_permission.php',
69 + 'ezcbaserepositorydirectory' => '/structs/repository_directory.php',
70 + 'ezcbasesettingnotfoundexception' => '/exceptions/setting_not_found.php',
71 + 'ezcbasesettingvalueexception' => '/exceptions/setting_value.php',
72 + 'ezcbasestruct' => '/struct.php',
73 + 'ezcbasevalueexception' => '/exceptions/value.php',
74 + 'ezcbasewhateverexception' => '/exceptions/whatever.php'
75 + );
76 + }
77 + $cn = strtolower($class);
78 + if (isset($classes[$cn])) {
79 + require __DIR__ . $classes[$cn];
80 + }
81 + },
82 + true,
83 + false
84 +);
85 +// @codeCoverageIgnoreEnd
86
87 diff --git a/dev-php/zetacomponents-Base/metadata.xml b/dev-php/zetacomponents-Base/metadata.xml
88 new file mode 100644
89 index 00000000000..8dbb073e53f
90 --- /dev/null
91 +++ b/dev-php/zetacomponents-Base/metadata.xml
92 @@ -0,0 +1,11 @@
93 +<?xml version='1.0' encoding='UTF-8'?>
94 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
95 +<pkgmetadata>
96 + <maintainer type="project">
97 + <email>php-bugs@g.o</email>
98 + <name>PHP</name>
99 + </maintainer>
100 + <upstream>
101 + <remote-id type="github">zetacomponents/Base</remote-id>
102 + </upstream>
103 +</pkgmetadata>
104
105 diff --git a/dev-php/zetacomponents-Base/zetacomponents-Base-1.9.1.ebuild b/dev-php/zetacomponents-Base/zetacomponents-Base-1.9.1.ebuild
106 new file mode 100644
107 index 00000000000..a1c68a7472b
108 --- /dev/null
109 +++ b/dev-php/zetacomponents-Base/zetacomponents-Base-1.9.1.ebuild
110 @@ -0,0 +1,26 @@
111 +# Copyright 1999-2020 Gentoo Authors
112 +# Distributed under the terms of the GNU General Public License v2
113 +
114 +EAPI=7
115 +
116 +MY_PN="Base"
117 +
118 +DESCRIPTION="Base package for any Zeta component"
119 +HOMEPAGE="https://github.com/zetacomponents/Base"
120 +SRC_URI="https://github.com/zetacomponents/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
121 +
122 +LICENSE="Apache-2.0"
123 +SLOT="0"
124 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
125 +
126 +RDEPEND="dev-lang/php:*"
127 +
128 +S="${WORKDIR}/${MY_PN}-${PV}"
129 +
130 +src_install() {
131 + insinto /usr/share/php/ezc/${MY_PN}
132 + doins -r src/*
133 + doins "${FILESDIR}"/autoload.php
134 +
135 + einstalldocs
136 +}