Install this version:
emerge -a =dev-php/nikic-php-parser-5.7.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-php/nikic-php-parser-5.7.0
Or alternatively:
emerge --autounmask-write -a =dev-php/nikic-php-parser-5.7.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 5.7.0 | 9 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
COMPOSER_INSTALL_AUTOLOAD="lib/PhpParser"
COMPOSER_INSTALL_PATH="nikic"
COMPOSER_INSTALL_SRC="lib"
COMPOSER_PKG="PHP-Parser"
PHP_REQ_USE="tokenizer"
inherit composer
DESCRIPTION="A PHP parser written in PHP"
HOMEPAGE="https://github.com/nikic/PHP-Parser"
SRC_URI="https://github.com/nikic/${COMPOSER_PKG}/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/SpiderX/portage-overlay/releases/download/${P}/${P}-patches.tar.xz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
PATCHES=( "${WORKDIR}/${P}-patches/src" )
COMPOSER_TEST_PATCHES=( "${WORKDIR}/${P}-patches/tests")
composer_enable_tests phpunit
src_install() {
composer_src_install
# install files into COMPOSER_INSTALL_PATH
dobin bin/php-parse
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | nikic-php-parser-5.7.0-patches.tar.xz | 6564 bytes | https://github.com/SpiderX/portage-overlay/releases/download/nikic-php-parser-5.7.0/nikic-php-parser-5.7.0-patches.tar.xz |
| DIST | nikic-php-parser-5.7.0.tar.gz | 152532 bytes | https://github.com/nikic/PHP-Parser/archive/v5.7.0.tar.gz |