sci-mathematics/fricas: fix configure for lisps other than sbcl and ccl
authorAndrey Grozin <grozin@gentoo.org>
Mon, 26 Mar 2018 06:28:21 +0000 (13:28 +0700)
committerAndrey Grozin <grozin@gentoo.org>
Mon, 26 Mar 2018 06:28:21 +0000 (13:28 +0700)
Closes: https://bugs.gentoo.org/650788
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sci-mathematics/fricas/fricas-1.3.3.ebuild

index 1be321f3f7bdd96d8ffa4dd5093fdc948206af43..b844cb78f7b6e24627dfd93e073c5ff259170678 100644 (file)
@@ -51,7 +51,7 @@ DEPEND="${RDEPEND}"
 RESTRICT="strip"
 
 src_configure() {
-       local LISP n
+       local LISP n GMP
        LISP=sbcl
        n=${#LISPS[*]}
        for ((n--; n > 0; n--)); do
@@ -64,8 +64,14 @@ src_configure() {
        done
        einfo "Using lisp: ${LISP}"
 
+       # bug #650788
+       if [[ ${LISP} = sbcl || ${LISP} = ccl ]]
+       then GMP=$(use_with gmp)
+       else GMP=''
+       fi
+
        # aldor is not yet in portage
-       econf --disable-aldor --with-lisp=${LISP} $(use_with X x) $(use_with gmp)
+       econf --disable-aldor --with-lisp=${LISP} $(use_with X x) ${GMP}
 }
 
 src_compile() {