Install this version:
emerge -a =dev-libs/jansson-2.15.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/jansson-2.15.1
Or alternatively:
emerge --autounmask-write -a =dev-libs/jansson-2.15.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 2.15.1 | 8 | ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos | 0/4 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="C library for encoding, decoding and manipulating JSON data"
HOMEPAGE="https://www.digip.org/jansson/"
SRC_URI="https://github.com/akheron/jansson/releases/download/v${PV}/${P}.tar.bz2"
LICENSE="MIT"
SLOT="0/4"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
IUSE="doc static-libs"
BDEPEND="
dev-build/autoconf-archive
doc? ( dev-python/sphinx )
"
src_prepare() {
default
eautoreconf
}
src_configure() {
# Don't run lint tests
export CLANG_FORMAT=false
econf $(use_enable static-libs static)
}
src_compile() {
default
if use doc ; then
emake html
HTML_DOCS=( doc/_build/html/. )
fi
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}
Manage flags for this package:
euse -i <flag> -p dev-libs/jansson |
euse -E <flag> -p dev-libs/jansson |
euse -D <flag> -p dev-libs/jansson
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | jansson-2.15.1.tar.bz2 | 488779 bytes | https://github.com/akheron/jansson/releases/download/v2.15.1/jansson-2.15.1.tar.bz2 |