# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 MY_INSTALL_PATH="/usr/share/php/coding-standard" MY_CODESNIFFER_CONF="/usr/share/php/data/PHP/CodeSniffer/CodeSniffer.conf" DESCRIPTION="Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks." HOMEPAGE="https://github.com/slevomat/coding-standard" SRC_URI="https://github.com/slevomat/coding-standard/archive/refs/tags/${PV}.tar.gz -> ${PN}-${PV}.tar.gz" S="${WORKDIR}/coding-standard-${PV}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~arm64" BDEPEND="dev-php/theseer-Autoload dev-php/PHP_CodeSniffer" RDEPEND="dev-lang/php:* dev-php/fedora-autoloader dev-php/phpstan-phpdoc-parser dev-php/PHP_CodeSniffer" src_prepare() { default phpab \ --quiet \ --output autoload.php \ --template fedora2 \ --basedir . \ .\ || die VENDOR_DIR="${EPREFIX}/usr/share/php" cat >> autoload.php <