dev-php/reactphp-promise: Respect EPREFIX in autoload.php

The provided autoload.php file hardcodes library PHP paths to
/usr/share/php/..., which is invalid in Prefix installations, since the
path will most likely not exist.

This commit modifies autoload.php during the installation to include
the correct EPREFIX before the file is copied to the final image
destination.

Closes: https://bugs.gentoo.org/919472
Signed-off-by: Moritz Brunner <moritz.brunner+gentoo@posteo.de>
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This commit is contained in:
Moritz Brunner 2023-12-07 19:26:23 +01:00 committed by Fabian Groffen
parent c07bf106d5
commit 29bce68743
No known key found for this signature in database
GPG Key ID: CE95DA854E444293

View File

@ -35,7 +35,7 @@ cat >> src/autoload.php <<EOF || die "failed to extend autoload.php"
// Dependencies
\Fedora\Autoloader\Dependencies::required([
'/usr/share/php/React/Promise/functions.php'
'${EPREFIX}/usr/share/php/React/Promise/functions.php'
]);
EOF
}