summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-php/sebastian-resource-operations/Manifest1
-rw-r--r--dev-php/sebastian-resource-operations/files/autoload.php13
-rw-r--r--dev-php/sebastian-resource-operations/metadata.xml8
-rw-r--r--dev-php/sebastian-resource-operations/sebastian-resource-operations-1.0.0.ebuild27
4 files changed, 49 insertions, 0 deletions
diff --git a/dev-php/sebastian-resource-operations/Manifest b/dev-php/sebastian-resource-operations/Manifest
new file mode 100644
index 000000000000..c3227a48c4a8
--- /dev/null
+++ b/dev-php/sebastian-resource-operations/Manifest
@@ -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
index 000000000000..f7b9a4d6f681
--- /dev/null
+++ b/dev-php/sebastian-resource-operations/files/autoload.php
@@ -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
index 000000000000..b86acf66c756
--- /dev/null
+++ b/dev-php/sebastian-resource-operations/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/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
index 000000000000..9c70fe7addb4
--- /dev/null
+++ b/dev-php/sebastian-resource-operations/sebastian-resource-operations-1.0.0.ebuild
@@ -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"
+}