diff options
author | Brian Evans <grknight@gentoo.org> | 2017-03-09 11:16:27 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2017-03-09 11:22:55 -0500 |
commit | fc0f634a8201472405131e51b935846e9fce9ee0 (patch) | |
tree | 4759ea787fc50e963e373b43922759a1d50da13a /dev-php/PHP_CodeCoverage | |
parent | dev-php/PHP_Timer: Version bump and use composer autoloading (diff) | |
download | gentoo-fc0f634a8201472405131e51b935846e9fce9ee0.tar.gz gentoo-fc0f634a8201472405131e51b935846e9fce9ee0.tar.bz2 gentoo-fc0f634a8201472405131e51b935846e9fce9ee0.zip |
dev-php/PHP_CodeCoverage: Version bump and use composer autoloading
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Diffstat (limited to 'dev-php/PHP_CodeCoverage')
-rw-r--r-- | dev-php/PHP_CodeCoverage/Manifest | 1 | ||||
-rw-r--r-- | dev-php/PHP_CodeCoverage/PHP_CodeCoverage-4.0.7.ebuild | 47 | ||||
-rw-r--r-- | dev-php/PHP_CodeCoverage/files/autoload.php | 59 |
3 files changed, 107 insertions, 0 deletions
diff --git a/dev-php/PHP_CodeCoverage/Manifest b/dev-php/PHP_CodeCoverage/Manifest index 5135fab38f1a..306a77e57c6b 100644 --- a/dev-php/PHP_CodeCoverage/Manifest +++ b/dev-php/PHP_CodeCoverage/Manifest @@ -1 +1,2 @@ DIST PHP_CodeCoverage-1.2.13.tgz 158772 SHA256 164de075b3588c0a757dd7bf348489954162dbc097e8932f564e5f3891bd1a2e SHA512 6a3426c945ad6abf35be3068cf0f7e17215179a382e93b7be3a5e436611b327c9b7bc715f7acc900231856678f578c1f614648d2679baca9b6960dfafd897dc6 WHIRLPOOL c527482571c73afb85419e31eb14e01b20677fec65a8e1297d02579d19b2b537201b3151b9885a82dafbe9cab54402aeb19445284f0e681f7442616b1aa1c51c +DIST PHP_CodeCoverage-4.0.7.tar.gz 349906 SHA256 1a60e469b712ea3f0614c4f8415e2ef98f7a227f1473920a288250504e73fb12 SHA512 8418efa2585d05b3004ab50e7ba77513429d649f71fdb2479412424a0f40a698a962e1d87852db08fec8f92e569a9a5767dad66d5d64e072637dde33182e71e9 WHIRLPOOL 9046cc8bc8de709a633034dc947aa32cd2bceaea829b5a143cda635a37a593be3953b3b22dec39d147b17c278dcaa03c3df87e9dd4625f4384b03b7a80c3fdf5 diff --git a/dev-php/PHP_CodeCoverage/PHP_CodeCoverage-4.0.7.ebuild b/dev-php/PHP_CodeCoverage/PHP_CodeCoverage-4.0.7.ebuild new file mode 100644 index 000000000000..a240e9a1d373 --- /dev/null +++ b/dev-php/PHP_CodeCoverage/PHP_CodeCoverage-4.0.7.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PN="php-code-coverage" + +DESCRIPTION="Collection, processing, and rendering for PHP code coverage" +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-php/File_Iterator-1.3 + !>=dev-php/File_Iterator-2.0 + >=dev-php/Text_Template-1.2 + !>=dev-php/Text_Template-2.0 + >=dev-php/PHP_TokenStream-1.4 + !>=dev-php/PHP_TokenStream-3.0 + >=dev-php/sebastian-environment-1.3.2 + !>=dev-php/sebastian-environment-3.0 + >=dev-php/sebastian-version-1.0 + !>=dev-php/sebastian-version-3.0 + dev-php/sebastian-code-unit-reverse-lookup + !>=dev-php/sebastian-code-unit-reverse-lookup-2.0 + || ( + dev-lang/php:5.6[xml,xmlwriter] + dev-lang/php:7.0[xml,xmlwriter] + dev-lang/php:7.1[xml,xmlwriter] + )" + +src_install() { + insinto /usr/share/php/PHP/CodeCoverage + doins -r src/* + doins "${FILESDIR}/autoload.php" +} + +pkg_postinst() { + ewarn "This library now loads via /usr/share/php/PHP/CodeCoverage/autoload.php" + ewarn "Please update any scripts to require the autoloader" +} diff --git a/dev-php/PHP_CodeCoverage/files/autoload.php b/dev-php/PHP_CodeCoverage/files/autoload.php new file mode 100644 index 000000000000..b35d6fa4bac0 --- /dev/null +++ b/dev-php/PHP_CodeCoverage/files/autoload.php @@ -0,0 +1,59 @@ +<?php +/* Autoloader for dev-php/PHP_CodeCoverage */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + array( + 'sebastianbergmann\codecoverage\codecoverage' => '/CodeCoverage.php', + 'sebastianbergmann\codecoverage\filter' => '/Filter.php', + 'sebastianbergmann\codecoverage\util' => '/Util.php', + 'sebastianbergmann\codecoverage\driver\driver' => '/Driver/Driver.php', + 'sebastianbergmann\codecoverage\driver\hhvm' => '/Driver/HHVM.php', + 'sebastianbergmann\codecoverage\driver\phpdbg' => '/Driver/PHPDBG.php', + 'sebastianbergmann\codecoverage\driver\xdebug' => '/Driver/Xdebug.php', + 'sebastianbergmann\codecoverage\exception\coveredcodenotexecutedexception' => '/Exception/CoveredCodeNotExecutedException.php', + 'sebastianbergmann\codecoverage\exception\exception' => '/Exception/Exception.php', + 'sebastianbergmann\codecoverage\exception\invalidargumentexception' => '/Exception/InvalidArgumentException.php', + 'sebastianbergmann\codecoverage\exception\missingcoversannotationexception' => '/Exception/MissingCoversAnnotationException.php', + 'sebastianbergmann\codecoverage\exception\runtimeexception' => '/Exception/RuntimeException.php', + 'sebastianbergmann\codecoverage\exception\unintentiallycoveredcodeexception' => '/Exception/UnintentionallyCoveredCodeException.php', + 'sebastianbergmann\codecoverage\node\abstractnode' => '/Node/AbstractNode.php', + 'sebastianbergmann\codecoverage\node\builder' => '/Node/Builder.php', + 'sebastianbergmann\codecoverage\node\directory' => '/Node/Directory.php', + 'sebastianbergmann\codecoverage\node\file' => '/Node/File.php', + 'sebastianbergmann\codecoverage\node\iterator' => '/Node/iterator.php', + 'sebastianbergmann\codecoverage\report\clover' => '/Report/Clover.php', + 'sebastianbergmann\codecoverage\report\crap4j' => '/Report/Crap4j.php', + 'sebastianbergmann\codecoverage\report\php' => '/Report/PHP.php', + 'sebastianbergmann\codecoverage\report\text' => '/Report/Text.php', + 'sebastianbergmann\codecoverage\report\html\facade' => '/Report/HTML/Facade.php', + 'sebastianbergmann\codecoverage\report\html\renderer' => '/Report/HTML/Renderer.php', + 'sebastianbergmann\codecoverage\report\html\renderer\dashboard' => '/Report/HTML/Renderer/Dashboard.php', + 'sebastianbergmann\codecoverage\report\html\renderer\directory' => '/Report/HTML/Renderer/Directory.php', + 'sebastianbergmann\codecoverage\report\html\renderer\file' => '/Report/HTML/Renderer/File.php', + 'sebastianbergmann\codecoverage\report\xml\coverage' => '/Report/XML/Coverage.php', + 'sebastianbergmann\codecoverage\report\xml\directory' => '/Report/XML/Directory.php', + 'sebastianbergmann\codecoverage\report\xml\facade' => '/Report/XML/Facade.php', + 'sebastianbergmann\codecoverage\report\xml\file' => '/Report/XML/File.php', + 'sebastianbergmann\codecoverage\report\xml\method' => '/Report/XML/Method.php', + 'sebastianbergmann\codecoverage\report\xml\node' => '/Report/XML/Node.php', + 'sebastianbergmann\codecoverage\report\xml\project' => '/Report/XML/Project.php', + 'sebastianbergmann\codecoverage\report\xml\report' => '/Report/XML/Report.php', + 'sebastianbergmann\codecoverage\report\xml\tests' => '/Report/XML/Tests.php', + 'sebastianbergmann\codecoverage\report\xml\totals' => '/Report/XML/Totals.php', + 'sebastianbergmann\codecoverage\report\xml\unit' => '/Report/XML/Unit.php', + ), + __DIR__ +); + +\Fedora\Autoloader\Dependencies::required(array( + '/usr/share/php/File/Iterator/autoload.php', + '/usr/share/php/PHP/Token/autoload.php', + '/usr/share/php/SebastianBergmann/Version/autoload.php', + '/usr/share/php/SebastianBergmann/Environment/autoload.php', + '/usr/share/php/SebastianBergmann/CodeUnitReverseLookup/autoload.php', + '/usr/share/php/Text/Template/autoload.php', +)); |