commit:     9ae1019ee4e64113279f8b47830e7389944ff17c
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Wed Mar 10 20:00:19 2021 +0000
Commit:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Wed Mar 10 20:00:19 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9ae1019e

sci-physics/SU2: 7.1.1 version bump

Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>

 sci-physics/SU2/Manifest         |   3 +
 sci-physics/SU2/SU2-7.1.1.ebuild | 127 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+)

diff --git a/sci-physics/SU2/Manifest b/sci-physics/SU2/Manifest
index dbfba89b..c5fb9ec1 100644
--- a/sci-physics/SU2/Manifest
+++ b/sci-physics/SU2/Manifest
@@ -5,4 +5,7 @@ DIST SU2-7.0.8.tar.gz 20554206 BLAKE2B 
ac291eeae696197f5875839defa98bde550c5250b
 DIST SU2-7.1.0-TestCases.tar.gz 449701778 BLAKE2B 
8a7cb400d330b4bbf62023525e6009a8c05af5a375b7479087b3b579d7f3162a11091f09294381fcd11d7bc358e77f10f69efc0999a304135f8850e3fe005000
 SHA512 
a0e354b073b4cfaeb47a9bd33ac66a636b12a065ca7caff4bd50c54e2b191809fd463f980568e0b7d4d559714d2dca99fe9a3e5854aa345be24010cd1239e772
 DIST SU2-7.1.0-Tutorials.tar.gz 66570840 BLAKE2B 
fdbc23503abd7a250464ca8da52ab87f67069d2a3fca130038c1ea83c3b18aa476fed3a21f725b142a97923b101d7906a720f6dff28341a13915ed6216660d7f
 SHA512 
7843a7ed5b3c606ea9821745390c70bbfd3cb66a17494360b4139e8735a8e83546acd0912462b7fc3b63ff9f2097610294c1c9af25d104962f727f599cdb8ae9
 DIST SU2-7.1.0.tar.gz 20542933 BLAKE2B 
e6e6d82a990bf4043d1c6c58a5fe7a100a923b2c6ae6a29f7bb969e02279eeb5587f7930b2372cf67e26f451c598cf81e2515eeb7e516d6ab060ac7e986a0110
 SHA512 
309b4e06c5fc084ea2a06797ae400392b924c3654d354170c3159327c9e022081745bee28b1537ed3ad4e7c1333afb8c38a1ca033ff28662b8d5f5badfdc8465
+DIST SU2-7.1.1-TestCases.tar.gz 453640460 BLAKE2B 
661349f1690eda1f9c4438a0c03c59d4bab7a1e49965a94d1e3ba6fe54ab5f14c9eae0ae93d5027068d5d02465af72cc39e8a4319de6b888d01b0e353a2bf296
 SHA512 
8a30160b9c6d7f2d23c7cd88e089bcefa98b1fdeeef43060da4fe4840a7061e790f250c656b44f2e491108cf5c2701fd0dbad67e651db3d59a79f8e521c2e36d
+DIST SU2-7.1.1-Tutorials.tar.gz 71446250 BLAKE2B 
30d4f9dda28958da80617d5ddcf635304c19f7de68a1bd5dd52ac7df84bf643d028c2ee8d2e3425f4d8a4faa06e8ed95150c51293629453c0b27101c33278a1f
 SHA512 
7f38588effa471f705c297c5a9fb6bca344932224453cb46021a715b58f9a0d45e16edb73df9a2a079dd7bd7909bbf0236fc0dc2df11b88bfb6f3a6c7769fdfe
+DIST SU2-7.1.1.tar.gz 20553973 BLAKE2B 
a8c7f851cf570c08c345725e6660fc84683a4a7b6982edc586661847dc0b0db06f1825170afc34d85adced512c5272a0632005838ae6952be4265eb05c921bab
 SHA512 
5980c2a24821d5e8cc83a953377d2779a158da30b6c1d2ef5db8a2b4f7a2ba555d5a35d755216a5c860e48e97b325f9687f3b2bd0c741b2d21bbcfcd31689ea9
 DIST mutationpp-1.0.1.tar.gz 4021945 BLAKE2B 
caae3ca155541a36822a950047efb867aab098bc9db311d675acca272d7f317ff35524086a0ea5eda524bbe125e4874f41dc1dbad92bfee4387e3a0c649bbd0a
 SHA512 
ba8beeb7cdaf1b526571e27f745d8d53c1e20a96bd194a5949acb8b6d5f75553867158a63bfc7198502177a9e8a91bf82a67d450a3ba72b21f8490539f45ef01

diff --git a/sci-physics/SU2/SU2-7.1.1.ebuild b/sci-physics/SU2/SU2-7.1.1.ebuild
new file mode 100644
index 00000000..f4ad34dd
--- /dev/null
+++ b/sci-physics/SU2/SU2-7.1.1.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit meson python-single-r1
+
+DESCRIPTION="SU2: An Open-Source Suite for Multiphysics Simulation and Design"
+HOMEPAGE="https://su2code.github.io/";
+SRC_URI="
+       https://github.com/su2code/SU2/archive/v${PV}.tar.gz -> ${P}.tar.gz
+       mpp? ( https://github.com/mutationpp/Mutationpp/archive/v1.0.1.tar.gz 
-> mutationpp-1.0.1.tar.gz )
+       test? ( https://github.com/su2code/TestCases/archive/v${PV}.tar.gz -> 
${P}-TestCases.tar.gz )
+       tutorials? ( https://github.com/su2code/Tutorials/archive/v${PV}.tar.gz 
-> ${P}-Tutorials.tar.gz )
+"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# cgns, metis, parmetis are bundled;
+# omp is disable as it's experimental;
+# pastix is disabled as it's try to find bundled libs;
+IUSE="cgns -mkl +mpi mpp openblas tecio test tutorials"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+       ${PYTHON_REQUIRED_USE}
+       mkl? ( !openblas )
+"
+
+RDEPEND="
+       ${PYTHON_DEPS}
+       mpi? ( virtual/mpi[cxx] )
+       mkl? ( sci-libs/mkl )
+       openblas? ( sci-libs/openblas )
+"
+DEPEND="
+       ${RDEPEND}
+       tecio? ( dev-libs/boost:= )
+"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-7.0.4-unbundle_boost.patch"
+       "${FILESDIR}/${PN}-7.1.0-fix-env.patch"
+)
+
+DOCS=( "README.md" "SU2_PY/documentation.txt" )
+
+src_unpack() {
+       unpack "${P}.tar.gz"
+       if use mpp ; then
+               einfo "Unpacking mutationpp-1.0.1.tar.gz to 
/var/tmp/portage/sci-physics/${P}/work/${P}/subprojects/Mutationpp"
+               tar -C "${P}"/subprojects/Mutationpp --strip-components=1 -xzf 
"${DISTDIR}/mutationpp-1.0.1.tar.gz" || die
+       fi
+       if use test ; then
+               einfo "Unpacking ${P}-TestCases.tar.gz to 
/var/tmp/portage/sci-physics/${P}/work/${P}/TestCases"
+               tar -C "${P}"/TestCases --strip-components=1 -xzf 
"${DISTDIR}/${P}-TestCases.tar.gz" || die
+       fi
+       if use tutorials ; then
+               einfo "Unpacking ${P}-Tutorials.tar.gz to 
/var/tmp/portage/sci-physics/${P}/work/${P}"
+               mkdir "${P}"/Tutorials || die
+               tar -C "${P}"/Tutorials --strip-components=1 -xzf 
"${DISTDIR}/${P}-Tutorials.tar.gz" || die
+       fi
+}
+
+src_prepare(){
+       default
+       # boost Geometry requires c++14 since >=boost-1.75
+       if has_version ">=dev-libs/boost-1.75.0" ; then
+               sed -i -e 's:cpp_std=c++11:cpp_std=c++14:' meson.build || die
+       fi
+}
+
+src_configure() {
+       local emesonargs=(
+               -Denable-autodiff=false
+               -Denable-directdiff=false
+               -Denable-pastix=false
+               -Denable-pywrapper=false
+               -Dwith-omp=false
+               $(meson_feature mpi with-mpi)
+               $(meson_use cgns enable-cgns)
+               $(meson_use mkl enable-mkl)
+               $(meson_use mpp enable-mpp)
+               $(meson_use openblas enable-openblas)
+               $(meson_use tecio enable-tecio)
+               $(meson_use test enable-tests)
+       )
+       meson_src_configure
+}
+
+src_test() {
+       ln -s ../../${P}-build/SU2_CFD/src/SU2_CFD SU2_PY/SU2_CFD
+       ln -s ../../${P}-build/SU2_DEF/src/SU2_DEF SU2_PY/SU2_DEF
+       ln -s ../../${P}-build/SU2_DOT/src/SU2_DOT SU2_PY/SU2_DOT
+       ln -s ../../${P}-build/SU2_GEO/src/SU2_GEO SU2_PY/SU2_GEO
+       ln -s ../../${P}-build/SU2_SOL/src/SU2_SOL SU2_PY/SU2_SOL
+
+       export SU2_RUN="${S}/SU2_PY"
+       export SU2_HOME="${S}"
+       export PATH=$PATH:$SU2_RUN
+       export PYTHONPATH=$PYTHONPATH:$SU2_RUN
+
+       einfo "Running UnitTests ..."
+       ../${P}-build/UnitTests/test_driver
+
+       pushd TestCases/
+       use mpi && python parallel_regression.py
+       use mpi || python serial_regression.py
+       use tutorials && use mpi && python tutorials.py
+       popd
+}
+
+src_install() {
+       meson_src_install
+       mkdir -p "${ED}$(python_get_sitedir)" || die
+       mv "${ED}"/usr/bin/{FSI_tools,SU2,SU2_Nastran,*.py} -t 
"${ED}$(python_get_sitedir)" || die
+       python_optimize "${D}/$(python_get_sitedir)"
+
+       if use tutorials ; then
+               insinto "/usr/share/${P}"
+               doins -r Tutorials
+       fi
+}

Reply via email to