dev-php/phpstan-phpdoc-parser - 2.3.0 (php-overlay)

Search

Package Information

Description:
PHPDoc parser with support for nullable, intersection and generic types
Homepage:
https://github.com/phpstan/phpdoc-parser
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
2.3.0 8 ~amd64 ~arm ~arm64 ~x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="PHPDoc parser with support for nullable, intersection and generic types"
HOMEPAGE="https://github.com/phpstan/phpdoc-parser"
SRC_URI="https://github.com/phpstan/phpdoc-parser/archive/${PV}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/phpdoc-parser-${PV}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"

BDEPEND="dev-php/theseer-autoload"
RDEPEND="
	>=dev-lang/php-7.4:*
	dev-php/fedora-autoloader
"

src_prepare() {
	default

	phpab \
		--quiet \
		--output autoload.php \
		--template fedora2 \
		--basedir . \
		. \
		|| die
}

src_install() {
	insinto "/usr/share/php/Phpstan/Phpdoc-Parser"
	doins -r src autoload.php || die
}

Dependencies

RDEPEND

	>=dev-lang/php-7.4:*
	dev-php/fedora-autoloader

BDEPEND

dev-php/theseer-autoload

Manifest for 2.3.0

Type File Size Source URLs
DIST phpstan-phpdoc-parser-2.3.0.tar.gz 38311 bytes https://github.com/phpstan/phpdoc-parser/archive/2.3.0.tar.gz