1 |
commit: 5893ea57d8065fd5fb57894af204056759f0d7e7 |
2 |
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> |
3 |
AuthorDate: Fri Oct 15 16:19:37 2021 +0000 |
4 |
Commit: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> |
5 |
CommitDate: Fri Oct 15 16:19:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5893ea57 |
7 |
|
8 |
sci-physics/SU2: drop old |
9 |
|
10 |
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> |
11 |
|
12 |
sci-physics/SU2/Manifest | 3 - |
13 |
sci-physics/SU2/SU2-7.1.1.ebuild | 137 --------------------------------------- |
14 |
2 files changed, 140 deletions(-) |
15 |
|
16 |
diff --git a/sci-physics/SU2/Manifest b/sci-physics/SU2/Manifest |
17 |
index d50e3c990..3b721ab82 100644 |
18 |
--- a/sci-physics/SU2/Manifest |
19 |
+++ b/sci-physics/SU2/Manifest |
20 |
@@ -1,6 +1,3 @@ |
21 |
-DIST SU2-7.1.1-TestCases.tar.gz 453640460 BLAKE2B 661349f1690eda1f9c4438a0c03c59d4bab7a1e49965a94d1e3ba6fe54ab5f14c9eae0ae93d5027068d5d02465af72cc39e8a4319de6b888d01b0e353a2bf296 SHA512 8a30160b9c6d7f2d23c7cd88e089bcefa98b1fdeeef43060da4fe4840a7061e790f250c656b44f2e491108cf5c2701fd0dbad67e651db3d59a79f8e521c2e36d |
22 |
-DIST SU2-7.1.1-Tutorials.tar.gz 71446250 BLAKE2B 30d4f9dda28958da80617d5ddcf635304c19f7de68a1bd5dd52ac7df84bf643d028c2ee8d2e3425f4d8a4faa06e8ed95150c51293629453c0b27101c33278a1f SHA512 7f38588effa471f705c297c5a9fb6bca344932224453cb46021a715b58f9a0d45e16edb73df9a2a079dd7bd7909bbf0236fc0dc2df11b88bfb6f3a6c7769fdfe |
23 |
-DIST SU2-7.1.1.tar.gz 20553973 BLAKE2B a8c7f851cf570c08c345725e6660fc84683a4a7b6982edc586661847dc0b0db06f1825170afc34d85adced512c5272a0632005838ae6952be4265eb05c921bab SHA512 5980c2a24821d5e8cc83a953377d2779a158da30b6c1d2ef5db8a2b4f7a2ba555d5a35d755216a5c860e48e97b325f9687f3b2bd0c741b2d21bbcfcd31689ea9 |
24 |
DIST SU2-7.2.0-TestCases.tar.gz 464156192 BLAKE2B 405a5ccdd13bc5109feca1462b6ac434a4d817adbaca964465678683d5593fa940579e364e33414da5f059a89b2919fbc0baed82967246356da49c87ac9ce63f SHA512 d75894c285ac7cb4c72eece10a02f014fb2d85b585c08d1a9bbf12ab51f6004be99c368bde98734891dc45446d0656b21317b50d7d14af95b6ce4bfe72871f11 |
25 |
DIST SU2-7.2.0-Tutorials.tar.gz 72845754 BLAKE2B ef670a77d0189e9fd8ad48d96bd4617de558311d0df0d81a10dd3cbf8b97b7fbcb0e6725746d8451ce12a923f6895a392582fa980f4054b3b1306609431900ff SHA512 c91cfbdfb26169fc36575f60ec3133ea4a6f39c8433e276840a0f96c7508f3ee898020179ac01d606da9c5e10ee2ad263a642ff6f6b7400d75f4eb03ee7e1cf8 |
26 |
DIST SU2-7.2.0.tar.gz 15356101 BLAKE2B e52f09d0451c200f6fd6874d55bedf7733f934cb2cee378ca286107960bd82332adc932cae57e9052654b34972717a4f8969db216acdcef8a6816b648119df94 SHA512 5600ebb97ef5939333907f75cda58a02810642439309fc8626ed974dfbfaffdf0cd7d9cc81de310cb12e6f92f98b64c58d607ad93095bd86cc583768947ccf6b |
27 |
|
28 |
diff --git a/sci-physics/SU2/SU2-7.1.1.ebuild b/sci-physics/SU2/SU2-7.1.1.ebuild |
29 |
deleted file mode 100644 |
30 |
index 899b5d72f..000000000 |
31 |
--- a/sci-physics/SU2/SU2-7.1.1.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,137 +0,0 @@ |
34 |
-# Copyright 1999-2021 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=7 |
38 |
- |
39 |
-PYTHON_COMPAT=( python3_{8..9} ) |
40 |
- |
41 |
-inherit meson python-single-r1 |
42 |
- |
43 |
-DESCRIPTION="SU2: An Open-Source Suite for Multiphysics Simulation and Design" |
44 |
-HOMEPAGE="https://su2code.github.io/" |
45 |
-SRC_URI=" |
46 |
- https://github.com/su2code/SU2/archive/v${PV}.tar.gz -> ${P}.tar.gz |
47 |
- mpp? ( https://github.com/mutationpp/Mutationpp/archive/v1.0.1.tar.gz -> mutationpp-1.0.1.tar.gz ) |
48 |
- test? ( https://github.com/su2code/TestCases/archive/v${PV}.tar.gz -> ${P}-TestCases.tar.gz ) |
49 |
- tutorials? ( https://github.com/su2code/Tutorials/archive/v${PV}.tar.gz -> ${P}-Tutorials.tar.gz ) |
50 |
-" |
51 |
- |
52 |
-# SU2: LGPL-2.1; cgnslib: ZLIB, TecIO: all-rights-reserved; |
53 |
-# Metis: Apache-2.0; Parmetis: all-rights-reserved, free-noncomm; Mutationpp: LGPL-3.0. |
54 |
-LICENSE="Apache-2.0 LGPL-2.1 LGPL-3 ZLIB all-rights-reserved free-noncomm" |
55 |
-SLOT="0" |
56 |
-KEYWORDS="~amd64" |
57 |
- |
58 |
-# cgns, metis, parmetis are bundled; |
59 |
-# omp is disable as it's experimental; |
60 |
-# pastix is disabled as it's try to find bundled libs; |
61 |
-IUSE="cgns mkl +mpi mpp openblas tecio test tutorials" |
62 |
-RESTRICT="!test? ( test )" |
63 |
-REQUIRED_USE=" |
64 |
- ${PYTHON_REQUIRED_USE} |
65 |
- mkl? ( !openblas ) |
66 |
-" |
67 |
- |
68 |
-RDEPEND=" |
69 |
- ${PYTHON_DEPS} |
70 |
- mpi? ( virtual/mpi[cxx] ) |
71 |
- mkl? ( sci-libs/mkl ) |
72 |
- openblas? ( sci-libs/openblas ) |
73 |
-" |
74 |
-DEPEND=" |
75 |
- ${RDEPEND} |
76 |
- tecio? ( dev-libs/boost:= ) |
77 |
-" |
78 |
-BDEPEND="virtual/pkgconfig" |
79 |
- |
80 |
-PATCHES=( |
81 |
- "${FILESDIR}/${PN}-7.0.4-unbundle_boost.patch" |
82 |
- "${FILESDIR}/${PN}-7.1.0-fix-env.patch" |
83 |
-) |
84 |
- |
85 |
-DOCS=( "README.md" "SU2_PY/documentation.txt" ) |
86 |
- |
87 |
-src_unpack() { |
88 |
- unpack "${P}.tar.gz" |
89 |
- if use mpp ; then |
90 |
- einfo "Unpacking mutationpp-1.0.1.tar.gz to /var/tmp/portage/sci-physics/${P}/work/${P}/subprojects/Mutationpp" |
91 |
- tar -C "${P}"/subprojects/Mutationpp --strip-components=1 -xzf "${DISTDIR}/mutationpp-1.0.1.tar.gz" || die |
92 |
- fi |
93 |
- if use test ; then |
94 |
- einfo "Unpacking ${P}-TestCases.tar.gz to /var/tmp/portage/sci-physics/${P}/work/${P}/TestCases" |
95 |
- tar -C "${P}"/TestCases --strip-components=1 -xzf "${DISTDIR}/${P}-TestCases.tar.gz" || die |
96 |
- fi |
97 |
- if use tutorials ; then |
98 |
- einfo "Unpacking ${P}-Tutorials.tar.gz to /var/tmp/portage/sci-physics/${P}/work/${P}" |
99 |
- mkdir "${P}"/Tutorials || die |
100 |
- tar -C "${P}"/Tutorials --strip-components=1 -xzf "${DISTDIR}/${P}-Tutorials.tar.gz" || die |
101 |
- fi |
102 |
-} |
103 |
- |
104 |
-src_prepare(){ |
105 |
- default |
106 |
- # boost Geometry requires c++14 since >=boost-1.75 |
107 |
- if has_version ">=dev-libs/boost-1.75.0" ; then |
108 |
- sed -i -e 's:cpp_std=c++11:cpp_std=c++14:' meson.build || die |
109 |
- fi |
110 |
- |
111 |
- # Disable python-wrapper tests |
112 |
- sed -i "/append(pywrapper_/s/./#&/" TestCases/parallel_regression.py || die |
113 |
-} |
114 |
- |
115 |
-src_configure() { |
116 |
- local emesonargs=( |
117 |
- -Denable-autodiff=false |
118 |
- -Denable-directdiff=false |
119 |
- -Denable-pastix=false |
120 |
- -Denable-pywrapper=false |
121 |
- -Dwith-omp=false |
122 |
- $(meson_feature mpi with-mpi) |
123 |
- $(meson_use cgns enable-cgns) |
124 |
- $(meson_use mkl enable-mkl) |
125 |
- $(meson_use mpp enable-mpp) |
126 |
- $(meson_use openblas enable-openblas) |
127 |
- $(meson_use tecio enable-tecio) |
128 |
- $(meson_use test enable-tests) |
129 |
- ) |
130 |
- meson_src_configure |
131 |
-} |
132 |
- |
133 |
-src_test() { |
134 |
- ln -s ../../${P}-build/SU2_CFD/src/SU2_CFD SU2_PY/SU2_CFD || die |
135 |
- ln -s ../../${P}-build/SU2_DEF/src/SU2_DEF SU2_PY/SU2_DEF || die |
136 |
- ln -s ../../${P}-build/SU2_DOT/src/SU2_DOT SU2_PY/SU2_DOT || die |
137 |
- ln -s ../../${P}-build/SU2_GEO/src/SU2_GEO SU2_PY/SU2_GEO || die |
138 |
- ln -s ../../${P}-build/SU2_SOL/src/SU2_SOL SU2_PY/SU2_SOL || die |
139 |
- |
140 |
- export SU2_RUN="${S}/SU2_PY" |
141 |
- export SU2_HOME="${S}" |
142 |
- export PATH=$PATH:$SU2_RUN |
143 |
- export PYTHONPATH=$PYTHONPATH:$SU2_RUN |
144 |
- |
145 |
- einfo "Running UnitTests ..." |
146 |
- ../${P}-build/UnitTests/test_driver || die |
147 |
- |
148 |
- pushd TestCases/ || die |
149 |
- if use mpi ; then |
150 |
- if use tutorials ; then |
151 |
- ${EPYTHON} tutorials.py || die |
152 |
- fi |
153 |
- ${EPYTHON} parallel_regression.py || die |
154 |
- else |
155 |
- ${EPYTHON} serial_regression.py || die |
156 |
- fi |
157 |
- popd || die |
158 |
-} |
159 |
- |
160 |
-src_install() { |
161 |
- meson_src_install |
162 |
- mkdir -p "${D}$(python_get_sitedir)" || die |
163 |
- mv "${ED}"/usr/bin/{FSI_tools,SU2,SU2_Nastran,*.py} -t "${D}$(python_get_sitedir)" || die |
164 |
- python_optimize "${D}/$(python_get_sitedir)" |
165 |
- |
166 |
- if use tutorials ; then |
167 |
- insinto "/usr/share/${P}" |
168 |
- doins -r Tutorials |
169 |
- fi |
170 |
-} |