dev-php/sebastian-code-unit-reverse-lookup: New package for an unbundled phpunit
authorBrian Evans <grknight@gentoo.org>
Thu, 9 Mar 2017 15:29:00 +0000 (10:29 -0500)
committerBrian Evans <grknight@gentoo.org>
Thu, 9 Mar 2017 16:21:54 +0000 (11:21 -0500)
Package-Manager: Portage-2.3.4, Repoman-2.3.2

dev-php/sebastian-code-unit-reverse-lookup/Manifest [new file with mode: 0644]
dev-php/sebastian-code-unit-reverse-lookup/files/autoload.php [new file with mode: 0644]
dev-php/sebastian-code-unit-reverse-lookup/metadata.xml [new file with mode: 0644]
dev-php/sebastian-code-unit-reverse-lookup/sebastian-code-unit-reverse-lookup-1.0.1.ebuild [new file with mode: 0644]

diff --git a/dev-php/sebastian-code-unit-reverse-lookup/Manifest b/dev-php/sebastian-code-unit-reverse-lookup/Manifest
new file mode 100644 (file)
index 0000000..0915576
--- /dev/null
@@ -0,0 +1 @@
+DIST sebastian-code-unit-reverse-lookup-1.0.1.tar.gz 4326 SHA256 6c7f87e14961e75881d7a6caf19d363aba671fd3855a28b9303c071d8f30a90e SHA512 bb6419a13b645a4f35d688d3dd47b0d10de8c996721e95805c08119925fa66ef89cca38f94d3818c62c2eb9a978ee231e91fdeb47bf3b640eeefceaaca135469 WHIRLPOOL 121dcc97276ebc95ab22e8442d4397edda472884d935793b055b41d659c741db2af3a796d63cb7f5549714382150e5b992224894506881aa52690614c56aec4c
diff --git a/dev-php/sebastian-code-unit-reverse-lookup/files/autoload.php b/dev-php/sebastian-code-unit-reverse-lookup/files/autoload.php
new file mode 100644 (file)
index 0000000..b721c73
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+/* Autoloader for dev-php/sebastian-diff */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+       require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+       array(
+               'sebastianbergmann\codeunitreverselookup\wizard' => '/Wizard.php',
+       ),
+       __DIR__
+);
diff --git a/dev-php/sebastian-code-unit-reverse-lookup/metadata.xml b/dev-php/sebastian-code-unit-reverse-lookup/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/sebastian-code-unit-reverse-lookup/sebastian-code-unit-reverse-lookup-1.0.1.ebuild b/dev-php/sebastian-code-unit-reverse-lookup/sebastian-code-unit-reverse-lookup-1.0.1.ebuild
new file mode 100644 (file)
index 0000000..006543d
--- /dev/null
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="${PN/sebastian-/}"
+
+DESCRIPTION="Looks up which function or method a line of code belongs to"
+HOMEPAGE="http://phpunit.de"
+SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+RDEPEND="dev-php/fedora-autoloader
+       >=dev-lang/php-5.6:*"
+
+src_install() {
+       insinto /usr/share/php/SebastianBergmann/CodeUnitReverseLookup
+       doins -r src/*
+       doins "${FILESDIR}/autoload.php"
+}