dev-php/spdx-licenses: fix spdx-{exceptions,licenses}.json install location
authorThomas Deutschmann <whissi@gentoo.org>
Thu, 20 Sep 2018 14:53:30 +0000 (16:53 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Thu, 20 Sep 2018 14:54:27 +0000 (16:54 +0200)
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

dev-php/spdx-licenses/spdx-licenses-1.4.0-r1.ebuild [moved from dev-php/spdx-licenses/spdx-licenses-1.4.0.ebuild with 83% similarity]

similarity index 83%
rename from dev-php/spdx-licenses/spdx-licenses-1.4.0.ebuild
rename to dev-php/spdx-licenses/spdx-licenses-1.4.0-r1.ebuild
index 5d0d655446699615636ca00ee139d7c8a50507ad..57236bd1ba3cdbe77ba6e4c46cf03afa3cb76630 100644 (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
 }