diff options
author | Alessandro Barbieri <lssndrbarbieri@gmail.com> | 2022-05-28 09:13:46 +0200 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-05-28 11:46:59 +0200 |
commit | 29da38e1e326860de26dbe32d42cd058e954719d (patch) | |
tree | 5a342eec059257837d2a8ea65ec0748d92476e79 /sci-libs/cgnslib | |
parent | dev-python/beniget: update EAPI 7 -> 8, enable py3.11, pep517 (diff) | |
download | gentoo-29da38e1e326860de26dbe32d42cd058e954719d.tar.gz gentoo-29da38e1e326860de26dbe32d42cd058e954719d.tar.bz2 gentoo-29da38e1e326860de26dbe32d42cd058e954719d.zip |
sci-libs/cgnslib: add 4.3.0
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/25663
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-libs/cgnslib')
-rw-r--r-- | sci-libs/cgnslib/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/cgnslib/cgnslib-4.3.0.ebuild | 91 | ||||
-rw-r--r-- | sci-libs/cgnslib/metadata.xml | 2 |
3 files changed, 94 insertions, 0 deletions
diff --git a/sci-libs/cgnslib/Manifest b/sci-libs/cgnslib/Manifest index 2890a188617c..2c3490431ddf 100644 --- a/sci-libs/cgnslib/Manifest +++ b/sci-libs/cgnslib/Manifest @@ -1 +1,2 @@ DIST cgnslib-3.4.0.tar.gz 3393312 BLAKE2B 279d4502ff70701df6a266495ccc7750e9c51ac14bd3d5072ae8e1448b4f1e4afaefaaf254cf0afe1cc984e4d9fc7d5c161f7696f62726aaf567990ded3c9056 SHA512 e26cfb0d9f3061242d327a6c18fe40ed51bf63b61ae0d6b5cce7e6b4aa623b00e1c3fd9fe240d993323c6f4eec043fde5296a82b1f9108027f945300eec541ec +DIST cgnslib-4.3.0.tar.gz 1472044 BLAKE2B 8fa59eb2c13b163553c03991af1886d2162295367094937c3b7bbbc687f098e736a927fb6835fabb43ecfbe59edcf0e58e8977e89eeb1ef12b26568fbdc78e2c SHA512 5db97b8df8cb5b108a65513e20774881c1dfa790dd96bec46119883d934db18e3f88450d287690cb785e0875af87a3ec32b6c4665c54edb623161122ee85aa93 diff --git a/sci-libs/cgnslib/cgnslib-4.3.0.ebuild b/sci-libs/cgnslib/cgnslib-4.3.0.ebuild new file mode 100644 index 000000000000..dc10ae0dc1ec --- /dev/null +++ b/sci-libs/cgnslib/cgnslib-4.3.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2022 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 ~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 +} diff --git a/sci-libs/cgnslib/metadata.xml b/sci-libs/cgnslib/metadata.xml index c797f2727eb4..978347af49e6 100644 --- a/sci-libs/cgnslib/metadata.xml +++ b/sci-libs/cgnslib/metadata.xml @@ -10,7 +10,9 @@ an international steering committee. </longdescription> <use> + <flag name="base-scope">Enable base scoped families or connectivities</flag> <flag name="legacy">Enable or disable building legacy code (3.0 compatible)</flag> + <flag name="scoping">Enable scoping of enumeration values</flag> <flag name="tools"> A number of utility programs: cgnscheck, cgnscompress, cgnsdiff, cgnslist, cgnsnames, cgnsupdate, cgnsconvert, adf2hdf, hdf2adf. |