mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 07:33:19 -04:00
Add upstream patches to fix opening brace in serializer and to fix exceed array bounds. Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
42 lines
793 B
Bash
42 lines
793 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
FORTRAN_STANDARD="2003"
|
|
|
|
inherit cmake fortran-2
|
|
|
|
DESCRIPTION="Jonquil: Bringing TOML blooms to JSON land"
|
|
HOMEPAGE="https://toml-f.readthedocs.io/en/latest/how-to/jonquil.html"
|
|
SRC_URI="https://github.com/toml-f/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="Apache-2.0 MIT"
|
|
SLOT="0/2"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="test"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
dev-libs/toml-f:0/4
|
|
"
|
|
|
|
DEPEND="
|
|
${RDEPEND}
|
|
test? ( dev-util/fortran-test-drive )
|
|
"
|
|
|
|
PATCHES="
|
|
${FILESDIR}/${P}_fix_opening_brace_in_serializer.patch
|
|
${FILESDIR}/${P}_fix_exceed_array_bounds.patch
|
|
"
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DENABLE_TESTING=$(usex test)
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|