public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergey Torokhov" <torokhov-s-a@yandex.ru>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-physics/SU2/
Date: Fri,  9 Dec 2022 16:52:05 +0000 (UTC)	[thread overview]
Message-ID: <1670604653.01d691c3d7f455d6c3a2e52856446c599c754cf7.SergeyTorokhov@gentoo> (raw)

commit:     01d691c3d7f455d6c3a2e52856446c599c754cf7
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Fri Dec  9 16:50:53 2022 +0000
Commit:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Fri Dec  9 16:50:53 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=01d691c3

sci-physics/SU2: update src_test and src_install

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

 sci-physics/SU2/SU2-7.2.0-r100.ebuild | 17 ++++++++---------
 sci-physics/SU2/SU2-7.2.0-r2.ebuild   | 12 ++++++++++--
 2 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/sci-physics/SU2/SU2-7.2.0-r100.ebuild b/sci-physics/SU2/SU2-7.2.0-r100.ebuild
index 97dceb66e..482a29200 100644
--- a/sci-physics/SU2/SU2-7.2.0-r100.ebuild
+++ b/sci-physics/SU2/SU2-7.2.0-r100.ebuild
@@ -165,6 +165,7 @@ src_test() {
 	if use autodiff ; then
 		ln -s ../../${P}-build/SU2_CFD/src/SU2_CFD_AD SU2_PY/SU2_CFD_AD || die
 		ln -s ../../${P}-build/SU2_DOT/src/SU2_DOT_AD SU2_PY/SU2_DOT_AD || die
+		ln -s ../../${P}-build/SU2_PY/pySU2/pysu2ad.py SU2_PY/pysu2ad.py || die
 		ln -s ../../${P}-build/SU2_PY/pySU2/_pysu2ad.so SU2_PY/_pysu2ad.so || die
 		if use directdiff ; then
 			ln -s ../../${P}-build/SU2_CFD/src/SU2_CFD_DIRECTDIFF SU2_PY/SU2_CFD_DIRECTDIFF || die
@@ -187,15 +188,13 @@ src_test() {
 		fi
 		if use autodiff ; then
 			${EPYTHON} parallel_regression_AD.py || die
-		else
-			${EPYTHON} parallel_regression.py || die
 		fi
+		${EPYTHON} parallel_regression.py || die
 	else
 		if use autodiff ; then
 			${EPYTHON} serial_regression_AD.py || die
-		else
-			${EPYTHON} serial_regression.py || die
 		fi
+		${EPYTHON} serial_regression.py || die
 	fi
 	popd || die
 }
@@ -205,7 +204,7 @@ src_install() {
 
 	mkdir -p "${D}$(python_get_sitedir)/SU2_PY" || die
 	if use python; then
-		mv "${ED}"/usr/bin/{pysu2.py,_pysu2.so} -t "${D}$(python_get_sitedir)/SU2_PY" || die
+		mv "${ED}"/usr/bin/*.so -t "${D}$(python_get_sitedir)/SU2_PY" || die
 	fi
 	mv "${ED}"/usr/bin/{FSI_tools,SU2,SU2_Nastran} -t "${D}$(python_get_sitedir)" || die
 	mv "${ED}"/usr/bin/*.py -t "${D}$(python_get_sitedir)/SU2_PY" || die
@@ -217,9 +216,9 @@ src_install() {
 	fi
 
 	local SU2_RUN="$(python_get_sitedir)/SU2_PY"
-	echo SU2_RUN="${SU2_RUN}" > 99_SU2
-	echo PATH="${SU2_RUN}" >> 99_SU2
-	echo PYTHONPATH="${SU2_RUN}" >> 99_SU2
+	echo SU2_RUN="${SU2_RUN}" > 99SU2
+	echo PATH="${SU2_RUN}" >> 99SU2
+	echo PYTHONPATH="${SU2_RUN}" >> 99SU2
 
-	doenvd 99_SU2
+	doenvd 99SU2
 }

diff --git a/sci-physics/SU2/SU2-7.2.0-r2.ebuild b/sci-physics/SU2/SU2-7.2.0-r2.ebuild
index 1bc85bf7e..adc8adfd5 100644
--- a/sci-physics/SU2/SU2-7.2.0-r2.ebuild
+++ b/sci-physics/SU2/SU2-7.2.0-r2.ebuild
@@ -156,12 +156,20 @@ src_test() {
 src_install() {
 	DESTDIR="${D}" meson_src_install
 
-	mkdir -p "${D}$(python_get_sitedir)" || die
-	mv "${ED}"/usr/bin/{FSI_tools,SU2,SU2_Nastran,*.py} -t "${D}$(python_get_sitedir)" || die
+	mkdir -p "${D}$(python_get_sitedir)/SU2_PY" || die
+	mv "${ED}"/usr/bin/{FSI_tools,SU2,SU2_Nastran} -t "${D}$(python_get_sitedir)" || die
+	mv "${ED}"/usr/bin/*.py -t "${D}$(python_get_sitedir)/SU2_PY" || die
 	python_optimize "${D}/$(python_get_sitedir)"
 
 	if use tutorials ; then
 		insinto "/usr/share/${PN}"
 		doins -r Tutorials
 	fi
+
+	local SU2_RUN="$(python_get_sitedir)/SU2_PY"
+	echo SU2_RUN="${SU2_RUN}" > 99SU2
+	echo PATH="${SU2_RUN}" >> 99SU2
+	echo PYTHONPATH="${SU2_RUN}" >> 99SU2
+
+	doenvd 99SU2
 }


             reply	other threads:[~2022-12-09 16:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-09 16:52 Sergey Torokhov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-04-23 10:44 [gentoo-commits] repo/proj/guru:dev commit in: sci-physics/SU2/ Sergey Torokhov
2023-04-23  9:48 Sergey Torokhov
2022-12-09 16:52 Sergey Torokhov
2022-12-08 22:44 Sergey Torokhov
2022-05-28 13:45 Alessandro Barbieri
2021-10-27 20:55 Sergey Torokhov
2021-10-24 21:07 Sergey Torokhov
2021-10-15 16:20 Sergey Torokhov
2021-09-15 21:43 Sergey Torokhov
2021-09-05 10:45 Sergey Torokhov
2021-08-31 14:07 Sergey Torokhov
2021-08-31 14:07 Sergey Torokhov
2021-05-30 15:59 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-05-30 15:59 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-03-28 10:52 Andrew Ammerlaan
2021-03-22 20:14 Sergey Torokhov
2021-03-10 20:02 Sergey Torokhov
2021-01-05 14:00 Sergey Torokhov
2021-01-05 13:54 Sergey Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1670604653.01d691c3d7f455d6c3a2e52856446c599c754cf7.SergeyTorokhov@gentoo \
    --to=torokhov-s-a@yandex.ru \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox