dev-php/semver: Add 1.0.0 version
authorGuillaume Seren <guillaumeseren@gmail.com>
Thu, 24 Nov 2016 07:40:24 +0000 (08:40 +0100)
committerMichael Orlitzky <mjo@gentoo.org>
Sun, 18 Dec 2016 23:17:02 +0000 (18:17 -0500)
This is needed for composer-1.2.2, bug 439206.

Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
dev-php/semver/Manifest [new file with mode: 0644]
dev-php/semver/files/autoload.php [new file with mode: 0644]
dev-php/semver/metadata.xml [new file with mode: 0644]
dev-php/semver/semver-1.0.0.ebuild [new file with mode: 0644]

diff --git a/dev-php/semver/Manifest b/dev-php/semver/Manifest
new file mode 100644 (file)
index 0000000..46e60c3
--- /dev/null
@@ -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 (file)
index 0000000..2295f8b
--- /dev/null
@@ -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 (file)
index 0000000..ef0a4c4
--- /dev/null
@@ -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 (file)
index 0000000..ea8ee4f
--- /dev/null
@@ -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
+}