# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DESCRIPTION="PHP-PM is a process manager, supercharger and load balancer for PHP applications." HOMEPAGE="https://github.com/php-pm/php-pm" SRC_URI="https://github.com/php-pm/php-pm/archive/${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/php-pm-${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/psr-http-message dev-php/psr-http-server-handler dev-php/react-child-process dev-php/react-event-loop dev-php/react-http dev-php/react-promise dev-php/react-socket dev-php/react-stream dev-php/ringcentral-psr7 dev-php/symfony-console dev-php/symfony-error-handler dev-php/symfony-process " src_prepare() { default phpab \ --quiet \ --output autoload.php \ --template fedora2 \ --basedir src \ src \ || die VENDOR_DIR="${EPREFIX}/usr/share/php" cat >> autoload.php <> autoload.php } src_install() { insinto "/usr/share/php/PHPPM" doins -r *.php LICENSE bin src/* exeinto "/usr/share/php/PHPPM/bin" doexe "bin/ppm" dosym "/usr/share/php/PHPPM/bin/ppm" "/usr/bin/ppm" }