# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

COMPOSER_INSTALL_PATH="Symfony/Component/DependencyInjection"
COMPOSER_INSTALL_SRC="."

inherit composer git-r3

DESCRIPTION="Symfony DependencyInjection Component"
HOMEPAGE="https://github.com/symfony/dependency-injection"
EGIT_REPO_URI="https://github.com/symfony/dependency-injection.git"

LICENSE="MIT"
SLOT="0"

RDEPEND="dev-php/psr-container
	dev-php/symfony-deprecation-contracts
	dev-php/symfony-service-contracts
	dev-php/symfony-var-exporter"
BDEPEND="test? ( dev-php/doctrine-deprecations
		dev-php/symfony-config
		dev-php/symfony-expression-language
		dev-php/symfony-phpunit-bridge
		dev-php/symfony-yaml )"

PATCHES=( "${FILESDIR}/${PN}"-7.4.17-tests-ContainerBuilderTest.patch
	"${FILESDIR}/${PN}"-7.4.17-tests-phpunit.xml.patch )

DOCS=( {CHANGELOG,README}.md )

# preload dump generation requires ComposerAutoloaderInit, unavailable with fedora autoloader
EPHPUNIT_EXCLUDE_FILTER='test(Dump|DeprecatedParameters|NonEmptyParameters|NonSharedLazy)AsFiles'
composer_enable_tests phpunit