diff options
author | Sam James <sam@gentoo.org> | 2023-04-20 20:35:07 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-04-20 20:36:52 +0100 |
commit | 20a01868e67f513af7a45c44ec9ceb53877863d2 (patch) | |
tree | f087b27d472fa0a97ae51e29c461873b62b33fa0 /sci-libs/cgnslib/cgnslib-4.3.0-r2.ebuild | |
parent | sci-libs/hdf5: fix installed CMake files (exclude temporary include dir for b... (diff) | |
download | gentoo-20a01868e67f513af7a45c44ec9ceb53877863d2.tar.gz gentoo-20a01868e67f513af7a45c44ec9ceb53877863d2.tar.bz2 gentoo-20a01868e67f513af7a45c44ec9ceb53877863d2.zip |
Revert "sci-libs/cgnslib: restrict to hdf5<14"
This reverts commit 311e3fd6822338b4313af27521bc57451b8cecc0.
Not needed anymore and a better solution would've been to mask newer hdf5
given it was broken, not cgnslib.
Bug: https://bugs.gentoo.org/904515
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/cgnslib/cgnslib-4.3.0-r2.ebuild')
-rw-r--r-- | sci-libs/cgnslib/cgnslib-4.3.0-r2.ebuild | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/sci-libs/cgnslib/cgnslib-4.3.0-r2.ebuild b/sci-libs/cgnslib/cgnslib-4.3.0-r2.ebuild new file mode 100644 index 000000000000..039b318c01be --- /dev/null +++ b/sci-libs/cgnslib/cgnslib-4.3.0-r2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_NEEDED="fortran" +FORTRAN_STANDARD="90 2003" + +inherit cmake fortran-2 + +DESCRIPTION="CFD General Notation System standard library" +HOMEPAGE=" + https://cgns.github.io/ + https://github.com/CGNS/CGNS +" +SRC_URI="https://github.com/CGNS/CGNS/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/CGNS-${PV}" + +LICENSE="ZLIB" +SLOT="0/4" +KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="base-scope debug examples fortran hdf5 legacy mpi scoping szip test tools" + +RDEPEND=" + hdf5? ( sci-libs/hdf5:=[mpi=,szip=] ) + tools? ( + dev-lang/tcl:= + dev-lang/tk:= + x11-libs/libXmu:= + virtual/glu + virtual/opengl + ) +" +DEPEND="${RDEPEND}" + +RESTRICT=" + fortran? ( test ) + !test? ( test ) +" +REQUIRED_USE=" + mpi? ( hdf5 ) + szip? ( hdf5 ) +" + +pkg_setup() { + use fortran && fortran-2_pkg_setup +} + +src_prepare() { + # gentoo libdir + sed \ + -e 's|/lib|/'$(get_libdir)'|' \ + -e '/DESTINATION/s|lib|'$(get_libdir)'|g' \ + -i src/CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCGNS_BUILD_SHARED=ON + -DCGNS_USE_SHARED=ON + + -DCGNS_BUILD_CGNSTOOLS="$(usex tools)" + -DCGNS_ENABLE_BASE_SCOPE="$(usex base-scope)" + -DCGNS_ENABLE_FORTRAN="$(usex fortran)" + -DCGNS_ENABLE_HDF5="$(usex hdf5)" + -DCGNS_ENABLE_LEGACY="$(usex legacy)" + -DCGNS_ENABLE_SCOPING="$(usex scoping)" + -DCGNS_ENABLE_MEM_DEBUG="$(usex debug)" + -DCGNS_ENABLE_TESTS="$(usex test)" + ) + + if use mpi; then + mycmakeargs+=( + -DHDF5_NEED_MPI="$(usex mpi)" + -DHDF5_NEED_SZIP="$(usex szip)" + -DHDF5_NEED_ZLIB="$(usex szip)" + ) + fi + + cmake_src_configure +} + +src_install() { + cmake_src_install + dodoc README.md release_docs/{HISTORY,RELEASE,changes_from_2.5}.txt + rm "${ED}/usr/$(get_libdir)/libcgns.a" || die + dodoc release_docs/*.pdf + docompress -x /usr/share/doc/${PF}/examples + use examples && dodoc -r src/examples +} |