commit: dffba6f8d1c24e0104a0163aa3d789d4324aef6e Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> AuthorDate: Mon Oct 11 19:03:46 2021 +0000 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> CommitDate: Mon Oct 11 19:03:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dffba6f8
dev-libs/fortran-stdlib: 0.1.0 first release Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> dev-libs/fortran-stdlib/Manifest | 1 + .../fortran-stdlib/fortran-stdlib-0.1.0.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/dev-libs/fortran-stdlib/Manifest b/dev-libs/fortran-stdlib/Manifest new file mode 100644 index 000000000..894525cf9 --- /dev/null +++ b/dev-libs/fortran-stdlib/Manifest @@ -0,0 +1 @@ +DIST fortran-stdlib-0.1.0.tar.gz 210357 BLAKE2B 0727c0d280bb4c95383d9436245b82a43ed7aa0f762652d010501960d25a752694e8a12de149d80d1e107f3c6252d7af4f2db7ae64be6df58c4110dd929c0318 SHA512 247ad9e3db46847bbb5565aee995242f1c86ad3f623e9b91ca8505a92d6c27984a12fe32d4f3025e662176a025f72ddadc2d87ba646ab6b46ccc88e13f94f387 diff --git a/dev-libs/fortran-stdlib/fortran-stdlib-0.1.0.ebuild b/dev-libs/fortran-stdlib/fortran-stdlib-0.1.0.ebuild new file mode 100644 index 000000000..4d456d1b5 --- /dev/null +++ b/dev-libs/fortran-stdlib/fortran-stdlib-0.1.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +FORTRAN_STANDARD="2003" +PYTHON_COMPAT=( python3_{8..9} ) + +inherit cmake fortran-2 python-any-r1 toolchain-funcs + +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}] + ') + ) +" + +pkg_setup() { + fortran-2_pkg_setup +} + +src_configure() { + local mycmakeargs+=( + -DBUILD_SHARED_LIBS=on + ) + 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_install() { + cmake_src_install + + use doc && HTML_DOCS=( "${WORKDIR}/${MY_PN}-${PV}"/API-doc/. ) + einstalldocs +}