Files
guru/media-libs/blend2d/blend2d-0.11.4-r2.ebuild
Alexander Golubev 211641bd99 media-libs/blend2d: limit max asmjit version
Also add subslot, as the library ABI changes quite often

Bug: https://bugs.gentoo.org/970929
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
2026-03-05 19:03:49 +03:00

47 lines
986 B
Bash

# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="2D vector graphics library powered by a JIT compiler."
HOMEPAGE="https://blend2d.com/"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/${PN}/${PN}"
else
SRC_URI="https://blend2d.com/download/${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}"
fi
LICENSE="ZLIB"
SLOT="0/$(ver_cut 1-2)"
IUSE="+jit test"
RESTRICT="!test? ( test )"
RDEPEND="
jit? (
>=dev-libs/asmjit-2024.10.25
<dev-libs/asmjit-2025.06.15
)
"
DEPEND="${RDEPEND}"
DOCS=( README.md CONTRIBUTING.md )
PATCHES=(
"${FILESDIR}/blend2d-0.11.4-avoid-adding-O2-to-cflags-gentoo-bug-943226.patch"
)
# see https://github.com/blend2d/blend2d/issues/217
CMAKE_SKIP_TESTS="bl_test_image_io"
src_configure() {
local mycmakeargs=(
-DBLEND2D_NO_JIT=$(usex !jit)
-DBLEND2D_TEST=$(usex test)
-DBLEND2D_EXTERNAL_ASMJIT=ON
)
cmake_src_configure
}