commit:     2869341fddfe1c3d232551ddffac507e167f5677
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 10 12:51:10 2024 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Sep 10 12:59:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2869341f

sci-mathematics/giac: delete more build artifacts in src_prepare()

Closes: https://bugs.gentoo.org/939308
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 .../giac/{giac-1.9.0.995.ebuild => giac-1.9.0.995-r1.ebuild} | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/sci-mathematics/giac/giac-1.9.0.995.ebuild 
b/sci-mathematics/giac/giac-1.9.0.995-r1.ebuild
similarity index 92%
rename from sci-mathematics/giac/giac-1.9.0.995.ebuild
rename to sci-mathematics/giac/giac-1.9.0.995-r1.ebuild
index 28dba8596875..6a9a85a14f05 100644
--- a/sci-mathematics/giac/giac-1.9.0.995.ebuild
+++ b/sci-mathematics/giac/giac-1.9.0.995-r1.ebuild
@@ -78,9 +78,15 @@ src_prepare() {
        # similar deal with gl2ps
        rm src/gl2ps.[ch] || die
 
-       # mjs is an arm executable artifact that should not have been shipped
-       # Removing it so it can be rebuilt with the host architecture
-       rm src/mkjs || die
+       # These are executable (ARM) build artifacts that should not have
+       # been shipped. We remove them so they can be rebuilt properly.
+       rm src/mkjs doc/khicas.nwa || die
+
+       # Don't waste time eautoreconfing the bundled micropython that we
+       # never use.
+       sed -e 's/micropython-1.12//g' -i Makefile.am || die
+       sed -e '/micropython-1.12/d' -i configure.ac || die
+       rm -r micropython-1.12 || die
 
        default
        eautoreconf

Reply via email to