diff options
author | Guillaume Seren <guillaumeseren@gmail.com> | 2016-11-24 08:33:47 +0100 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2016-12-18 18:17:01 -0500 |
commit | a78020686e96a4d276c3a38fc489e55ccea97dd7 (patch) | |
tree | d75dded485c9b7fa7122d590112eda6a6d4fd4c1 /dev-php/spdx-licenses/files | |
parent | dev-php/jsonlint: Add 1.4.0 version (diff) | |
download | gentoo-a78020686e96a4d276c3a38fc489e55ccea97dd7.tar.gz gentoo-a78020686e96a4d276c3a38fc489e55ccea97dd7.tar.bz2 gentoo-a78020686e96a4d276c3a38fc489e55ccea97dd7.zip |
dev-php/spdx-licenses: 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/spdx-licenses/files')
-rw-r--r-- | dev-php/spdx-licenses/files/autoload.php | 8 | ||||
-rw-r--r-- | dev-php/spdx-licenses/files/spdx-licenses-change-res-path.patch | 22 |
2 files changed, 30 insertions, 0 deletions
diff --git a/dev-php/spdx-licenses/files/autoload.php b/dev-php/spdx-licenses/files/autoload.php new file mode 100644 index 000000000000..6ebf96e7378c --- /dev/null +++ b/dev-php/spdx-licenses/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\\Spdx\\', __DIR__); diff --git a/dev-php/spdx-licenses/files/spdx-licenses-change-res-path.patch b/dev-php/spdx-licenses/files/spdx-licenses-change-res-path.patch new file mode 100644 index 000000000000..284cdddda95e --- /dev/null +++ b/dev-php/spdx-licenses/files/spdx-licenses-change-res-path.patch @@ -0,0 +1,22 @@ +# Fix the path of res/ + +--- ./src/SpdxLicenses.php 2015-07-15 19:38:14.000000000 +0200 ++++ ./src/SpdxLicenses.php 2016-11-13 19:24:17.659442468 +0100 +@@ -170,7 +170,7 @@ + private function loadLicenses() + { + if (null === $this->licenses) { +- $jsonFile = file_get_contents(__DIR__ . '/../res/spdx-licenses.json'); ++ $jsonFile = file_get_contents(__DIR__ . '/res/spdx-licenses.json'); + $this->licenses = json_decode($jsonFile, true); + } + } +@@ -178,7 +178,7 @@ + private function loadExceptions() + { + if (null === $this->exceptions) { +- $jsonFile = file_get_contents(__DIR__ . '/../res/spdx-exceptions.json'); ++ $jsonFile = file_get_contents(__DIR__ . '/res/spdx-exceptions.json'); + $this->exceptions = json_decode($jsonFile, true); + } + } |