# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DESCRIPTION="Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere." HOMEPAGE="https://github.com/composer/composer" SRC_URI="https://github.com/composer/composer/archive/${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/composer-${PV}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~x86" BDEPEND="dev-php/theseer-Autoload" RDEPEND=" >=dev-lang/php-7.4:* dev-php/fedora-autoloader dev-php/ca-bundle dev-php/class-map-generator dev-php/justinrainbow-json-schema dev-php/metadata-minifier dev-php/pcre dev-php/psr-log dev-php/react-promise dev-php/seld-jsonlint dev-php/seld-phar-utils dev-php/seld-signal-handler dev-php/semver dev-php/spdx-licenses dev-php/symfony-console dev-php/symfony-filesystem dev-php/symfony-finder dev-php/symfony-polyfill-php73 dev-php/symfony-polyfill-php80 dev-php/symfony-polyfill-php81 dev-php/symfony-process dev-php/xdebug-handler " PATCHES=( "${FILESDIR}"/autoload.patch "${FILESDIR}"/explain-non-standard-install.patch ) src_prepare() { default mkdir vendor || die phpab \ --output vendor/autoload.php \ --template "${FILESDIR}"/autoload.php.tpl \ --basedir src \ src \ || die VENDOR_DIR="${EPREFIX}/usr/share/php" cat >> vendor/autoload.php <