dev-php/spdx-licenses: fix spdx-{exceptions,licenses}.json install location

spdx-{exceptions,licenses}.json files must be installed into Composer/res
or `composer validate` will throw the following error:

>  [ErrorException]
>  file_get_contents(/usr/share/php/Composer/res/spdx-licenses.json): failed to open stream: No such file or directory

Package-Manager: Portage-2.3.49, Repoman-2.3.10
This commit is contained in:
Thomas Deutschmann
2018-09-20 16:53:30 +02:00
parent 341377acab
commit 85df4f93ee

View File

@@ -16,7 +16,10 @@ RDEPEND="
dev-php/fedora-autoloader"
src_install() {
insinto "/usr/share/php/Composer/res"
doins -r res/.
insinto "/usr/share/php/Composer/Spdx"
doins -r src/. res "${FILESDIR}"/autoload.php
doins -r src/. "${FILESDIR}"/autoload.php
dodoc README.md
}