diff options
author | Brian Evans <grknight@gentoo.org> | 2019-12-19 16:38:19 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2019-12-19 16:50:55 -0500 |
commit | a8b2280222ec60f056a41ea79c3bd248b73b6437 (patch) | |
tree | d28b16c5f9530933b1d04c6bc093f80491cf4e3b /dev-php/sebastian-object-reflector | |
parent | dev-php/sebastian-comparator: Version bump for 3.0.2 (diff) | |
download | gentoo-a8b2280222ec60f056a41ea79c3bd248b73b6437.tar.gz gentoo-a8b2280222ec60f056a41ea79c3bd248b73b6437.tar.bz2 gentoo-a8b2280222ec60f056a41ea79c3bd248b73b6437.zip |
dev-php/sebastian-object-reflector: New package
As a dependency of dev-php/sebastian-global-state new version
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'dev-php/sebastian-object-reflector')
4 files changed, 53 insertions, 0 deletions
diff --git a/dev-php/sebastian-object-reflector/Manifest b/dev-php/sebastian-object-reflector/Manifest new file mode 100644 index 000000000000..696a3886fa33 --- /dev/null +++ b/dev-php/sebastian-object-reflector/Manifest @@ -0,0 +1 @@ +DIST sebastian-object-reflector-1.1.1.tar.gz 4755 BLAKE2B c549186722bde6625d44478dc90023511cd4e2fb9fe206b08881746e4443275b20eaad86a13bc202b3f464cad7239aac28da9962db7a97b9c789534424cb3ead SHA512 42dc43d1a606b1aedf2cc40443139d115fc38a50a2e51d2b4d72ecededf39bf5cecbed6d1bb002dbb6f7bd3c7da50d9436f7489f9078d52d61af7777f31f5e57 diff --git a/dev-php/sebastian-object-reflector/files/autoload.php b/dev-php/sebastian-object-reflector/files/autoload.php new file mode 100644 index 000000000000..5190fda9b96c --- /dev/null +++ b/dev-php/sebastian-object-reflector/files/autoload.php @@ -0,0 +1,15 @@ +<?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\objectreflector\exception' => '/Exception.php', + 'sebastianbergmann\objectreflector\invalidargumentexception' => '/InvalidArgumentException.php', + 'sebastianbergmann\objectreflector\objectreflector' => '/ObjectReflector.php', + ], + __DIR__ +); diff --git a/dev-php/sebastian-object-reflector/metadata.xml b/dev-php/sebastian-object-reflector/metadata.xml new file mode 100644 index 000000000000..145e45a7391b --- /dev/null +++ b/dev-php/sebastian-object-reflector/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/version</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-php/sebastian-object-reflector/sebastian-object-reflector-1.1.1.ebuild b/dev-php/sebastian-object-reflector/sebastian-object-reflector-1.1.1.ebuild new file mode 100644 index 000000000000..c7d927bc2c56 --- /dev/null +++ b/dev-php/sebastian-object-reflector/sebastian-object-reflector-1.1.1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="object-reflector" + +DESCRIPTION="Allows reflection of object attributes, including inherited and non-public ones" +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*" + +src_install() { + insinto /usr/share/php/SebastianBergmann/ObjectReflector + doins src/ObjectReflector.php src/{,InvalidArgument}Exception.php + doins "${FILESDIR}/autoload.php" +} |