Skip to content

Commit

Permalink
dev-php/psr-log: Add 1.0.2 version
Browse files Browse the repository at this point in the history
This is needed for composer-1.2.2, bug 439206.

Signed-off-by: Michael Orlitzky <[email protected]>
  • Loading branch information
GuillaumeSeren authored and orlitzky committed Dec 18, 2016
1 parent 38e69d1 commit 6c369a5
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-php/psr-log/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST psr-log-1.0.2.tar.gz 4755 SHA256 753c27183c78f667497d9926511cf4b119007d49c709009b5759715a7b6112c9 SHA512 a95cf38a92e7259d615d48cf002c4a0a0b6d6a166a345dc40e7636f913e7a787fdc35d4279741d90e04f9b564b608a138ce2e59115014da6be9d779de2a01bf8 WHIRLPOOL 7f7c1eb2cf3e0a0b7a5c041ac6737ce98d8bdffccafe37a2ad206a40bb293e7fa59a382b1a9e3039828410c2d16012c075acb798416a83e97652561e786d66f5
8 changes: 8 additions & 0 deletions dev-php/psr-log/files/autoload.php
Original file line number Diff line number Diff line change
@@ -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__);
17 changes: 17 additions & 0 deletions dev-php/psr-log/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>[email protected]</email>
<name>Guillaume Seren</name>
</maintainer>
<maintainer type="project">
<email>[email protected]</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>
25 changes: 25 additions & 0 deletions dev-php/psr-log/psr-log-1.0.2.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 6c369a5

Please sign in to comment.