summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2017-03-09 10:14:06 -0500
committerBrian Evans <grknight@gentoo.org>2017-03-09 11:21:01 -0500
commit06c5bda11ec423d9c52a4792a89ffaaffb2952c0 (patch)
tree3f9753ea34a044c7fc250e0cae89459de99021a5
parentapp-portage/repoman: add ~x64-cygwin keyword (diff)
downloadgentoo-06c5bda11ec423d9c52a4792a89ffaaffb2952c0.tar.gz
gentoo-06c5bda11ec423d9c52a4792a89ffaaffb2952c0.tar.bz2
gentoo-06c5bda11ec423d9c52a4792a89ffaaffb2952c0.zip
dev-php/webmozart-assert: New package for an unbundled phpunit
Package-Manager: Portage-2.3.4, Repoman-2.3.2
-rw-r--r--dev-php/webmozart-assert/Manifest1
-rw-r--r--dev-php/webmozart-assert/files/autoload.php8
-rw-r--r--dev-php/webmozart-assert/metadata.xml8
-rw-r--r--dev-php/webmozart-assert/webmozart-assert-1.2.0.ebuild26
4 files changed, 43 insertions, 0 deletions
diff --git a/dev-php/webmozart-assert/Manifest b/dev-php/webmozart-assert/Manifest
new file mode 100644
index 000000000000..c3109a7bc6e8
--- /dev/null
+++ b/dev-php/webmozart-assert/Manifest
@@ -0,0 +1 @@
+DIST webmozart-assert-1.2.0.tar.gz 11866 SHA256 95bd88f5db9e083093e72afcad69bfafca080c55c60b534d55ea883d2e03517d SHA512 36bae648cfe5bbd258d738574a820ea3de2e95b59700d556dd5eadbb1657bc09a7e73000e3436d020e060ecd2a99944199795f315a278acbeeea90570b0a4a22 WHIRLPOOL 0e8e220c1bf579206df3a2f75bdbc4ad3c5938e816127db013e464d0a0b596e7357014c5516c9cc64fa7a201ac4a320087724395cf326590b227173cda808ed9
diff --git a/dev-php/webmozart-assert/files/autoload.php b/dev-php/webmozart-assert/files/autoload.php
new file mode 100644
index 000000000000..45ece0641b6b
--- /dev/null
+++ b/dev-php/webmozart-assert/files/autoload.php
@@ -0,0 +1,8 @@
+<?php
+/* Autoloader for dev-php/webmozart-assert */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+Fedora\Autoloader\Autoload::addPsr4('Webmozart\\Assert\\', __DIR__);
diff --git a/dev-php/webmozart-assert/metadata.xml b/dev-php/webmozart-assert/metadata.xml
new file mode 100644
index 000000000000..b86acf66c756
--- /dev/null
+++ b/dev-php/webmozart-assert/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/webmozart-assert/webmozart-assert-1.2.0.ebuild b/dev-php/webmozart-assert/webmozart-assert-1.2.0.ebuild
new file mode 100644
index 000000000000..ae442678e210
--- /dev/null
+++ b/dev-php/webmozart-assert/webmozart-assert-1.2.0.ebuild
@@ -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/webmozart-//}"
+
+DESCRIPTION="Assertions to validate method input/output with nice error messages"
+HOMEPAGE="https://github.com/webmozart/assert"
+SRC_URI="https://github.com/webmozart/${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-lang/php-5.6:*"
+
+src_install() {
+ insinto /usr/share/php/Webmozart/Assert
+ doins -r src/*
+ doins "${FILESDIR}/autoload.php"
+}