diff options
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" +} |