mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-libs/fortran-stdlib: 0.1.0 first release
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
1
dev-libs/fortran-stdlib/Manifest
Normal file
1
dev-libs/fortran-stdlib/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST fortran-stdlib-0.1.0.tar.gz 210357 BLAKE2B 0727c0d280bb4c95383d9436245b82a43ed7aa0f762652d010501960d25a752694e8a12de149d80d1e107f3c6252d7af4f2db7ae64be6df58c4110dd929c0318 SHA512 247ad9e3db46847bbb5565aee995242f1c86ad3f623e9b91ca8505a92d6c27984a12fe32d4f3025e662176a025f72ddadc2d87ba646ab6b46ccc88e13f94f387
|
||||
62
dev-libs/fortran-stdlib/fortran-stdlib-0.1.0.ebuild
Normal file
62
dev-libs/fortran-stdlib/fortran-stdlib-0.1.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user