dev-php/phpdocumentor-type-resolver: New package for an unbundled phpunit
authorBrian Evans <grknight@gentoo.org>
Thu, 9 Mar 2017 15:36:28 +0000 (10:36 -0500)
committerBrian Evans <grknight@gentoo.org>
Thu, 9 Mar 2017 16:22:10 +0000 (11:22 -0500)
Package-Manager: Portage-2.3.4, Repoman-2.3.2

dev-php/phpdocumentor-type-resolver/Manifest [new file with mode: 0644]
dev-php/phpdocumentor-type-resolver/files/autoload.php [new file with mode: 0644]
dev-php/phpdocumentor-type-resolver/metadata.xml [new file with mode: 0644]
dev-php/phpdocumentor-type-resolver/phpdocumentor-type-resolver-0.2.1.ebuild [new file with mode: 0644]

diff --git a/dev-php/phpdocumentor-type-resolver/Manifest b/dev-php/phpdocumentor-type-resolver/Manifest
new file mode 100644 (file)
index 0000000..f9c9a63
--- /dev/null
@@ -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 (file)
index 0000000..356515b
--- /dev/null
@@ -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 (file)
index 0000000..b86acf6
--- /dev/null
@@ -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>php-bugs@gentoo.org</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 (file)
index 0000000..d73a456
--- /dev/null
@@ -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"
+}