commit: 95f358f36d860714e1a0b2f2c82c9124ea8544bc Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> AuthorDate: Fri Aug 18 22:57:55 2023 +0000 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> CommitDate: Fri Aug 18 22:57:55 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=95f358f3
dev-libs/fortran-stdlib: 0.3.0 version bump Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> dev-libs/fortran-stdlib/Manifest | 1 + .../fortran-stdlib/fortran-stdlib-0.3.0.ebuild | 80 ++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/dev-libs/fortran-stdlib/Manifest b/dev-libs/fortran-stdlib/Manifest index 2d982086f3..a0a76682a3 100644 --- a/dev-libs/fortran-stdlib/Manifest +++ b/dev-libs/fortran-stdlib/Manifest @@ -1 +1,2 @@ DIST fortran-stdlib-0.2.1.tar.gz 323480 BLAKE2B d6d54e38fd8c970168144b011b0df8c800339f7649f09581401351e508ad98dd562bf6ea68595188b5b854973f8552ce7fb4ae9c4aa7491090927a21b4e8a714 SHA512 74eba6d0507a176af9dd6e035dc37844c5b7ae0181527e69de8eedf38f90260121c7814e3ffe34845059f91632edd08227c5dd326a45949ac57659249c3296fd +DIST fortran-stdlib-0.3.0.tar.gz 387442 BLAKE2B 8e1dae71a7de763452ac149a21eff0bbd2be93b2addf7c1f44f2e2bf26851d3735dc945b681430e6102fa9bf63f4f4fd91c7e9b437a4cf69697ba7476619be0e SHA512 e2f586dd9cb94abf0094d6ea5cb4dc4ee6ba9afdf2f2bfb8cd8e8ab1a4ea93dd4a5dbec6be70f88edd414fe4ea111f3bb3e4fe0584b156bf7711b8ff83226dcc diff --git a/dev-libs/fortran-stdlib/fortran-stdlib-0.3.0.ebuild b/dev-libs/fortran-stdlib/fortran-stdlib-0.3.0.ebuild new file mode 100644 index 0000000000..558b77e564 --- /dev/null +++ b/dev-libs/fortran-stdlib/fortran-stdlib-0.3.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_STANDARD="2003" +PYTHON_COMPAT=( python3_{10..11} ) + +inherit cmake fortran-2 python-any-r1 + +MY_PN="stdlib" +SRC_URI="https://github.com/fortran-lang/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +DESCRIPTION="A community driven standard library for (modern) Fortran" +HOMEPAGE="https://stdlib.fortran-lang.org/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc test" +RESTRICT="mirror !test? ( test )" + +S="${WORKDIR}/${MY_PN}-${PV}" + +DEPEND=" + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-util/fypp[${PYTHON_USEDEP}] + ') + doc? ( + $(python_gen_any_dep ' + app-doc/ford[${PYTHON_USEDEP}] + ') + ) + test? ( dev-util/fortran-test-drive ) +" + +pkg_setup() { + fortran-2_pkg_setup +} + +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 + + # Use favicon.png instead remote icon + sed -i -e 's#https://fortran-lang.org/assets/img/fortran_logo_512x512.png#favicon.png#' API-doc-FORD-file.md || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs+=( + -DBUILD_SHARED_LIBS=on + -DBUILD_TESTING=$(usex test) + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc ; then + einfo "Build API documentation:" + ford API-doc-FORD-file.md || die + fi +} + +src_test() { + LD_LIBRARY_PATH="${BUILD_DIR}/src:${BUILD_DIR}/src/tests/hash_functions" cmake_src_test +} + +src_install() { + cmake_src_install + + use doc && HTML_DOCS=( "${WORKDIR}/${MY_PN}-${PV}"/API-doc/. ) + einstalldocs +}