Diff netcdf-fortran-4.5.4-r1 with a netcdf-fortran-4.6.1

/usr/portage/sci-libs/netcdf-fortran/netcdf-fortran-4.6.1.ebuild 2024-07-02 13:51:49.313851592 +0300
5 5

  
6 6
FORTRAN_STANDARD="77 90"
7 7

  
8
inherit flag-o-matic fortran-2
8
inherit cmake flag-o-matic fortran-2
9 9

  
10 10
DESCRIPTION="Scientific library and interface for array oriented data access"
11 11
HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/"
12
# TODO: drop .upstream suffix on next bump
13
SRC_URI="https://downloads.unidata.ucar.edu/netcdf-fortran/${PV}/${P}.tar.gz -> ${P}.upstream.tar.gz"
12
SRC_URI="https://downloads.unidata.ucar.edu/netcdf-fortran/${PV}/${P}.tar.gz"
14 13

  
15 14
LICENSE="UCAR-Unidata"
16 15
SLOT="0/7"
17 16
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18
IUSE="doc examples static-libs"
17
IUSE="doc examples test zstd"
18
RESTRICT="!test? ( test )"
19 19

  
20 20
RDEPEND="sci-libs/netcdf"
21 21
DEPEND="
22 22
	${RDEPEND}
23 23
	dev-lang/cfortran
24 24
"
25
BDEPEND="doc? ( app-text/doxygen )"
25
BDEPEND="doc? ( app-text/doxygen[dot] )"
26 26

  
27 27
src_configure() {
28 28
	# -Werror=lto-type-mismatch
......
30 30
	# https://github.com/Unidata/netcdf-fortran/issues/437
31 31
	filter-lto
32 32

  
33
	econf \
34
		--disable-valgrind \
35
		--with-temp-large="${T}" \
36
		--disable-dot \
37
		$(use_enable doc doxygen) \
38
		$(use_enable static-libs static)
39
}
33
	local mycmakeargs=(
34
		-DDISABLE_ZSTANDARD_PLUGIN=$(usex !zstd)
35
		-DBUILD_EXAMPLES=$(usex examples)
36
		-DENABLE_DOXYGEN=$(usex doc)
37
		-DENABLE_PARALLEL_TESTS=$(usex test)
38
		-DENABLE_TESTS=$(usex test)
39

  
40
		# "Take lots of time and disk." per CMakeLists.txt
41
		#-DLARGE_FILE_TESTS="${T}"
42

  
43
		-DTEST_WITH_VALGRIND=OFF
44
	)
40 45

  
41
src_install() {
42
	default
43
	use examples && dodoc -r examples
44
	find "${ED}" -name '*.la' -delete || die
46
	cmake_src_configure
45 47
}
Thank you!