dev-libs/toml-f: 0.2.4 version bump; add SUBSLOTS

Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov
2022-11-26 21:14:49 +03:00
parent 99b108a2a3
commit 6164c780b1
3 changed files with 39 additions and 1 deletions

View File

@@ -1 +1,2 @@
DIST toml-f-0.2.4.tar.gz 94087 BLAKE2B 20302f864debd7070d72a13fcd42b52be5596761a535fb969a26cea851e0f305827aba43389d3b229004b85942f0ef7a4ef01d7ca8ec05b97e125fb2e50e6c99 SHA512 19693efac1944ed6b68ccd1762dafdf188656ecdc6e9d7092e1f9008c644db20f1c3be91044e516547bc778e2cc7c0a6060a3d2fafe3b4d225aaf3a9103e62f0
DIST toml-f-0.3.1.tar.gz 408898 BLAKE2B b59841eb4f7e3d7caab6a5f0ac7ee84b84946f60830d72c988f10e7b81148f5833d61cd6c21b0dbfdbb0750809142a79ac6d294501bec38dfb0ec3376911427d SHA512 51cdfdb6aa948c7797126d1655a0fd720b58d9e4a8968ca00ab17ba5ca2a3c65ae56774c4ef9b9afdf80c59af4cbdbc05d147e2f3aecde7beaec5f9f96bb29ae

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
FORTRAN_STANDARD="2003"
inherit cmake fortran-2
DESCRIPTION="TOML parser implementation for data serialization and deserialization in Fortran"
HOMEPAGE="https://toml-f.readthedocs.io"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0 MIT"
SLOT="0/2"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="
test? ( dev-util/fortran-test-drive )
"
src_prepare() {
default
# Remove Fortran compiler version from paths
sed -i -e "s:/\${CMAKE_Fortran_COMPILER_ID}-\${CMAKE_Fortran_COMPILER_VERSION}::" config/CMakeLists.txt || die
if ! use test ; then
sed -i -e '/^enable_testing()/d' \
-e '/^add_subdirectory("test")/d' CMakeLists.txt || die
fi
cmake_src_prepare
}

View File

@@ -12,7 +12,7 @@ HOMEPAGE="https://toml-f.readthedocs.io"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0 MIT"
SLOT="0"
SLOT="0/3"
KEYWORDS="~amd64 ~x86"
IUSE="test"