summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seren <guillaumeseren@gmail.com>2016-11-23 16:55:03 +0100
committerMichael Orlitzky <mjo@gentoo.org>2016-12-18 18:16:57 -0500
commit6c369a57c2ecbbc75dfab3fedbfb1b3d6361ee2c (patch)
treef652784a0de6a17c64fcefbb68535f604e001344 /dev-php/psr-log
parentdev-php/fedora-autoloader: Add 0.2.1 version (diff)
downloadgentoo-6c369a57c2ecbbc75dfab3fedbfb1b3d6361ee2c.tar.gz
gentoo-6c369a57c2ecbbc75dfab3fedbfb1b3d6361ee2c.tar.bz2
gentoo-6c369a57c2ecbbc75dfab3fedbfb1b3d6361ee2c.zip
dev-php/psr-log: Add 1.0.2 version
This is needed for composer-1.2.2, bug 439206. Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'dev-php/psr-log')
-rw-r--r--dev-php/psr-log/Manifest1
-rw-r--r--dev-php/psr-log/files/autoload.php8
-rw-r--r--dev-php/psr-log/metadata.xml17
-rw-r--r--dev-php/psr-log/psr-log-1.0.2.ebuild25
4 files changed, 51 insertions, 0 deletions
diff --git a/dev-php/psr-log/Manifest b/dev-php/psr-log/Manifest
new file mode 100644
index 000000000000..848d6ff53659
--- /dev/null
+++ b/dev-php/psr-log/Manifest
@@ -0,0 +1 @@
+DIST psr-log-1.0.2.tar.gz 4755 SHA256 753c27183c78f667497d9926511cf4b119007d49c709009b5759715a7b6112c9 SHA512 a95cf38a92e7259d615d48cf002c4a0a0b6d6a166a345dc40e7636f913e7a787fdc35d4279741d90e04f9b564b608a138ce2e59115014da6be9d779de2a01bf8 WHIRLPOOL 7f7c1eb2cf3e0a0b7a5c041ac6737ce98d8bdffccafe37a2ad206a40bb293e7fa59a382b1a9e3039828410c2d16012c075acb798416a83e97652561e786d66f5
diff --git a/dev-php/psr-log/files/autoload.php b/dev-php/psr-log/files/autoload.php
new file mode 100644
index 000000000000..fac5a688b5a9
--- /dev/null
+++ b/dev-php/psr-log/files/autoload.php
@@ -0,0 +1,8 @@
+<?php
+/* Autoloader for composer/ca-bundle and its dependencies */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addPsr4('Psr\\Log\\', __DIR__);
diff --git a/dev-php/psr-log/metadata.xml b/dev-php/psr-log/metadata.xml
new file mode 100644
index 000000000000..2119d74a84cc
--- /dev/null
+++ b/dev-php/psr-log/metadata.xml
@@ -0,0 +1,17 @@
+<?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>
+ PSR-3 logger, provide a common interface for logging libraries.
+ The main goal is to allow libraries to receive a Psr\Log\LoggerInterface object
+ and write logs to it in a simple and universal way.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-php/psr-log/psr-log-1.0.2.ebuild b/dev-php/psr-log/psr-log-1.0.2.ebuild
new file mode 100644
index 000000000000..8d743797036b
--- /dev/null
+++ b/dev-php/psr-log/psr-log-1.0.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Common interface for logging libraries"
+HOMEPAGE="https://github.com/php-fig/log"
+SRC_URI="https://github.com/php-fig/log/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-lang/php:*
+ dev-php/fedora-autoloader"
+
+S="${WORKDIR}/log-${PV}"
+
+src_install() {
+ insinto "/usr/share/php/Psr/Log"
+ doins -r Psr/Log/. "${FILESDIR}"/autoload.php
+ dodoc README.md
+}