Install this version:
emerge -a =dev-python/tree-sitter-php-0.25.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/tree-sitter-php-0.25.1
Or alternatively:
emerge --autounmask-write -a =dev-python/tree-sitter-php-0.25.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.25.1 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{14,15} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="PHP Python bindings for Tree-sitter"
HOMEPAGE="https://github.com/tree-sitter/tree-sitter-php"
# Same situation as dev-python/tree-sitter-typescript: dev-libs/tree-sitter-php
# only builds the "php" grammar's C library from the php/ subdirectory (no
# Python bindings); the actual PyPI package "tree-sitter-php" that graphify
# depends on is built from the *repo root*, combining both php/src and
# php_only/src into one extension exposing language_php() and
# language_php_only(). Build that here as its own package instead.
SRC_URI="https://github.com/tree-sitter/tree-sitter-php/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${P}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/tree-sitter-0.24[${PYTHON_USEDEP}]
"
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | tree-sitter-php-0.25.1.tar.gz | 765428 bytes | https://github.com/tree-sitter/tree-sitter-php/archive/v0.25.1.tar.gz |