summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seren <guillaumeseren@gmail.com>2016-11-24 08:54:41 +0100
committerMichael Orlitzky <mjo@gentoo.org>2016-12-18 18:17:04 -0500
commite751acece319ec20e8d3fef67de804b9cfa0af8d (patch)
treed717a80d54df00218332e2675f2241f73789310e /dev-php
parentdev-php/symfony-config: Add 2.1.0 version (diff)
downloadgentoo-e751acece319ec20e8d3fef67de804b9cfa0af8d.tar.gz
gentoo-e751acece319ec20e8d3fef67de804b9cfa0af8d.tar.bz2
gentoo-e751acece319ec20e8d3fef67de804b9cfa0af8d.zip
dev-php/symfony-yaml: Add 2.1.0 version
This is needed for composer-1.2.2, bug 439206. Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/symfony-yaml/Manifest1
-rw-r--r--dev-php/symfony-yaml/files/autoload.php8
-rw-r--r--dev-php/symfony-yaml/metadata.xml15
-rw-r--r--dev-php/symfony-yaml/symfony-yaml-2.1.0.ebuild42
4 files changed, 66 insertions, 0 deletions
diff --git a/dev-php/symfony-yaml/Manifest b/dev-php/symfony-yaml/Manifest
new file mode 100644
index 000000000000..697eebe3951c
--- /dev/null
+++ b/dev-php/symfony-yaml/Manifest
@@ -0,0 +1 @@
+DIST symfony-yaml-2.1.0.tar.gz 37056 SHA256 67df42116b2c29f87bd83fca89ae721179e0234f059de435a40ea0698a13db46 SHA512 984fbd624d4bf70ae964da60d55b6d9883642eabce54f080c04d3d12b4d64e63f036683bc12052b0958bd4575f1b693f1453b2505e5e5666ddf2fb13c40e927f WHIRLPOOL 143d5b2de57185a803172d721e381953412b772a3a31fc587a00189bfd770ae549fe621ea1e964f3d193425a1d19a24edd22d9bce4b73ddbb25b68608169c8a3
diff --git a/dev-php/symfony-yaml/files/autoload.php b/dev-php/symfony-yaml/files/autoload.php
new file mode 100644
index 000000000000..32b88aa583a0
--- /dev/null
+++ b/dev-php/symfony-yaml/files/autoload.php
@@ -0,0 +1,8 @@
+<?php
+/* Autoloader for dev-php/symfony-yaml and its dependencies */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Yaml\\', __DIR__);
diff --git a/dev-php/symfony-yaml/metadata.xml b/dev-php/symfony-yaml/metadata.xml
new file mode 100644
index 000000000000..47cf13203429
--- /dev/null
+++ b/dev-php/symfony-yaml/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+ <longdescription>
+ The Yaml component loads and dumps YAML files.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-php/symfony-yaml/symfony-yaml-2.1.0.ebuild b/dev-php/symfony-yaml/symfony-yaml-2.1.0.ebuild
new file mode 100644
index 000000000000..468bf8f9afb0
--- /dev/null
+++ b/dev-php/symfony-yaml/symfony-yaml-2.1.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Symfony YAML Component"
+HOMEPAGE="https://github.com/symfony/yaml"
+SRC_URI="https://github.com/symfony/yaml/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}/yaml-${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/Yaml"
+ doins -r . "${FILESDIR}"/autoload.php
+ dodoc README.md
+}
+
+src_test() {
+ phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"
+}