commit:     b7c9de657e647f16a7f16c9aae0ba76fb9011312
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  8 20:33:54 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Aug  8 20:45:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7c9de65

sci-mathematics/stp: compile python modules

Closes: https://bugs.gentoo.org/864124
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 sci-mathematics/stp/{stp-2.3.3-r1.ebuild => stp-2.3.3-r2.ebuild} | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sci-mathematics/stp/stp-2.3.3-r1.ebuild 
b/sci-mathematics/stp/stp-2.3.3-r2.ebuild
similarity index 89%
rename from sci-mathematics/stp/stp-2.3.3-r1.ebuild
rename to sci-mathematics/stp/stp-2.3.3-r2.ebuild
index 67fbceb1ce9d..e59e4388c2c3 100644
--- a/sci-mathematics/stp/stp-2.3.3-r1.ebuild
+++ b/sci-mathematics/stp/stp-2.3.3-r2.ebuild
@@ -92,7 +92,12 @@ src_configure() {
 
 src_install() {
        cmake_src_install
-       mv "${D}"/usr/man "${D}"/usr/share/man || die
 
+       # Because Python files for tests (in BUILD_DIR) and those installed on 
the
+       # system differ, and are generated upon install, we have to wait for 
CMake
+       # to install them into the temporary image.
+       use python && python_optimize "${D}/$(python_get_sitedir)"/stp
+
+       mv "${D}"/usr/man "${D}"/usr/share/man || die
        dodoc -r papers
 }

Reply via email to