diff options
Diffstat (limited to 'dev-php/symfony-process')
-rw-r--r-- | dev-php/symfony-process/Manifest | 4 | ||||
-rw-r--r-- | dev-php/symfony-process/files/autoload.php | 9 | ||||
-rw-r--r-- | dev-php/symfony-process/metadata.xml | 21 | ||||
-rw-r--r-- | dev-php/symfony-process/symfony-process-3.2.6.ebuild | 43 |
4 files changed, 77 insertions, 0 deletions
diff --git a/dev-php/symfony-process/Manifest b/dev-php/symfony-process/Manifest new file mode 100644 index 000000000000..882271693dbd --- /dev/null +++ b/dev-php/symfony-process/Manifest @@ -0,0 +1,4 @@ +AUX autoload.php 305 BLAKE2B 2f3deeaeeea219b68e90d366779152d17ce734001f208d169c7e4b70cd1050a09225cd8a49b3028995862f6578a9cde3b9a4d4497598c2574f6ecc81db4ed5cf SHA512 339e20b7d5ea454a8d5dc25ebdd4690067f39966a985071fc584652b8df15c0513b2673107e6beee58c412e203f0fcef9915a93ffce6e62c78b3b5b6f3eb26bc +DIST symfony-process-3.2.6.tar.gz 31684 BLAKE2B 5129b6a7a01c137b9468950b8da58674343131863283cd96f8afac6d0d86969a61a1effc7d59c3735e6370059fb4f53e084011c07b629bddbd153fb6394d3d15 SHA512 8fd7712b2f63a46b6dea0b6cb76825c1e4c7b6a33123fe0949fedec820e599ffe5175bac567e8b453be7964f8b070bc2a2b9554b102a33834dfdbe959a23a3d4 +EBUILD symfony-process-3.2.6.ebuild 958 BLAKE2B b8acfee6ca46e709f856369d101fe222e20413fd9b7bb91df6bdfa4daa42db8bd4a4406d2111a9b0402ee968ad2d60608d0b5f9051531e98a24a6826d503ccaf SHA512 9cb72f33897c1a0b8da7a09da96c1ac5865b512ecabdee15ef44020254a2ed2172f04c414769329c40cccfaa762f8fcf2e07793296eb86d6513000aa63027cf7 +MISC metadata.xml 656 BLAKE2B b24f6c06a9b8eafa0e4855d25d863bdb10e06a701937661cde7bcbf5d0bacec793c6e6aa4be7d2cab34f711e07e5432f987ff401dfa6e517ef14664c7fbe07fb SHA512 6018e74e6aa1b03d8723f33f38fc8855f1ba1d4316472d960f4a296748a7aa9a6282c51c243b0cac98148ec9a921545c8a1947d5f32f4f5853ead46c9bcf19a0 diff --git a/dev-php/symfony-process/files/autoload.php b/dev-php/symfony-process/files/autoload.php new file mode 100644 index 000000000000..f0b5ceb02c9b --- /dev/null +++ b/dev-php/symfony-process/files/autoload.php @@ -0,0 +1,9 @@ +<?php +/* Autoloader for symfony-process and its dependencies */ + +$vendorDir = '/usr/share/php'; +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Process\\', __DIR__); diff --git a/dev-php/symfony-process/metadata.xml b/dev-php/symfony-process/metadata.xml new file mode 100644 index 000000000000..e4ce1396c58a --- /dev/null +++ b/dev-php/symfony-process/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <longdescription> + The Process component executes commands in sub-processes. + </longdescription> + <upstream> + <remote-id type="github">symfony/process</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-php/symfony-process/symfony-process-3.2.6.ebuild b/dev-php/symfony-process/symfony-process-3.2.6.ebuild new file mode 100644 index 000000000000..03d09390cc59 --- /dev/null +++ b/dev-php/symfony-process/symfony-process-3.2.6.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Symfony Process Component" +HOMEPAGE="https://github.com/symfony/process" +SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="test" + +RDEPEND=" + dev-lang/php:* + dev-php/fedora-autoloader" +DEPEND=" + test? ( + ${RDEPEND} + dev-php/phpunit )" + +S="${WORKDIR}/process-${PV}" + +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/Process" + doins -r Exception/ Pipes/ ExecutableFinder.php InputStream.php \ + LICENSE PhpExecutableFinder.php PhpProcess.php ProcessBuilder.php \ + Process.php ProcessUtils.php "${FILESDIR}"/autoload.php + dodoc README.md +} + +src_test() { + phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed" +} |