commit:     72d99c239872a23f27291d88a2a82dc25358fa41
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  9 15:36:28 2017 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Thu Mar  9 16:22:10 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72d99c23

dev-php/phpdocumentor-type-resolver: New package for an unbundled phpunit

Package-Manager: Portage-2.3.4, Repoman-2.3.2

 dev-php/phpdocumentor-type-resolver/Manifest       |  1 +
 .../phpdocumentor-type-resolver/files/autoload.php |  8 +++++++
 dev-php/phpdocumentor-type-resolver/metadata.xml   |  8 +++++++
 .../phpdocumentor-type-resolver-0.2.1.ebuild       | 28 ++++++++++++++++++++++
 4 files changed, 45 insertions(+)

diff --git a/dev-php/phpdocumentor-type-resolver/Manifest 
b/dev-php/phpdocumentor-type-resolver/Manifest
new file mode 100644
index 00000000000..f9c9a635f98
--- /dev/null
+++ b/dev-php/phpdocumentor-type-resolver/Manifest
@@ -0,0 +1 @@
+DIST phpdocumentor-type-resolver-0.2.1.tar.gz 15231 SHA256 
eb9c3adf6b8f51c43e504bf2024bb198285a2e9fc895545137c067a90f930cde SHA512 
888d165b397831d7319116c71dc34a3c738601bdb9956d250f80ee89374a9f063449ae9a82a43646e9156ad720e84e5d951c35dee746a37354388cd1f69d5154
 WHIRLPOOL 
f56e01e3316550828b97fa852f1e172c8c41e92510bc34dbd583a792a1f39c92039816de7c09027744f269c5854ed442aa5fc5543299823519923fdc7eec75ea

diff --git a/dev-php/phpdocumentor-type-resolver/files/autoload.php 
b/dev-php/phpdocumentor-type-resolver/files/autoload.php
new file mode 100644
index 00000000000..356515b7a00
--- /dev/null
+++ b/dev-php/phpdocumentor-type-resolver/files/autoload.php
@@ -0,0 +1,8 @@
+<?php
+/* Autoloader for dev-php/phpdocumentor-reflection-common */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+       require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+Fedora\Autoloader\Autoload::addPsr4('phpDocumentor\\Reflection\\', __DIR__);

diff --git a/dev-php/phpdocumentor-type-resolver/metadata.xml 
b/dev-php/phpdocumentor-type-resolver/metadata.xml
new file mode 100644
index 00000000000..b86acf66c75
--- /dev/null
+++ b/dev-php/phpdocumentor-type-resolver/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>PHP</name>
+       </maintainer>
+</pkgmetadata>

diff --git 
a/dev-php/phpdocumentor-type-resolver/phpdocumentor-type-resolver-0.2.1.ebuild 
b/dev-php/phpdocumentor-type-resolver/phpdocumentor-type-resolver-0.2.1.ebuild
new file mode 100644
index 00000000000..d73a456f380
--- /dev/null
+++ 
b/dev-php/phpdocumentor-type-resolver/phpdocumentor-type-resolver-0.2.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="TypeResolver"
+MY_VENDOR="phpDocumentor"
+
+DESCRIPTION="PSR-5 based resolver of Class names, Types and Structural Element 
Names"
+HOMEPAGE="https://www.phpdoc.org";
+SRC_URI="https://github.com/${MY_VENDOR}/${MY_PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+RDEPEND="dev-php/fedora-autoloader
+       <dev-php/phpdocumentor-reflection-common-2
+       >=dev-lang/php-5.6:*"
+
+src_install() {
+       insinto /usr/share/php/${MY_VENDOR}/${MY_PN}
+       doins -r src/*
+       doins "${FILESDIR}/autoload.php"
+}

Reply via email to