summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2017-03-09 10:36:28 -0500
committerBrian Evans <grknight@gentoo.org>2017-03-09 11:22:10 -0500
commit72d99c239872a23f27291d88a2a82dc25358fa41 (patch)
treef5f98fb08b7bb835a2914d1975f7ad8aff33338f
parentdev-php/phpdocumentor-reflection-common: New package for an unbundled phpunit (diff)
downloadgentoo-72d99c239872a23f27291d88a2a82dc25358fa41.tar.gz
gentoo-72d99c239872a23f27291d88a2a82dc25358fa41.tar.bz2
gentoo-72d99c239872a23f27291d88a2a82dc25358fa41.zip
dev-php/phpdocumentor-type-resolver: New package for an unbundled phpunit
Package-Manager: Portage-2.3.4, Repoman-2.3.2
-rw-r--r--dev-php/phpdocumentor-type-resolver/Manifest1
-rw-r--r--dev-php/phpdocumentor-type-resolver/files/autoload.php8
-rw-r--r--dev-php/phpdocumentor-type-resolver/metadata.xml8
-rw-r--r--dev-php/phpdocumentor-type-resolver/phpdocumentor-type-resolver-0.2.1.ebuild28
4 files changed, 45 insertions, 0 deletions
diff --git a/dev-php/phpdocumentor-type-resolver/Manifest b/dev-php/phpdocumentor-type-resolver/Manifest
new file mode 100644
index 000000000000..f9c9a635f982
--- /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 000000000000..356515b7a000
--- /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 000000000000..b86acf66c756
--- /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>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
index 000000000000..d73a456f380e
--- /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"
+}