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

EAPI=9

COMPOSER_INSTALL_PATH="Revolt"

inherit composer git-r3

DESCRIPTION="Event loop for concurrent PHP applications"
HOMEPAGE="https://github.com/revoltphp/event-loop"
EGIT_REPO_URI="https://github.com/revoltphp/event-loop.git"

LICENSE="MIT"
SLOT="0"

BDEPEND="test? ( dev-php/pecl-ev
		dev-php/pecl-event
		dev-php/pecl-uv )"

PATCHES=( "${FILESDIR}/${PN}"-1.0.9-tests-DriverTest.patch
	"${FILESDIR}/${PN}"-1.0.9-tests-phpunit.xml.patch
	"${FILESDIR}/${PN}"-1.0.9-tests-StreamSelectDriverTest.patch
	"${FILESDIR}/${PN}"-1.0.9-tests-TracingDriverTest.patch )

composer_enable_tests phpunit