Install this version:
emerge -a =dev-php/spx-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-php/spx-9999
Or alternatively:
emerge --autounmask-write -a =dev-php/spx-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PHP_EXT_NAME="spx"
PHP_EXT_NEEDED_USE="zlib,-threads"
USE_PHP="php8-2 php8-3 php8-4 php8-5"
inherit git-r3 php-ext-source-r3
unset SRC_URI
DESCRIPTION="A PHP wrapper fo the scrypt hashing algorithm"
HOMEPAGE="https://github.com/NoiseByNorthwest/php-spx"
EGIT_REPO_URI="https://github.com/NoiseByNorthwest/php-spx.git"
LICENSE="GPL-3"
SLOT="0"
IUSE="cgi test"
REQUIRED_USE="test? ( cgi )"
RESTRICT="!test? ( test )"
DEPEND="virtual/zlib:0="
RDEPEND="${DEPEND}"
BDEPEND="test? ( dev-lang/php:*[cgi?] )" # skipped 7
src_prepare() {
default
# Remove Werror, respect CFLAGS
sed -i "/CFLAGS/s/-Werror -Wall -O3/$CFLAGS -Wall/" config.m4 \
|| die "sed failed for config.m4"
# remove failed tests
rm tests/spx_custom_metadata.phpt || die "rm failed"
php-ext-source-r3_src_prepare
}
Manage flags for this package:
euse -i <flag> -p dev-php/spx |
euse -E <flag> -p dev-php/spx |
euse -D <flag> -p dev-php/spx
virtual/zlib:0=
virtual/zlib:0=
test? ( dev-lang/php:*[cgi?] )