diff options
| author | Michael Orlitzky <mjo@gentoo.org> | 2017-05-03 18:40:08 -0400 |
|---|---|---|
| committer | Michael Orlitzky <mjo@gentoo.org> | 2017-05-04 07:33:07 -0400 |
| commit | 0444c1df21634b07573a1d2899e2de49258febb8 (patch) | |
| tree | b374568e6e3bbc5cb2f778487573a5873b5a59c8 /dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild | |
| parent | b2b1bb37f4a722d45dcccd859bb20d477a0e8ae3 (diff) | |
| download | gentoo-0444c1df21634b07573a1d2899e2de49258febb8.tar.gz gentoo-0444c1df21634b07573a1d2899e2de49258febb8.tar.bz2 gentoo-0444c1df21634b07573a1d2899e2de49258febb8.zip | |
dev-php/symfony-filesystem: new version 3.2.8.
This new version adds a tiny patch to annotate the one test that
requires network access. Afterwards, we are able to enable the test
suite and skip the network test. The test suite passes, so I've
removed the RESTRICT=test that we had. The patch is reflected
in upstream (symfony/symfony) pull request 22630.
Another small improvement is to spell out the files and directories to
be installed, rather than using "." (the whole directory). This avoids
installing composer.json and some other junk to the PHP include
directory.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild')
| -rw-r--r-- | dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild b/dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild new file mode 100644 index 000000000000..942c49c4b135 --- /dev/null +++ b/dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Symfony Filesystem Component" +HOMEPAGE="https://github.com/symfony/filesystem" +SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.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}/filesystem-${PV}" + +# This patch is https://github.com/symfony/symfony/pull/22630 +PATCHES=( "${FILESDIR}/annotate-network-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/Filesystem" + doins -r Exception + doins *.php "${FILESDIR}/autoload.php" + dodoc CHANGELOG.md README.md +} + +src_test() { + phpunit --bootstrap "${S}/autoload-test.php" \ + --exclude-group network || die 'test suite failed' +} |
