Install this version:
emerge -a =dev-libs/zxcvbn-c-2.6-r1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/zxcvbn-c-2.6-r1
Or alternatively:
emerge --autounmask-write -a =dev-libs/zxcvbn-c-2.6-r1
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="C/C++ version of the zxcvbn password strength estimator"
HOMEPAGE="https://github.com/tsyrogit/zxcvbn-c"
SRC_URI="https://github.com/tsyrogit/zxcvbn-c/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~loong ppc64 ~riscv x86"
PATCHES=(
"${FILESDIR}"/${PN}-2.5-makefile-install.patch
)
src_install() {
emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install
rm "${ED}/usr/$(get_libdir)/libzxcvbn.a" || die
doheader zxcvbn.h
}