sci-mathematics/maxima: fix elisp files compilation
authorAndrey Grozin <grozin@gentoo.org>
Fri, 18 Mar 2016 11:06:56 +0000 (17:06 +0600)
committerAndrey Grozin <grozin@gentoo.org>
Fri, 18 Mar 2016 11:07:54 +0000 (17:07 +0600)
Bug: 576652

Package-Manager: portage-2.2.28

sci-mathematics/maxima/maxima-5.37.3-r4.ebuild

index 06cbc93faa03bcb0af4e653152d257a3e83704a0..fea3dd575f7d9c29bb9e2b8c86204cf8d6627924 100644 (file)
@@ -147,7 +147,15 @@ src_configure() {
 
 src_compile() {
        emake
-       use emacs && elisp-compile interfaces/emacs/{emaxima,imaxima}/*.el
+       if use emacs; then
+               pushd interfaces/emacs/emaxima > /dev/null
+               elisp-compile *.el
+               popd > /dev/null
+               pushd interfaces/emacs/imaxima > /dev/null
+               BYTECOMPFLAGS="-L . -L ../emaxima"
+               elisp-compile *.el
+               popd > /dev/null
+       fi
 }
 
 src_install() {