commit: 67e32e8426bddb647fa01fa915df1d1ba0ae2752 Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> AuthorDate: Fri Apr 29 18:44:28 2022 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Fri Apr 29 18:44:28 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=67e32e84
dev-libs/fortran-stdlib: 0.2.1 version bump Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> dev-libs/fortran-stdlib/Manifest | 1 + .../fortran-stdlib/fortran-stdlib-0.2.1.ebuild | 68 ++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/dev-libs/fortran-stdlib/Manifest b/dev-libs/fortran-stdlib/Manifest index cfdd66808..122c39386 100644 --- a/dev-libs/fortran-stdlib/Manifest +++ b/dev-libs/fortran-stdlib/Manifest @@ -1,2 +1,3 @@ DIST fortran-stdlib-0.1.0.tar.gz 210357 BLAKE2B 0727c0d280bb4c95383d9436245b82a43ed7aa0f762652d010501960d25a752694e8a12de149d80d1e107f3c6252d7af4f2db7ae64be6df58c4110dd929c0318 SHA512 247ad9e3db46847bbb5565aee995242f1c86ad3f623e9b91ca8505a92d6c27984a12fe32d4f3025e662176a025f72ddadc2d87ba646ab6b46ccc88e13f94f387 DIST fortran-stdlib-0.2.0.tar.gz 323170 BLAKE2B b81c04a52fc466fe87668a1280fda0a3305e85fe90c8db07d7a8271804d775d07dc1e16278d87abc8c63990c825dbf2ae7ae9dd142ba8c2edf4fb32609471188 SHA512 aadf5e1fa96a95143fec9f7778c37d82c515d7db9afb723d02685a3f751428f82121d57529caaba79b5d6aab92af7790616640a09128ec5f3cf57528d68975ed +DIST fortran-stdlib-0.2.1.tar.gz 323480 BLAKE2B d6d54e38fd8c970168144b011b0df8c800339f7649f09581401351e508ad98dd562bf6ea68595188b5b854973f8552ce7fb4ae9c4aa7491090927a21b4e8a714 SHA512 74eba6d0507a176af9dd6e035dc37844c5b7ae0181527e69de8eedf38f90260121c7814e3ffe34845059f91632edd08227c5dd326a45949ac57659249c3296fd diff --git a/dev-libs/fortran-stdlib/fortran-stdlib-0.2.1.ebuild b/dev-libs/fortran-stdlib/fortran-stdlib-0.2.1.ebuild new file mode 100644 index 000000000..2e29c3a45 --- /dev/null +++ b/dev-libs/fortran-stdlib/fortran-stdlib-0.2.1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_STANDARD="2003" +PYTHON_COMPAT=( python3_{8..10} ) + +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 ~x86" +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_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:" + ${EPYTHON} 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 +}