Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/phpspec-prophecy/files/, dev-php/phpspec-prophecy/
Date: Thu, 09 Mar 2017 16:23:52
Message-Id: 1489076546.a7100386fb4ccd88c2fbe9a6df4004596bfcb1fe.grknight@gentoo
1 commit: a7100386fb4ccd88c2fbe9a6df4004596bfcb1fe
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 9 15:41:41 2017 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 9 16:22:26 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7100386
7
8 dev-php/phpspec-prophecy: New package for an unbundled phpunit
9
10 Package-Manager: Portage-2.3.4, Repoman-2.3.2
11
12 dev-php/phpspec-prophecy/Manifest | 1 +
13 dev-php/phpspec-prophecy/files/autoload.php | 15 +++++++++++
14 dev-php/phpspec-prophecy/metadata.xml | 8 ++++++
15 .../phpspec-prophecy/phpspec-prophecy-1.7.0.ebuild | 31 ++++++++++++++++++++++
16 4 files changed, 55 insertions(+)
17
18 diff --git a/dev-php/phpspec-prophecy/Manifest b/dev-php/phpspec-prophecy/Manifest
19 new file mode 100644
20 index 00000000000..4c45b19e5b8
21 --- /dev/null
22 +++ b/dev-php/phpspec-prophecy/Manifest
23 @@ -0,0 +1 @@
24 +DIST phpspec-prophecy-1.7.0.tar.gz 60338 SHA256 7825f7b942fc9887fa0311ab84fcca3ddb6b99ab8405995a3783e00165944c20 SHA512 e8efb3882d869f10fe39dff7c2185e1ec6f044c794fd6a5785e1c1c69c71b91dc3997f61bd2566d3243dde0becce568beba9a18fa0fd152e6ce74ca43a9a0fb0 WHIRLPOOL bb540116eaa5f42f7792a0b5df5469973ee1bc99105c0145bc9d6d00f8710c2a468b53400b9650adbb0cca739e75e98e82ba5dc41c2cb5b5df7e4a0911115dd7
25
26 diff --git a/dev-php/phpspec-prophecy/files/autoload.php b/dev-php/phpspec-prophecy/files/autoload.php
27 new file mode 100644
28 index 00000000000..eb61ccb5eed
29 --- /dev/null
30 +++ b/dev-php/phpspec-prophecy/files/autoload.php
31 @@ -0,0 +1,15 @@
32 +<?php
33 +/* Autoloader for dev-php/phpspec-prophecy */
34 +
35 +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
36 + require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
37 +}
38 +
39 +Fedora\Autoloader\Autoload::addPsr0('Prophecy\\', __DIR__);
40 +
41 +\Fedora\Autoloader\Dependencies::required(array(
42 + '/usr/share/php/phpDocumentor/ReflectionDocBlock/autoload.php',
43 + '/usr/share/php/SebastianBergmann/Comparator/autoload.php',
44 + '/usr/share/php/Doctrine/Instantiator/autoload.php',
45 + '/usr/share/php/SebastianBergmann/RecursionContext/autoload.php',
46 +));
47
48 diff --git a/dev-php/phpspec-prophecy/metadata.xml b/dev-php/phpspec-prophecy/metadata.xml
49 new file mode 100644
50 index 00000000000..b86acf66c75
51 --- /dev/null
52 +++ b/dev-php/phpspec-prophecy/metadata.xml
53 @@ -0,0 +1,8 @@
54 +<?xml version="1.0" encoding="UTF-8"?>
55 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
56 +<pkgmetadata>
57 + <maintainer type="project">
58 + <email>php-bugs@g.o</email>
59 + <name>PHP</name>
60 + </maintainer>
61 +</pkgmetadata>
62
63 diff --git a/dev-php/phpspec-prophecy/phpspec-prophecy-1.7.0.ebuild b/dev-php/phpspec-prophecy/phpspec-prophecy-1.7.0.ebuild
64 new file mode 100644
65 index 00000000000..f6f7abc6d37
66 --- /dev/null
67 +++ b/dev-php/phpspec-prophecy/phpspec-prophecy-1.7.0.ebuild
68 @@ -0,0 +1,31 @@
69 +# Copyright 1999-2017 Gentoo Foundation
70 +# Distributed under the terms of the GNU General Public License v2
71 +
72 +EAPI=6
73 +
74 +MY_PN="prophecy"
75 +MY_VENDOR="phpspec"
76 +
77 +DESCRIPTION="Highly opinionated mocking framework"
78 +HOMEPAGE="https://github.com/${MY_VENDOR}/${MY_PN}"
79 +SRC_URI="https://github.com/${MY_VENDOR}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
80 +
81 +LICENSE="MIT"
82 +SLOT="0"
83 +KEYWORDS="~amd64 ~x86"
84 +IUSE=""
85 +
86 +S="${WORKDIR}/${MY_PN}-${PV}"
87 +
88 +RDEPEND="dev-php/fedora-autoloader
89 + <dev-php/doctrine-instantiator-2
90 + <dev-php/phpdocumentor-reflection-docblock-4
91 + <dev-php/sebastian-comparator-3
92 + <dev-php/sebastian-recursion-context-4
93 + >=dev-lang/php-5.6:*"
94 +
95 +src_install() {
96 + insinto /usr/share/php/${MY_VENDOR}/Prophecy
97 + doins -r src/Prophecy/*
98 + doins "${FILESDIR}/autoload.php"
99 +}