diff options
author | Brian Evans <grknight@gentoo.org> | 2019-12-19 14:14:36 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2019-12-19 14:46:56 -0500 |
commit | a2e3435f0ea8e4a4a34fa1ee52193f6cfa55c5e5 (patch) | |
tree | e4bb7379afedc338a301e02730221e31e57683f3 /dev-php/PHP_CodeCoverage | |
parent | dev-php/sebastian-environment: Version bump for 4.2.3 (diff) | |
download | gentoo-a2e3435f0ea8e4a4a34fa1ee52193f6cfa55c5e5.tar.gz gentoo-a2e3435f0ea8e4a4a34fa1ee52193f6cfa55c5e5.tar.bz2 gentoo-a2e3435f0ea8e4a4a34fa1ee52193f6cfa55c5e5.zip |
dev-php/PHP_CodeCoverage: Version bump to 7.0.10
Signed-off-by: Brian Evans <grknight@gentoo.org>
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-7.0.10.ebuild | 66 | ||||
-rw-r--r-- | dev-php/PHP_CodeCoverage/files/autoload-7.0.10.php | 17 |
3 files changed, 84 insertions, 0 deletions
diff --git a/dev-php/PHP_CodeCoverage/Manifest b/dev-php/PHP_CodeCoverage/Manifest index fbc2efca5a12..10e664b7c52d 100644 --- a/dev-php/PHP_CodeCoverage/Manifest +++ b/dev-php/PHP_CodeCoverage/Manifest @@ -1 +1,2 @@ DIST PHP_CodeCoverage-4.0.7.tar.gz 349906 BLAKE2B 2ba665efa2d20a5eb66c66375a095425057e883697dd1d3ba7214e56de29c96451516adb2843589e64732c994aac7289afa0e34a74d56ef9bc36f36e635eb944 SHA512 8418efa2585d05b3004ab50e7ba77513429d649f71fdb2479412424a0f40a698a962e1d87852db08fec8f92e569a9a5767dad66d5d64e072637dde33182e71e9 +DIST PHP_CodeCoverage-7.0.10.tar.gz 237217 BLAKE2B bd2dc397c15a85ca020abf3d9a1dfb5f438020b577cded7942110dd8affa2d703ed40bf01ae68f38c6ae9383ba59bc9f7706af99596bce0b40cef6d2a7e92fb2 SHA512 37cda2d3687f62b5546372507954eeedd4da1c03fa9cab147b578d035046763799ca1535310ba458403094714060fe8f1327bed6951440392fee3df551be73b1 diff --git a/dev-php/PHP_CodeCoverage/PHP_CodeCoverage-7.0.10.ebuild b/dev-php/PHP_CodeCoverage/PHP_CodeCoverage-7.0.10.ebuild new file mode 100644 index 000000000000..ab03fa0af49e --- /dev/null +++ b/dev-php/PHP_CodeCoverage/PHP_CodeCoverage-7.0.10.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_PHP="php7-2 php7-3 php7-4" +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="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="test" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-php/File_Iterator-2.0.2 + <dev-php/File_Iterator-3.0 + >=dev-php/Text_Template-1.2.1 + <dev-php/Text_Template-2.0 + >=dev-php/PHP_TokenStream-3.1.1 + <dev-php/PHP_TokenStream-4.0 + >=dev-php/sebastian-environment-4.2.2 + <dev-php/sebastian-environment-5.0 + >=dev-php/sebastian-version-2.0.1 + <dev-php/sebastian-version-3.0 + dev-php/sebastian-code-unit-reverse-lookup + <dev-php/sebastian-code-unit-reverse-lookup-2.0 + >=dev-php/theseer-tokenizer-1.1.3 + <dev-php/theseer-tokenizer-2.0 + || ( + dev-lang/php:7.2[xml(-),xmlwriter(-)] + dev-lang/php:7.3[xml(-),xmlwriter(-)] + dev-lang/php:7.4[xml(-),xmlwriter(-)] + )" +BDEPEND="test? ( ${RDEPEND} dev-php/phpunit )" +# Test currently do not work. Cannot find TestCase.php +RESTRICT="test" + +src_install() { + insinto /usr/share/php/PHP/CodeCoverage + doins -r src/* + newins "${FILESDIR}/autoload-7.0.10.php" autoload.php +} + +src_test() { + mkdir vendor || die + cp "${FILESDIR}/autoload-7.0.10.php" vendor/autoload.php || die + sed -i 's~__DIR__~__DIR__."/../src"~' vendor/autoload.php || die + ln -s ../tests/TestCase.php src/TestCase.php || die + for target in ${USE_PHP//-/.} ; do + if [ -x /usr/bin/$target ] ; then + ${target} /usr/bin/phpunit -c phpunit.xml || die + fi + done + rm src/TestCase.php || die +} + +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-7.0.10.php b/dev-php/PHP_CodeCoverage/files/autoload-7.0.10.php new file mode 100644 index 000000000000..bda9ff0fd0ef --- /dev/null +++ b/dev-php/PHP_CodeCoverage/files/autoload-7.0.10.php @@ -0,0 +1,17 @@ +<?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::addPsr4('SebasstianBergmann\\CodeCoverage\\', __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', +)); |