diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2017-05-04 08:26:09 -0400 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2017-05-04 08:27:58 -0400 |
commit | 1933c9054cf50c4ec55fe412cfa606ea64482ac2 (patch) | |
tree | 931fb765a0050450c2de824b47d87398d0ec6de2 /dev-php/symfony-finder/symfony-finder-3.2.8.ebuild | |
parent | dev-php/sebastian-diff: new revision to fix autoloader class names. (diff) | |
download | gentoo-1933c9054cf50c4ec55fe412cfa606ea64482ac2.tar.gz gentoo-1933c9054cf50c4ec55fe412cfa606ea64482ac2.tar.bz2 gentoo-1933c9054cf50c4ec55fe412cfa606ea64482ac2.zip |
dev-php/symfony-finder: new version 3.2.8.
This new version enables the test suite, after patching out a problem
test: it tries to sort files by their atime, and that obviously fails
if your filesystem is mounted noatime. After skipping that test, the
suite passes, so I've removed the RESTRICT=test that was in place.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-php/symfony-finder/symfony-finder-3.2.8.ebuild')
-rw-r--r-- | dev-php/symfony-finder/symfony-finder-3.2.8.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-php/symfony-finder/symfony-finder-3.2.8.ebuild b/dev-php/symfony-finder/symfony-finder-3.2.8.ebuild new file mode 100644 index 000000000000..50e82b6605cb --- /dev/null +++ b/dev-php/symfony-finder/symfony-finder-3.2.8.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION=" Symfony Finder Component" +HOMEPAGE="https://github.com/symfony/finder" +SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> symfony-finder-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-lang/php:* + dev-php/fedora-autoloader" +DEPEND="test? ( ${RDEPEND} >=dev-php/phpunit-5.7.15 )" + +S="${WORKDIR}/finder-${PV}" + +PATCHES=( "${FILESDIR}/skip-file-time-sort-tests.patch" ) + +src_prepare() { + default + if use test; then + cp "${FILESDIR}/autoload.php" "${S}/autoload-test.php" || die + fi +} + +src_install() { + insinto "/usr/share/php/Symfony/Component/Finder" + doins -r Comparator Exception Iterator + doins *.php "${FILESDIR}"/autoload.php + dodoc CHANGELOG.md README.md +} + +src_test() { + phpunit --bootstrap "${S}/autoload-test.php" || die 'test suite failed' +} |