1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="Symfony Finder Component"
7 HOMEPAGE="https://github.com/symfony/finder"
8 SRC_URI="https://github.com/symfony/finder/archive/v${PV}.tar.gz -> symfony-finder-${PV}.tar.gz"
12 KEYWORDS="~amd64 ~x86"
14 RESTRICT="!test? ( test )"
16 RDEPEND="dev-lang/php:*
17 dev-php/fedora-autoloader"
18 DEPEND="test? ( ${RDEPEND} >=dev-php/phpunit-5.7.15 )"
20 S="${WORKDIR}/finder-${PV}"
22 PATCHES=( "${FILESDIR}"/${PN}-3.4.28-skip-file-time-sort-tests.patch )
27 cp "${FILESDIR}/autoload.php" "${S}/autoload-test.php" || die
32 insinto "/usr/share/php/Symfony/Component/Finder"
33 doins -r Comparator Exception Iterator
34 doins *.php "${FILESDIR}"/autoload.php
35 dodoc CHANGELOG.md README.md
39 phpunit --bootstrap "${S}/autoload-test.php" || die 'test suite failed'