Install this version:
emerge -a =dev-libs/sregex-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/sregex-9999
Or alternatively:
emerge --autounmask-write -a =dev-libs/sregex-9999
# Copyright 2026 mva
# Distributed under the terms of the Public Domain or CC0 License
EAPI=8
inherit multilib-minimal
DESCRIPTION="A non-backtracking regex engine matching on data streams"
HOMEPAGE="https://github.com/openresty/sregex"
if [[ "${PV}" == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/openresty/sregex"
else
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
SRC_URI="https://github.com/openresty/${PN}/archive/v${PV//_}.tar.gz -> ${P}.tar.gz"
fi
LICENSE="BSD"
SLOT="0"
src_prepare() {
sed -r \
-e '/^PREFIX=/s@(PREFIX)=.*@\1=/usr@' \
-e '/^INSTALL_LIB/s@lib@$(LIBDIR_${ABI})@' \
-e '/^CC=/d' \
-i "${S}"/Makefile
default
multilib_copy_sources
}