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>
This commit is contained in:
Brian Evans
2019-12-19 16:38:19 -05:00
parent 456a4c8ae4
commit a8b2280222
4 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST sebastian-object-reflector-1.1.1.tar.gz 4755 BLAKE2B c549186722bde6625d44478dc90023511cd4e2fb9fe206b08881746e4443275b20eaad86a13bc202b3f464cad7239aac28da9962db7a97b9c789534424cb3ead SHA512 42dc43d1a606b1aedf2cc40443139d115fc38a50a2e51d2b4d72ecededf39bf5cecbed6d1bb002dbb6f7bd3c7da50d9436f7489f9078d52d61af7777f31f5e57

View File

@@ -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__
);

View File

@@ -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>

View File

@@ -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"
}