mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-29 16:37:30 -07:00
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/919376 Signed-off-by: Moritz Brunner <moritz.brunner+gentoo@posteo.de> Signed-off-by: Fabian Groffen <grobian@gentoo.org>
26 lines
592 B
Bash
26 lines
592 B
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit prefix
|
|
|
|
DESCRIPTION="Find the system CA bundle or fall back to the Mozilla one"
|
|
HOMEPAGE="https://github.com/composer/ca-bundle"
|
|
SRC_URI="https://github.com/composer/ca-bundle/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm64 x86"
|
|
|
|
RDEPEND="
|
|
dev-lang/php:*
|
|
dev-php/fedora-autoloader"
|
|
|
|
src_install() {
|
|
insinto /usr/share/php/Composer/CaBundle
|
|
doins src/CaBundle.php \
|
|
"$(prefixify_ro "${FILESDIR}"/autoload.php)"
|
|
dodoc README.md
|
|
}
|