1 |
|
# Copyright 1999-2023 Gentoo Authors
|
|
1 |
# Copyright 1999-2024 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
FORTRAN_NEEDED=fortran
|
7 |
7 |
|
8 |
|
PYTHON_COMPAT=( python3_{9..11} )
|
|
8 |
PYTHON_COMPAT=( python3_{10..12} )
|
9 |
9 |
|
10 |
10 |
inherit cmake flag-o-matic fortran-2 python-single-r1
|
11 |
11 |
|
... | ... | |
24 |
24 |
RDEPEND="
|
25 |
25 |
!sci-libs/libmed
|
26 |
26 |
dev-lang/tk:0=
|
27 |
|
<sci-libs/hdf5-1.14.0:=[fortran?,mpi(+)?]
|
|
27 |
>=sci-libs/hdf5-1.10.2:=[fortran?,mpi(+)?]
|
28 |
28 |
mpi? ( virtual/mpi[fortran?] )
|
29 |
29 |
python? ( ${PYTHON_DEPS} )
|
30 |
30 |
"
|
... | ... | |
34 |
34 |
PATCHES=(
|
35 |
35 |
"${FILESDIR}/${PN}-4.1.0-0001-Gentoo-specific-Adjust-install-path-for-build-dir.patch"
|
36 |
36 |
"${FILESDIR}/${PN}-4.1.0-0002-Re-add-option-for-building-Fortran-library.patch"
|
37 |
|
"${FILESDIR}/${PN}-4.1.0-0003-build-against-hdf5-1.12.patch"
|
|
37 |
"${FILESDIR}/${PN}-4.1.0-0003-build-against-hdf5-1.14.patch"
|
38 |
38 |
)
|
39 |
39 |
|
40 |
40 |
DOCS=( AUTHORS ChangeLog NEWS README README.CMAKE TODO )
|
... | ... | |
53 |
53 |
-e 's@SET(_install_dir lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/med)@SET(_install_dir '${pysite}'/med)@' \
|
54 |
54 |
-i ./python/CMakeLists.txt || die "sed on ./python/CMakeLists.txt failed"
|
55 |
55 |
fi
|
56 |
|
for cm in ./src/CMakeLists.txt ./tools/medimport/CMakeLists.txt
|
57 |
|
do
|
58 |
|
sed -i -e "s@INSTALL(TARGETS \(.*\) DESTINATION lib)@INSTALL(TARGETS \1 DESTINATION $(get_libdir))@" \
|
59 |
|
"${cm}" || die "sed on ${cm} failed"
|
60 |
|
done
|
61 |
56 |
sed -e 's/med-fichier/med/' -i CMakeLists.txt || die "fix paths failed"
|
62 |
|
sed -e 's|doc/med-${MED_STR_VERSION}|doc/med-${MED_STR_VERSION}/html|' \
|
|
57 |
sed -e 's|doc/med-${MED_STR_VERSION}|doc/'${PF}'/html|' \
|
63 |
58 |
-i CMakeLists.txt || die "fix doc path failed"
|
64 |
59 |
|
65 |
60 |
# bug #862900, already reported upstream. CHECK on updates!
|