summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-08-08 22:33:54 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-08-08 22:45:05 +0200
commitb7c9de657e647f16a7f16c9aae0ba76fb9011312 (patch)
treeda1cf801116e9543ac016ee5f0bca1efb09bfeee /sci-mathematics
parentwww-apps/nextcloud: restrict allowed php versions (diff)
downloadgentoo-b7c9de657e647f16a7f16c9aae0ba76fb9011312.tar.gz
gentoo-b7c9de657e647f16a7f16c9aae0ba76fb9011312.tar.bz2
gentoo-b7c9de657e647f16a7f16c9aae0ba76fb9011312.zip
sci-mathematics/stp: compile python modules
Closes: https://bugs.gentoo.org/864124 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/stp/stp-2.3.3-r2.ebuild (renamed from sci-mathematics/stp/stp-2.3.3-r1.ebuild)7
1 files changed, 6 insertions, 1 deletions
diff --git a/sci-mathematics/stp/stp-2.3.3-r1.ebuild b/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
}