sci-libs/netcdf-fortran: add 4.5.3

Closes: https://bugs.gentoo.org/771612
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-11-25 01:57:59 +00:00
parent e2ea7b736a
commit fc6f79fa84
2 changed files with 49 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST netcdf-fortran-4.4.3.tar.gz 1286951 BLAKE2B 6e68505359328bac4155065419cb9c2fb2df0de875210c0eb9a4e63312b2ec272d63ecfa73b5dcebe7cf75b58a184d1a0ccb2c06c45869d3f4573590d610d9e0 SHA512 94f51b4be889d6a9d6a86e3fcb2639ac58288969160d0f334ed6965e3c9cbacff7289b1fc54ed06e6ec8b845b19f5c409fbdcab432c8edf5c96efde887920924
DIST netcdf-fortran-4.5.3.tar.gz 1805683 BLAKE2B f32a36a77872e039a0c03a1f1ccdbb00761309dc7d255a1203b0a1971464e75d87f56230f28a5d5928ca3e7e388f52c4622836c2cea3d35b286161b8044e375b SHA512 fe4b2f6f8c44bf4fdeebe3cbd57ee44ccee15a70075428bb68f0d33b70f9291b68b542965634a27fb4be5a59c756d672a3d264f2628391861edb98a244e072b4

View File

@@ -0,0 +1,48 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
FORTRAN_STANDARD="77 90"
inherit autotools fortran-2 flag-o-matic
DESCRIPTION="Scientific library and interface for array oriented data access"
HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/"
SRC_URI="https://github.com/Unidata/netcdf-fortran/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="UCAR-Unidata"
SLOT="0/7"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc examples static-libs"
RDEPEND="sci-libs/netcdf"
DEPEND="${RDEPEND}
dev-lang/cfortran"
BDEPEND="doc? ( app-doc/doxygen )"
src_prepare() {
default
eautoreconf
}
src_configure() {
# GCC 10 workaround
# bug #723274
# (As of 4.5.3, configure is meant to check for this flag & use it
# but it doesn't seem to be doing that.)
append-fflags $(test-flags-FC -fallow-argument-mismatch)
econf \
--disable-valgrind \
--with-temp-large="${T}" \
--disable-dot \
$(use_enable doc doxygen) \
$(use_enable static-libs static)
}
src_install() {
default
use examples && dodoc -r examples
find "${ED}" -name '*.la' -delete || die
}