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

EAPI=9

COMPOSER_INSTALL_PATH="Symfony/Component/PasswordHasher"
COMPOSER_INSTALL_SRC="."
PHP_REQ_USE="argon2?,sodium?"

inherit composer git-r3

DESCRIPTION="Symfony PasswordHasher Component"
HOMEPAGE="https://github.com/symfony/password-hasher"
EGIT_REPO_URI="https://github.com/symfony/password-hasher.git"

LICENSE="MIT"
SLOT="0"
IUSE="argon2 sodium"
REQUIRED_USE="test? ( argon2 sodium )"

BDEPEND="test? ( dev-php/symfony-console
		dev-php/symfony-security-core )"

DOCS=( {CHANGELOG,README}.md )

composer_enable_tests phpunit