mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 11:04:10 -04:00
dev-util/toml-f: new package, version 0.3.1
DEPEND for dev-util/fpm Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
1
dev-util/toml-f/Manifest
Normal file
1
dev-util/toml-f/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST toml-f-0.3.1.tar.gz 408898 BLAKE2B b59841eb4f7e3d7caab6a5f0ac7ee84b84946f60830d72c988f10e7b81148f5833d61cd6c21b0dbfdbb0750809142a79ac6d294501bec38dfb0ec3376911427d SHA512 51cdfdb6aa948c7797126d1655a0fd720b58d9e4a8968ca00ab17ba5ca2a3c65ae56774c4ef9b9afdf80c59af4cbdbc05d147e2f3aecde7beaec5f9f96bb29ae
|
||||
11
dev-util/toml-f/metadata.xml
Normal file
11
dev-util/toml-f/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>torokhov-s-a@yandex.ru</email>
|
||||
<name>Sergey Torokhov</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">toml-f/toml-f</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
37
dev-util/toml-f/toml-f-0.3.1.ebuild
Normal file
37
dev-util/toml-f/toml-f-0.3.1.ebuild
Normal 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"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user