diff options
-rw-r--r-- | dev-php/sebastian-environment/Manifest | 1 | ||||
-rw-r--r-- | dev-php/sebastian-environment/files/autoload.php | 14 | ||||
-rw-r--r-- | dev-php/sebastian-environment/metadata.xml | 8 | ||||
-rw-r--r-- | dev-php/sebastian-environment/sebastian-environment-2.0.0.ebuild | 26 |
4 files changed, 49 insertions, 0 deletions
diff --git a/dev-php/sebastian-environment/Manifest b/dev-php/sebastian-environment/Manifest new file mode 100644 index 000000000000..37b657d42705 --- /dev/null +++ b/dev-php/sebastian-environment/Manifest @@ -0,0 +1 @@ +DIST sebastian-environment-2.0.0.tar.gz 5607 SHA256 0462a65d901c97056b1ebaadcfebc4b2756c17b7e3fb8504030e49f6cb9a6f00 SHA512 cf91f0a5f057007f318c5d6b11f8a1345b8df35d513c6291c5b725f0874ed301a64d1097c3fac1e6b32533caa96b3f78ac415d99b9b6ef63dc4a303b90d49c88 WHIRLPOOL e7571a56fe7a4e7e5f16027e620a668a3c7e545b8b2374516fe7eb66d0b4bbc829e46ec650ecf85230073e7910e83a382ee102c27fe8f458d0f6e33373f3a155 diff --git a/dev-php/sebastian-environment/files/autoload.php b/dev-php/sebastian-environment/files/autoload.php new file mode 100644 index 000000000000..3abd16ee357b --- /dev/null +++ b/dev-php/sebastian-environment/files/autoload.php @@ -0,0 +1,14 @@ +<?php +/* Autoloader for dev-php/sebastian-environment */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + array( + 'sebastianbergmann\environment\console' => '/Console.php', + 'sebastianbergmann\environment\runtime' => '/Runtime.php', + ), + __DIR__ +); diff --git a/dev-php/sebastian-environment/metadata.xml b/dev-php/sebastian-environment/metadata.xml new file mode 100644 index 000000000000..b86acf66c756 --- /dev/null +++ b/dev-php/sebastian-environment/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> +</pkgmetadata> diff --git a/dev-php/sebastian-environment/sebastian-environment-2.0.0.ebuild b/dev-php/sebastian-environment/sebastian-environment-2.0.0.ebuild new file mode 100644 index 000000000000..4b0b8b214a7f --- /dev/null +++ b/dev-php/sebastian-environment/sebastian-environment-2.0.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PN="${PN/sebastian-//}" + +DESCRIPTION="Helps writing PHP code that has runtime-specific execution paths" +HOMEPAGE="http://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-5.6:*" + +src_install() { + insinto /usr/share/php/SebastianBergmann/Environment + doins -r src/* + doins "${FILESDIR}/autoload.php" +} |