commit:     9cac2697e91de4b2484524f4f5618d809a8b03ca
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 27 03:33:22 2020 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Fri Mar 27 03:42:07 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cac2697

sci-mathematics/maxima: fix amd64 build with USE=clozurecl.

The maxima build needs some special-case hacking on amd64 with
clozurecl. Thanks to slyfox for the patch.

Closes: https://bugs.gentoo.org/665364
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-mathematics/maxima/maxima-5.43.2.ebuild | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sci-mathematics/maxima/maxima-5.43.2.ebuild 
b/sci-mathematics/maxima/maxima-5.43.2.ebuild
index 7c68f0a0e32..88f7e81d580 100644
--- a/sci-mathematics/maxima/maxima-5.43.2.ebuild
+++ b/sci-mathematics/maxima/maxima-5.43.2.ebuild
@@ -129,9 +129,19 @@ src_configure() {
                if [ ${CONF} = . ]; then
                        CONF=${LISPS[${n}]}
                fi
+               if [[ ${CONF} == ccl ]]; then
+                       # 64-bit version of clozurecl is enabled
+                       # by --enable-ccl64, not by --enable-ccl.
+                       # bug #665364
+                       use amd64 && CONF=ccl64
+               fi
                CONFS="${CONFS} --enable-${CONF}"
        done
 
+       # Gentoo calls 'ccl' both 32-bit and 64-bit version of clozurecl.
+       # bug #665364
+       CONFS="${CONFS} --with-ccl64=ccl"
+
        # enable existing translated doc
        if use nls; then
                for lang in ${LANGS}; do

Reply via email to