commit:     aebde57f59d3874349f35b8aaf837a4275cfed72
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 29 23:33:10 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Nov 30 00:39:13 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aebde57f

dev-php/zetacomponents-Base: new package

Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 dev-php/zetacomponents-Base/Manifest               |  1 +
 dev-php/zetacomponents-Base/files/autoload.php     | 53 ++++++++++++++++++++++
 dev-php/zetacomponents-Base/metadata.xml           | 11 +++++
 .../zetacomponents-Base-1.9.1.ebuild               | 26 +++++++++++
 4 files changed, 91 insertions(+)

diff --git a/dev-php/zetacomponents-Base/Manifest 
b/dev-php/zetacomponents-Base/Manifest
new file mode 100644
index 00000000000..d2b1d99d329
--- /dev/null
+++ b/dev-php/zetacomponents-Base/Manifest
@@ -0,0 +1 @@
+DIST zetacomponents-Base-1.9.1.tar.gz 252350 BLAKE2B 
cc0d82a107fc1190b57b03ce3a594d9ffa5b3a2627cf30d7d31a1018005a8400917cf7bbd1dfeb23f46d118ae56083e147d148b3bbdba5dfea8fde0a8bcf0c46
 SHA512 
dd56f123c8ed3b8c0116b878120ba7763e402b8364ba404305a9ab483b1c5a341df994517f160c8a959005ab9b75a5a7af74d08b367daa3fd8f852ba4ede5e05

diff --git a/dev-php/zetacomponents-Base/files/autoload.php 
b/dev-php/zetacomponents-Base/files/autoload.php
new file mode 100644
index 00000000000..17bec81a6d2
--- /dev/null
+++ b/dev-php/zetacomponents-Base/files/autoload.php
@@ -0,0 +1,53 @@
+<?php
+// @codingStandardsIgnoreFile
+// @codeCoverageIgnoreStart
+// this is an autogenerated file - do not edit
+spl_autoload_register(
+    function($class) {
+        static $classes = null;
+        if ($classes === null) {
+            $classes = array(
+                'ezcbase' => '/base.php',
+                'ezcbaseautoloadexception' => '/exceptions/autoload.php',
+                'ezcbaseautoloadoptions' => '/options/autoload.php',
+                'ezcbaseconfigurationinitializer' => 
'/interfaces/configuration_initializer.php',
+                'ezcbasedoubleclassrepositoryprefixexception' => 
'/exceptions/double_class_repository_prefix.php',
+                'ezcbaseexception' => '/exceptions/exception.php',
+                'ezcbaseexportable' => '/interfaces/exportable.php',
+                'ezcbaseextensionnotfoundexception' => 
'/exceptions/extension_not_found.php',
+                'ezcbasefeatures' => '/features.php',
+                'ezcbasefile' => '/file.php',
+                'ezcbasefileexception' => '/exceptions/file_exception.php',
+                'ezcbasefilefindcontext' => '/structs/file_find_context.php',
+                'ezcbasefileioexception' => '/exceptions/file_io.php',
+                'ezcbasefilenotfoundexception' => 
'/exceptions/file_not_found.php',
+                'ezcbasefilepermissionexception' => 
'/exceptions/file_permission.php',
+                'ezcbasefunctionalitynotsupportedexception' => 
'/exceptions/functionality_not_supported.php',
+                'ezcbaseinit' => '/init.php',
+                'ezcbaseinitcallbackconfiguredexception' => 
'/exceptions/init_callback_configured.php',
+                'ezcbaseinitinvalidcallbackclassexception' => 
'/exceptions/invalid_callback_class.php',
+                'ezcbaseinvalidparentclassexception' => 
'/exceptions/invalid_parent_class.php',
+                'ezcbasemetadata' => '/metadata.php',
+                'ezcbasemetadatapearreader' => '/metadata/pear.php',
+                'ezcbasemetadatatarballreader' => '/metadata/tarball.php',
+                'ezcbaseoptions' => '/options.php',
+                'ezcbasepersistable' => '/interfaces/persistable.php',
+                'ezcbasepropertynotfoundexception' => 
'/exceptions/property_not_found.php',
+                'ezcbasepropertypermissionexception' => 
'/exceptions/property_permission.php',
+                'ezcbaserepositorydirectory' => 
'/structs/repository_directory.php',
+                'ezcbasesettingnotfoundexception' => 
'/exceptions/setting_not_found.php',
+                'ezcbasesettingvalueexception' => 
'/exceptions/setting_value.php',
+                'ezcbasestruct' => '/struct.php',
+                'ezcbasevalueexception' => '/exceptions/value.php',
+                'ezcbasewhateverexception' => '/exceptions/whatever.php'
+            );
+        }
+        $cn = strtolower($class);
+        if (isset($classes[$cn])) {
+            require __DIR__ . $classes[$cn];
+        }
+    },
+    true,
+    false
+);
+// @codeCoverageIgnoreEnd

diff --git a/dev-php/zetacomponents-Base/metadata.xml 
b/dev-php/zetacomponents-Base/metadata.xml
new file mode 100644
index 00000000000..8dbb073e53f
--- /dev/null
+++ b/dev-php/zetacomponents-Base/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>php-b...@gentoo.org</email>
+               <name>PHP</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">zetacomponents/Base</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-php/zetacomponents-Base/zetacomponents-Base-1.9.1.ebuild 
b/dev-php/zetacomponents-Base/zetacomponents-Base-1.9.1.ebuild
new file mode 100644
index 00000000000..a1c68a7472b
--- /dev/null
+++ b/dev-php/zetacomponents-Base/zetacomponents-Base-1.9.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="Base"
+
+DESCRIPTION="Base package for any Zeta component"
+HOMEPAGE="https://github.com/zetacomponents/Base";
+SRC_URI="https://github.com/zetacomponents/${MY_PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+
+RDEPEND="dev-lang/php:*"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_install() {
+       insinto /usr/share/php/ezc/${MY_PN}
+       doins -r src/*
+       doins "${FILESDIR}"/autoload.php
+
+       einstalldocs
+}

Reply via email to