* [gentoo-commits] repo/gentoo:master commit in: dev-php/sebastian-type/, dev-php/sebastian-type/files/
@ 2019-12-19 21:51 Brian Evans
0 siblings, 0 replies; only message in thread
From: Brian Evans @ 2019-12-19 21:51 UTC (permalink / raw
To: gentoo-commits
commit: 56d48589544ae18f869f490a1c3fadfa357e732b
Author: Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 19 20:23:29 2019 +0000
Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Thu Dec 19 21:50:52 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56d48589
dev-php/sebastian-type: New Package
Required for now phpunit
Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
dev-php/sebastian-type/Manifest | 1 +
dev-php/sebastian-type/files/autoload.php | 24 +++++++++++++++++++
dev-php/sebastian-type/metadata.xml | 11 +++++++++
dev-php/sebastian-type/sebastian-type-1.1.3.ebuild | 27 ++++++++++++++++++++++
4 files changed, 63 insertions(+)
diff --git a/dev-php/sebastian-type/Manifest b/dev-php/sebastian-type/Manifest
new file mode 100644
index 00000000000..922b2aba231
--- /dev/null
+++ b/dev-php/sebastian-type/Manifest
@@ -0,0 +1 @@
+DIST sebastian-type-1.1.3.tar.gz 19031 BLAKE2B 5e0d191cbc9315661f226aca14849ac4afa6d9e1dc59ca6033c60e425c94ee8b9ad49ab1c2b94c7814654bbadbaadd0164fadb1494f88c9521b2583985ba0281 SHA512 27b455c7a5f1125c916ea56fd933ef9ffa659b3fa6addf8d2c5956e4efef5bd8ffadc686e5dddfc50ba09a300c8148af7dded4249f404e15923e77102ab777fc
diff --git a/dev-php/sebastian-type/files/autoload.php b/dev-php/sebastian-type/files/autoload.php
new file mode 100644
index 00000000000..91b60dbf64b
--- /dev/null
+++ b/dev-php/sebastian-type/files/autoload.php
@@ -0,0 +1,24 @@
+<?php
+/* Autoloader for dev-php/sebastian-version */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+ [
+ 'sebastianbergmann\type\callabletype' => '/CallableType.php',
+ 'sebastianbergmann\type\genericobjecttype' => '/GenericObjectType.php',
+ 'sebastianbergmann\type\iterabletype' => '/IterableType.php',
+ 'sebastianbergmann\type\nulltype' => '/NullType.php',
+ 'sebastianbergmann\type\objecttype' => '/ObjectType.php',
+ 'sebastianbergmann\type\simpletype' => '/SimpleType.php',
+ 'sebastianbergmann\type\type' => '/Type.php',
+ 'sebastianbergmann\type\typename' => '/TypeName.php',
+ 'sebastianbergmann\type\unknowntype' => '/UnknownType.php',
+ 'sebastianbergmann\type\voidtype' => '/VoidType.php',
+ 'sebastianbergmann\type\exception' => '/exception/Exception.php',
+ 'sebastianbergmann\type\runtimeexception' => '/exception/RuntimeException.php',
+ ],
+ __DIR__
+);
diff --git a/dev-php/sebastian-type/metadata.xml b/dev-php/sebastian-type/metadata.xml
new file mode 100644
index 00000000000..59391408bb9
--- /dev/null
+++ b/dev-php/sebastian-type/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-bugs@gentoo.org</email>
+ <name>PHP</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">sebastianbergmann/type</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-php/sebastian-type/sebastian-type-1.1.3.ebuild b/dev-php/sebastian-type/sebastian-type-1.1.3.ebuild
new file mode 100644
index 00000000000..b9d9a3f6694
--- /dev/null
+++ b/dev-php/sebastian-type/sebastian-type-1.1.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="type"
+
+DESCRIPTION="Collection of value objects that represent the types of the PHP type system"
+HOMEPAGE="http://phpunit.de"
+SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+RDEPEND="dev-php/fedora-autoloader
+ >=dev-lang/php-7.2:*"
+
+src_install() {
+ insinto /usr/share/php/SebastianBergmann
+ doins -r src/*
+ insinto /usr/share/php/SebastianBergmann/Type
+ doins "${FILESDIR}/autoload.php"
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-19 21:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-19 21:51 [gentoo-commits] repo/gentoo:master commit in: dev-php/sebastian-type/, dev-php/sebastian-type/files/ Brian Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox