commit: 06c5bda11ec423d9c52a4792a89ffaaffb2952c0 Author: Brian Evans <grknight <AT> gentoo <DOT> org> AuthorDate: Thu Mar 9 15:14:06 2017 +0000 Commit: Brian Evans <grknight <AT> gentoo <DOT> org> CommitDate: Thu Mar 9 16:21:01 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06c5bda1
dev-php/webmozart-assert: New package for an unbundled phpunit Package-Manager: Portage-2.3.4, Repoman-2.3.2 dev-php/webmozart-assert/Manifest | 1 + dev-php/webmozart-assert/files/autoload.php | 8 +++++++ dev-php/webmozart-assert/metadata.xml | 8 +++++++ .../webmozart-assert/webmozart-assert-1.2.0.ebuild | 26 ++++++++++++++++++++++ 4 files changed, 43 insertions(+) diff --git a/dev-php/webmozart-assert/Manifest b/dev-php/webmozart-assert/Manifest new file mode 100644 index 00000000000..c3109a7bc6e --- /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 00000000000..45ece0641b6 --- /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 00000000000..b86acf66c75 --- /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-b...@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 00000000000..ae442678e21 --- /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" +}