# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit rebar DESCRIPTION="JSON NIFs for Erlang" HOMEPAGE="https://github.com/davisp/jiffy" SRC_URI="https://github.com/davisp/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~sparc ~x86" DEPEND=">=dev-lang/erlang-17.1" RDEPEND="${DEPEND}" DOCS=( README.md ) src_prepare() { rebar_src_prepare # Respect CFLAGS/CXXFLAGS and do not force -Werror, -O3 or LTO # (bugs #736132, #889796). sed -i -e 's/ \$FLTO_FLAG//' -e 's/ -Werror//' -e 's/ -O3//' \ rebar.config || die }