# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=9 COMPOSER_INSTALL_PATH="Hamcrest" COMPOSER_INSTALL_SRC="hamcrest" COMPOSER_PKG="${PN}-php" inherit composer git-r3 DESCRIPTION="PHP Hamcrest implementation" HOMEPAGE="https://github.com/hamcrest/hamcrest-php" EGIT_REPO_URI="https://github.com/hamcrest/hamcrest-php.git" LICENSE="BSD" SLOT="0" BDEPEND="dev-php/theseer-Autoload test? ( dev-php/phpunit-php-file-iterator )" PATCHES=( "${FILESDIR}/${PN}"-3.0.0-phpunit.xml.patch "${FILESDIR}/${PN}"-3.0.0-CombinableMatcherTest.patch "${FILESDIR}/${PN}"-3.0.0-FeatureMatcherTest.patch "${FILESDIR}/${PN}"-3.0.0-HasXPathTest.patch "${FILESDIR}/${PN}"-3.0.0-IsEqualIgnoringWhiteSpaceTest.patch "${FILESDIR}/${PN}"-3.0.0-IsInstanceOfTest.patch "${FILESDIR}/${PN}"-3.0.0-MatcherAssertTest.patch "${FILESDIR}/${PN}"-3.0.0-SetTest.patch "${FILESDIR}/${PN}"-3.0.0-StringContainsIgnoringCaseTest.patch "${FILESDIR}/${PN}"-3.0.0-StringContainsInOrderTest.patch "${FILESDIR}/${PN}"-3.0.0-StringContainsTest.patch "${FILESDIR}/${PN}"-3.0.0-StringDescriptionTest.patch "${FILESDIR}/${PN}"-3.0.0-StringEndsWithTest.patch "${FILESDIR}/${PN}"-3.0.0-StringStartsWithTest.patch ) DOCS=( CHANGES.txt README.md ) composer_enable_tests phpunit src_prepare() { composer_src_prepare edo phpab -q -o hamcrest/autoload.php -t "${FILESDIR}"/autoload.php.tpl hamcrest edo phpab -q -o tests/autoload.php -t fedora2 tests } src_test() { ephpunit -c tests/phpunit.xml.dist }