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

dev-php/sebastian-resource-operations/Manifest [new file with mode: 0644]
dev-php/sebastian-resource-operations/files/autoload.php [new file with mode: 0644]
dev-php/sebastian-resource-operations/metadata.xml [new file with mode: 0644]
dev-php/sebastian-resource-operations/sebastian-resource-operations-1.0.0.ebuild [new file with mode: 0644]

diff --git a/dev-php/sebastian-resource-operations/Manifest b/dev-php/sebastian-resource-operations/Manifest
new file mode 100644 (file)
index 0000000..c3227a4
--- /dev/null
@@ -0,0 +1 @@
+DIST sebastian-resource-operations-1.0.0.tar.gz 6449 SHA256 d6b237f1fe1f6bc45450e03cdacfbd276bf3b7aba832bfea3c2e8507e47ed4a7 SHA512 d11d06c9b8b4a1507238443588f34a85836fcd65d2afdb9bcf3cecfe352cba46c9349988550e901c301db8a21f19cc960a8164653ac66e57661cebddf52ad906 WHIRLPOOL a51c04775f92511440015f4c37fe335247d9812721ad43132e178f4923a9f6a43d11a9fdda77455e0e9e513b4580c643a3b231daeddc375401d7d6fdf942d823
diff --git a/dev-php/sebastian-resource-operations/files/autoload.php b/dev-php/sebastian-resource-operations/files/autoload.php
new file mode 100644 (file)
index 0000000..f7b9a4d
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+/* Autoloader for dev-php/sebastian-resource-operations */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+       require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+       array(
+               'sebastianbergmann\resourceoperations\resourceoperations' => '/ResourceOperations.php',
+       ),
+       __DIR__
+);
diff --git a/dev-php/sebastian-resource-operations/metadata.xml b/dev-php/sebastian-resource-operations/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-resource-operations/sebastian-resource-operations-1.0.0.ebuild b/dev-php/sebastian-resource-operations/sebastian-resource-operations-1.0.0.ebuild
new file mode 100644 (file)
index 0000000..9c70fe7
--- /dev/null
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="${PN/sebastian-//}"
+
+DESCRIPTION="Provides a list of PHP built-in functions that operate on resources"
+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/ResourceOperations
+       doins -r src/*
+       doins "${FILESDIR}/autoload.php"
+}