Install this version:
emerge -a =dev-php/spx-0.4.22
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-php/spx-0.4.22
Or alternatively:
emerge --autounmask-write -a =dev-php/spx-0.4.22
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="php-${PN}"
MY_P="${MY_PN}-${PV}"
PHP_EXT_NAME="spx"
PHP_EXT_NEEDED_USE="zlib,-threads"
PHP_EXT_S="${WORKDIR}/${MY_P}"
USE_PHP="php8-2 php8-3 php8-4 php8-5"
inherit php-ext-source-r3
DESCRIPTION="A PHP wrapper fo the scrypt hashing algorithm"
HOMEPAGE="https://github.com/NoiseByNorthwest/php-spx"
SRC_URI="https://github.com/NoiseByNorthwest/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="virtual/zlib:0="
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/${PN}"-0.4.22-tests.patch )
src_prepare() {
# remove Werror, respect CFLAGS
sed -i "/CFLAGS/s/-Werror -Wall -O3/$CFLAGS -Wall/" config.m4 \
|| die "sed failed for config.m4"
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
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | php-spx-0.4.22.tar.gz | 139014 bytes | https://github.com/NoiseByNorthwest/php-spx/archive/v0.4.22.tar.gz |