summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seren <guillaumeseren@gmail.com>2016-11-24 08:40:24 +0100
committerMichael Orlitzky <mjo@gentoo.org>2016-12-18 18:17:02 -0500
commit0bccd72e3e28f769b583b4334d43a0a1a4a7df7c (patch)
tree9bc21599f64ad417c1316dd280ec3accc7ce919e /dev-php/semver
parentdev-php/spdx-licenses: Add 1.0.0 version (diff)
downloadgentoo-0bccd72e3e28f769b583b4334d43a0a1a4a7df7c.tar.gz
gentoo-0bccd72e3e28f769b583b4334d43a0a1a4a7df7c.tar.bz2
gentoo-0bccd72e3e28f769b583b4334d43a0a1a4a7df7c.zip
dev-php/semver: Add 1.0.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/semver')
-rw-r--r--dev-php/semver/Manifest1
-rw-r--r--dev-php/semver/files/autoload.php8
-rw-r--r--dev-php/semver/metadata.xml15
-rw-r--r--dev-php/semver/semver-1.0.0.ebuild23
4 files changed, 47 insertions, 0 deletions
diff --git a/dev-php/semver/Manifest b/dev-php/semver/Manifest
new file mode 100644
index 000000000000..46e60c3f27c4
--- /dev/null
+++ b/dev-php/semver/Manifest
@@ -0,0 +1 @@
+DIST semver-1.0.0.tar.gz 9428 SHA256 527597180e90e2a36f173e2a669b7694ff3a4a3925cda4d5c8fa3cd3113eddf9 SHA512 7f7d529f7fb47049e65bbc47fcd4c1fa2dfef7de7441ed29d7bd81450414fbf3a4e0dfdfec0c9c019656d125e1591856a341d989b37c3aab70fbe5fa2f92f9a1 WHIRLPOOL 2bc7b6a54b34d7bebf5978210db4d89e8ff05d9724cf34658028d4a788fbc0aaaabf2248594feea67554a5885c173c738cfe7da158a05218f8d3a2eb45a354a2
diff --git a/dev-php/semver/files/autoload.php b/dev-php/semver/files/autoload.php
new file mode 100644
index 000000000000..2295f8bd9a0e
--- /dev/null
+++ b/dev-php/semver/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('Composer\\Semver\\', __DIR__);
diff --git a/dev-php/semver/metadata.xml b/dev-php/semver/metadata.xml
new file mode 100644
index 000000000000..ef0a4c4458cd
--- /dev/null
+++ b/dev-php/semver/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>
+ Semantic versioning utilities with the addition of version constraints parsing and checking.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-php/semver/semver-1.0.0.ebuild b/dev-php/semver/semver-1.0.0.ebuild
new file mode 100644
index 000000000000..ea8ee4f271cd
--- /dev/null
+++ b/dev-php/semver/semver-1.0.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Semantic versioning utilities with constraints parsing and checking"
+HOMEPAGE="https://github.com/composer/semver"
+SRC_URI="https://github.com/composer/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-lang/php:*
+ dev-php/fedora-autoloader"
+
+src_install() {
+ insinto "/usr/share/php/Composer/Semver"
+ doins -r src/. "${FILESDIR}"/autoload.php
+ dodoc README.md
+}